Commit Graph

108 Commits (0e2a75e97ac46550f53ab1b47bbd1a942eafa883)

Author SHA1 Message Date
alberth 0e2a75e97a (svn r15897) -Codechange: Completed widget numbers and comment of create-scenario window. 15 years ago
alberth 1d50f6c72f (svn r15882) -Codechange: New widgets for generation progress window. 15 years ago
rubidium 12f1abbce0 (svn r15808) -Codechange: use the new DrawString API in a number of GUIs 15 years ago
rubidium 89d614deea (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
rubidium c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
rubidium 7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 15 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 15 years ago
rubidium 3a3607862d (svn r15697) -Fix (r15695): warning about comparing signed vs unsigned. 16 years ago
belugas aa441cd4d7 (svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
Some warnings: 
-the maximum number of towns to be accepted is set to 5000
-the minimum number of towns to be accepted is set to 1
-the number that is specified is NOT guaranteed to be the exact number of towns generated.  The normal mechanism of town creation has not been modified.  So town placement can still fail.
-setting a custom number of town will change your difficulty settings to custom as well
16 years ago
yexo 7e818f0456 (svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum. 16 years ago
yexo bd2544b5ea (svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte. 16 years ago
yexo 5707f2c028 (svn r15573) -Fix (r15538): Terrain type and sea level couldn't be changed in the scenario editor. 16 years ago
yexo 598d20eedc (svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui. 16 years ago
yexo 6381cbeeae (svn r15495) -Revert (r15383,r15422): Loading NewGRFs depends on correct settings, but the economy can only be started after loading NewGRFs. In short: r15383 causes more problems then it's worth. 16 years ago
rubidium 5080feba0d (svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu). 16 years ago
rubidium 283b3d16ab (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
Yexo caf540d284 (svn r15383) -Cleanup: Don't call MakeNewgameSettingsLive more often than necessary. 16 years ago
smatz 3a8d57816a (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
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
Yexo 268d298a36 (svn r15288) -Fix (r15212): Don't set the newgame setting for water borders to a random value if it's 'random' when the newgame gui is opened. 16 years ago
Yexo 30241be9e5 (svn r15240) -Fix (r15212): Loading heightmaps resulted in an assert. 16 years ago
Yexo bd08be44ea (svn r15212) -Feature [FS#2566]: Change the dropdown box where you can chose which edges will be water to 4 pushbuttons (based on patch by planetmaker). 16 years ago
Yexo e3c69b7c4e (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 16 years ago
belugas 967356c7e5 (svn r15117) -Codechange: enlarge a few text boxes in the Create Scenario window, allowing them to be more visible. 16 years ago
belugas b7b116b1f4 (svn r15115) -Documentation: Add some widget enums to the widget array definition (Terkhen). 16 years ago
truebrain c2406cd42d (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
belugas 1a12ec4387 (svn r14855) -Documentation: Apply some widget naming to the widget arrays. Based on Yorick's work 16 years ago
rubidium 72d89337ee (svn r14804) -Codechange: unify opening the OSK (Zuu) 16 years ago
smatz bc1d994f6c (svn r14514) -Codechange: use 'size' instead of 'length' for querystring and textbuf, explicitly say it includes the terminating zero
-Fix: one couldn't rename things with too long default/automatic name
-Fix: buffer overflow in console when too long (1024 bytes) command was entered
16 years ago
rubidium f49d5057ee (svn r14390) -Codechange: replace magic constants with symbolic constants. 16 years ago
smatz ffa39caf3d (svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString() 16 years ago
belugas 9506434539 (svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.
Provided by ln
I've added a little fix on currency.cpp too, why not :)
16 years ago
belugas 89a12634de (svn r14060) -Codechange: Replace numbers with Colours enum on Gen world gui.
Note that some WWT_TEXT widgets have received a COLOUR_x value.
It is not a valid colour a per say.  THe strings been displayed there do have their own colours encoded.
IT is currently just for the sake of ease of writing, as TextColour and Colours are not really related.
16 years ago
rubidium 122f029b93 (svn r14046) -Codechange: make the size of querystring "widgets" more configurable. 16 years ago
rubidium 5a94972c2d (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
skidd13 0a178274e2 (svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant 16 years ago
glx d8fde03ec7 (svn r13508) -Fix (r7733): incorrect usage of strtoul 16 years ago
rubidium e7a501100a (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 290b3bd3cc (svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window. 16 years ago
rubidium c4c440cc20 (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 d289464d69 (svn r13255) -Codechange: move _opt to _settings. 16 years ago
rubidium dc77647ea4 (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 ce821b1ada (svn r13242) -Codechange: remove _opt_ptr. 16 years ago
peter1138 cfc45e97ab (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
16 years ago
rubidium 162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium d284ba2283 (svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean. 16 years ago
rubidium a89b5721a8 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 16 years ago
glx a4c5f94658 (svn r13132) -Codechange: make a class of the GenerateProgressWindow. 16 years ago
rubidium a7db265bb6 (svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore. 16 years ago
rubidium d8a6bb392a (svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables. 16 years ago