Commit Graph

244 Commits (00324050930287e25d9a616f12cdf1421c3445e7)

Author SHA1 Message Date
rubidium 716fa8b501 (svn r15840) -Codechange: complete the game option window widget enum and unify the naming. 15 years ago
yexo 84fb615344 (svn r15835) -Codechange: Prevent using the return value of DrawString as much as possible. 15 years ago
yexo b61a681f02 (svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN. 15 years ago
rubidium 9038733f1a (svn r15812) -Codechange: use the new DrawString API in another set of GUIs 15 years ago
rubidium f11300d1f9 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 15 years ago
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
rubidium f9def73be6 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium 7831346ef8 (svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
-Feature: allow building road stops on road/tram tracks of competitors.
16 years ago
yexo 2860399397 (svn r15570) -Fix: Too long strings in the advanced settings window are now truncated. 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 986224519a (svn r15416) -Fix (r15412): revert the removal of the road side drop down box handling. 16 years ago
peter1138 748d4d2fb9 (svn r15412) -Fix: Clearing custom engine names could cause desyncs due to be client-side only; GUI parts of save/load of custom engine names also removed as it was never implemented. 16 years ago
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
peter1138 967491a22d (svn r15389) -Feature: Add ability to select which base graphics set is used from the Game Options window. The change takes effect when the window is closed. This option can only be used from the intro menu, as reloading graphics during a game may cause issues. 16 years ago
smatz 832e392855 (svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly road networks
-Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore
-Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
16 years ago
rubidium 09fca459a7 (svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command. 16 years ago
peter1138 6899955b0c (svn r15301) -Feature [FS#104]: Add option to group and subtotal expenses list in the company finance window. Concept from Zr40. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
peter1138 c57f5ed668 (svn r15238) -Fix (r15236): Missed a file 16 years ago
Yexo db3ee34b44 (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 16 years ago
Yexo 8fabd3982d (svn r15148) -Cleanup: Remove the options "competitor start time" and "competitor intelligence" from the difficulty options because they already were unused. 16 years ago
truebrain a3dd7506d3 (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
rubidium 7947e78daa (svn r14999) -Change [FS#2523]: move service at helipad to the servicing options 16 years ago
rubidium f6f6f15604 (svn r14980) -Change: shuffle around some more settings to make them more logically grouped/ordered 16 years ago
rubidium 238c0a5d1f (svn r14978) -Codechange: simplify the control flow of the OnClick of the settings window 16 years ago
rubidium 496f6aed3c (svn r14974) -Change: reorder/reorganise the entries of the settings window (Alberth) 16 years ago
rubidium 8e42e20ebe (svn r14973) -Codechange: recursively fold subpages (Alberth) 16 years ago
rubidium 7039c84c6a (svn r14970) -Change: move all (patch) settings to a single "page" (Alberth) 16 years ago
rubidium 8ad56c4229 (svn r14969) -Codechange: make drawing trees possible (Alberth) 16 years ago
rubidium 52108959c9 (svn r14967) -Codechange: split the drawing of the window into several smaller functions (Alberth) 16 years ago
rubidium d6d8411a5f (svn r14966) -Codechange: simplify and generalise finding patch entries (Alberth) 16 years ago
rubidium eec72275f1 (svn r14965) -Codechange: remember the patch entry instead of the page and index of the entry for handling the "input box" (Alberth) 16 years ago
rubidium 1fbc41f1fd (svn r14964) -Codechange: hide the length of a patch page behind a function (Alberth) 16 years ago
rubidium 6a359a586b (svn r14963) -Codechange: remember what entry was clicked instead of the index (Alberth) 16 years ago
rubidium 32d5369675 (svn r14962) -Codechange: add the concept of patch entries and patch (sub) pages 16 years ago
rubidium 850e45b1f1 (svn r14961) -Update: remove the string from r14960 from the other languages too. 16 years ago
rubidium 3f1da12faf (svn r14960) -Codechange: add some this where appropriate (Alberth) 16 years ago
rubidium b26cee21f6 (svn r14938) -Fix: some small inconsistencies w.r.t. "0 is disabled" setting handling 16 years ago
rubidium c8c61e36bd (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 16 years ago
frosch cf1e926e37 (svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker) 16 years ago
rubidium 84dee1e738 (svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
rubidium 9888afd6d0 (svn r14885) -Fix: if settings minimum != 1 and 0-is-disabled is enabled, one could set the setting in-game to an out-of-valid-range value. 16 years ago
smatz ec7244d971 (svn r14839) -Fix [FS#2496](r14835): one occurence of train_income_warn wasn't updated 16 years ago
rubidium c9e8fd307e (svn r14827) -Feature [FS#1984]: few (optional) optimisations to making (initial) orders (sulai) 16 years ago
glx 502607410e (svn r14816) -Fix: signed/unsigned warnings (MSVC) 16 years ago
smatz 09cd9a8017 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 16 years ago
rubidium 18b27692aa (svn r14800) -Codechange: make the advanced settings window resizeable and scrollable (most by Alberth) 16 years ago
rubidium fcee426b80 (svn r14799) -Codechange: move drawing a single settings entry to it's own function (Alberth) 16 years ago
rubidium d9bc99658b (svn r14798) -Codechange: move variable declaration to first use of variable (Alberth) 16 years ago
rubidium 489584b85e (svn r14797) -Codechange: replace even more magic numbers with constants (Alberth) 16 years ago
rubidium c3954f2e38 (svn r14796) -Fix: if using variable, use it everywhere instead of hardcoding it's value sometimes (Alberth) 16 years ago
rubidium 6913ae5a5f (svn r14795) -Codechange: replace a magic number with a constant (Alberth) 16 years ago
rubidium 8ff93c2c14 (svn r14794) -Document: a few functions/variables (Alberth) 16 years ago
rubidium 35f5783c62 (svn r14792) -Feature: make the date format for default savegame/screenshot names configurable 16 years ago
rubidium 1357b0a4c2 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 16 years ago
rubidium 31d496342f (svn r14767) -Codechange: remove some unneeded artificial limits from currencies and use the bounds of the data type. 16 years ago
rubidium 683b65ee18 (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 16 years ago
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium 64c973ccc5 (svn r14658) -Change: allow changing town names when there are no towns in the scenario yet. 16 years ago
peter1138 ca5ed4b2cc (svn r14609) -Codechange: Use supplied button colour instead of hardcoded yellow, for 'greyed out' arrow buttons. (Yorick) 16 years ago
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 16 years ago
rubidium e9f5a19544 (svn r14462) -Codechange: replace magic number with already existing constant (Albert) 16 years ago
frosch c20c3be91d (svn r14412) -Documentation: Comment some functions related to the advanced settings. Patch by Alberth, but with less excessive use of 'at'. 16 years ago
rubidium 6a931d67cd (svn r14390) -Codechange: replace magic constants with symbolic constants. 16 years ago
smatz 606f4defdc (svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString() 16 years ago
peter1138 2cb555ed11 (svn r14018) -Fix (r14017): Typos prevented compilation. 16 years ago
belugas ef22740ccb (svn r14017) -Codechange: DrawArrowButtons now uses Colours enum to specify the colour of the button 16 years ago
rubidium 60006ad24c (svn r13935) -Codechange [YAPP]: PBS signals can now be built with the normal signal tools. (michi_cc) 16 years ago
rubidium df99103a31 (svn r13927) -Add [YAPP]: Draw reserved tracks darker, toggeld by a patch setting. (michi_cc) 16 years ago
belugas 69671d3aef (svn r13907) -Codechange: Replace a number with Colours enum on DrawFrameRect usage 16 years ago
belugas 10f450e2d4 (svn r13900) -Codechange: Replace numbers with Colours enum on settings, smallmaps, stations and signs guis. 16 years ago
rubidium ab234cf90c (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
frosch ecc5d648df (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 16 years ago
smatz fee2adb299 (svn r13618) -Codechange: move tar-specific declarations to separate file
Removes indirect dependency on <string> and <map> for over 40 files
16 years ago
smatz 2299181c4b (svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions 16 years ago
rubidium 9e811a2f8b (svn r13386) -Fix: global currency/units setting being overriden when loading a savegame. 16 years ago
rubidium d58080fd44 (svn r13335) -Fix: remove rogue (debugging) printf. 16 years ago
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 16 years ago
rubidium cd8e589fa9 (svn r13256) -Codechange: merge the OPTS and PATS chuncks.
-Codechange: split the diff_custom variable.
-Feature: allow changing some of the diff_custom variables via the console in network games.
16 years ago
rubidium 8c9cc415e3 (svn r13255) -Codechange: move _opt to _settings. 16 years ago
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
16 years ago
rubidium 5fa0946c08 (svn r13242) -Codechange: remove _opt_ptr. 16 years ago
belugas fc35ad9ee9 (svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
Initial concept : TTDPatch (moreairpots),  Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
16 years ago
rubidium 27c38052b7 (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium 2e25df3ddf (svn r13166) -Codechange: CmdSetRoadDriveSide belongs in road_cmd.cpp, not settings_gui.cpp. 16 years ago
rubidium fc7e8100e1 (svn r13158) -Codechange: make a class of the GameOptionsWindow. 16 years ago
rubidium 8b54212900 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 16 years ago
rubidium b84adf1d89 (svn r13112) -Codechange: make classes of the patches and custom currency windows. 16 years ago
glx 534bf5b402 (svn r13097) -Codechange: make a class of the GameDifficultyWindow. 16 years ago
rubidium f23026cce8 (svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL. 16 years ago
rubidium f438700402 (svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments. 16 years ago
rubidium 2eef026fe3 (svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor. 16 years ago
rubidium 9bf519f26b (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. 16 years ago
rubidium e6c944a6c4 (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. 16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
belugas cdd22af5a1 (svn r12951) -Fix(r9762)[FS#1977): Revert the new difficulty settings of town and industries back to their initial values. 16 years ago
peter1138 a00371c8db (svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist. 16 years ago
rubidium 9d8fa486af (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 16 years ago