alberth
4364cec392
(svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density.
2011-02-06 18:26:50 +00:00
alberth
d84502c432
(svn r22000) -Codechange: Introduce an enum for the industry density setting.
2011-02-06 18:11:39 +00:00
alberth
7935eab3dc
(svn r21972) -Fix: Replace 'None' industries in the generation window with more descriptive label.
2011-02-05 11:42:27 +00:00
alberth
bdf5a1c2f7
(svn r21969) -Feature: Introduce 'minimal' number of industries as a replacment for the old 'none' setting in the newgame window.
2011-02-05 10:28:31 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
terkhen
679cd3c21b
(svn r21803) -Cleanup: Remove unnecessary semicolons.
2011-01-15 15:36:58 +00:00
alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
2010-11-26 15:22:18 +00:00
terkhen
725cf7d8bb
(svn r21080) -Fix: Do not allow to use a custom water level with the original map generator.
2010-11-04 18:34:37 +00:00
terkhen
0568976c78
(svn r21034) -Fix: Add missing default values for the custom town number and custom water level world generation options.
2010-10-24 20:58:31 +00:00
terkhen
e90930e572
(svn r20832) -Feature: Allow to select a custom percentage of water in the map generation window (based on patch by CommanderZ).
2010-09-20 18:56:35 +00:00
terkhen
b916c5d8c1
(svn r20831) -Add: Show selected number of towns in the map generation window when using a custom amount.
2010-09-20 18:48:33 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
alberth
35fec79700
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
2010-08-15 14:06:43 +00:00
rubidium
3da3d131c6
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
2010-08-08 10:59:30 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
terkhen
264bbc3076
(svn r20196) -Fix: Remove autofocus of the edit box in the world generation window.
2010-07-19 20:57:13 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
terkhen
4d7c861947
(svn r20140) -Fix: Initialize the state of OnKeyPress at the world generation window (Zuu).
2010-07-14 12:01:40 +00:00
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
2010-07-02 13:53:05 +00:00
yexo
a1b607a055
(svn r19872) -Codechange [FS#3826]: move the widget updates in the newgame gui to OnInvalidateData from OnPaint
2010-05-21 08:23:46 +00:00
yexo
9ed9aa9012
(svn r19871) -Fix [FS#3826]: update the landscape buttons in the main menu / newgame window correctly (planetmaker)
2010-05-21 06:59:45 +00:00
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
2010-01-30 18:34:48 +00:00
rubidium
afcce5ed90
(svn r18901) -Change: make the default button work again for the world generation window; previously it worked due to the bug fixed in r18899. Do not add it again for the town custom number because there is no default for that one.
2010-01-23 19:32:56 +00:00
rubidium
9e106dca81
(svn r18896) -Fix [FS#3558]: pressing cancel for the query windows of the world generation window caused the default to be set instead of no changes to the value
2010-01-23 15:53:09 +00:00
smatz
a39a446e8f
(svn r18861) -Doc: more doxygen documentation in genworld files
2010-01-18 14:58:32 +00:00
smatz
565ad802b1
(svn r18859) -Codechange: rename glwp_modes to GenenerateLandscapeWindowMode
2010-01-18 12:53:01 +00:00
smatz
11e3a00a23
(svn r18853) -Codechange: apply coding style to GenWorld's enums, structs and typedefs
2010-01-17 22:59:24 +00:00
smatz
3850b5912f
(svn r18850) -Fix [FS#3540]: don't allow screen redraw when the landscape contains broken slopes
2010-01-17 20:28:08 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
a535acb549
(svn r18787) -Fix [FS#3516]: crash when getting the tooltip of the industry amount in the world generation window
2010-01-11 20:58:52 +00:00
rubidium
04a8888547
(svn r18643) -Fix [FS#3436]: rotation could not be changed for heightmaps
2009-12-27 12:58:23 +00:00
rubidium
cc40883ad8
(svn r18586) -Fix [FS#3398]: pressing default for the starting year/snow line height edit boxes of the world generation windows didn't work.
2009-12-21 16:16:37 +00:00
rubidium
abb601f682
(svn r18585) -Codechange: replace some magic numbers by constants
2009-12-21 16:13:30 +00:00
peter1138
468986d41a
(svn r18560) -Fix (r18541): variety distribution dropdown should not be on heightmap window.
2009-12-20 09:28:53 +00:00
peter1138
2a53179f4d
(svn r18559) -Fix: When using original landscape generator, the terrain type and water level fields have no effect for arctic or tropic climates, so disable the dropdowns.
2009-12-20 09:26:37 +00:00
peter1138
37a6907e79
(svn r18543) -Codechange: Use separate set of strings for variety distribution setting to ease translation.
2009-12-19 18:36:35 +00:00
peter1138
99bb3a95b4
(svn r18541) -Feature: Additional map variety option for TGP landscape generator. Evolved from curve map idea from Zephyris.
2009-12-19 18:00:38 +00:00
yexo
cd9e525808
(svn r18457) -Fix (r18015): southwest and northeast buttons for freeform edges were swapped
2009-12-11 15:16:44 +00:00
rubidium
0db77807b7
(svn r18453) -Fix [FS#3364]: wrong heightmap dimensions, or rather... a nested_array index removed too much
2009-12-10 12:26:39 +00:00
rubidium
1f0da3710f
(svn r18324) -Codechange: there's no need for a default size when the window isn't resizable
2009-11-28 15:01:49 +00:00
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
2009-11-28 14:42:35 +00:00
rubidium
8d6e323ef8
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
2009-11-24 21:13:36 +00:00
rubidium
14300d309c
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
2009-11-24 18:05:55 +00:00
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
2009-11-24 17:28:29 +00:00
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
2009-11-22 18:28:14 +00:00
alberth
2b6f792513
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
2009-11-22 18:26:01 +00:00
alberth
bf93372ca2
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
2009-11-22 13:22:53 +00:00
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
2009-11-17 19:16:48 +00:00
rubidium
fd75575bdd
(svn r18113) -Fix: RTL glitch in play heightmap window
2009-11-16 11:54:59 +00:00
frosch
e41c2e128b
(svn r18109) -Fix: Up-/down-buttons of CreateScenarioWindow were not raised again.
2009-11-15 20:37:13 +00:00
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
rubidium
5d3fa80931
(svn r18015) -Codechange: redesign the world generation windows to make 'proper' use of nested widgets.
2009-11-08 16:46:23 +00:00
rubidium
4c06a9e549
(svn r18012) -Codechange: make the world generation windows nested; they'll need some tweaks to use the full potential though
2009-11-08 13:35:45 +00:00
rubidium
1eea96d636
(svn r18009) -Codechange: make the 'create scenario' window nested
2009-11-08 12:38:00 +00:00
rubidium
a6b362ff83
(svn r18006) -Codechange: make the world generation progress window nested
2009-11-08 12:11:38 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
07d2af338e
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
2009-09-01 10:07:22 +00:00
rubidium
aca7ba714a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
2009-08-23 19:03:09 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
alberth
11d974a9f1
(svn r17205) -Fix (r17175): Make year and snow line up/down buttons raise again.
2009-08-16 16:48:59 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
rubidium
e9bc557b2a
(svn r16930) -Codechange: more StringID name unification and grouping
2009-07-23 19:31:50 +00:00
rubidium
594070194f
(svn r16842) -Cleanup: add some spaces around a few operators
2009-07-16 10:13:33 +00:00
smatz
b18bf87c90
(svn r16642) -Codechange: use map size limits enum at one more place
2009-06-23 23:42:37 +00:00
yexo
d982ec81df
(svn r16444) -Codechange: Set all company settings to their default value for a new company instead of zeroing them.
2009-05-26 23:14:02 +00:00
rubidium
d685ca0619
(svn r16220) -Fix [FS#2862]: possible crashes when quiting OpenTTD or forcing resizes/redraws of the screen during map generation
2009-05-03 15:44:05 +00:00
rubidium
85b653bafc
(svn r16163) -Codechange: instead of SetDParamStr(0, string); DrawString(..., STR_JUST_RAW_STRING, ...) use DrawString(..., string, ...).
2009-04-26 15:42:45 +00:00
rubidium
7dd677ced2
(svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings.
2009-04-26 15:26:19 +00:00
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21 23:40:56 +00:00
alberth
9af4047eee
(svn r15927) -Codechange: Added nested widget for generate-world windows
2009-04-03 11:59:41 +00:00
alberth
64fe9fb7c2
(svn r15906) -Codechange: Completed widget number enum of world-generation windows.
2009-03-31 17:46:18 +00:00
alberth
861c29364c
(svn r15899) -Fix (r15898): Removed widget number comments used for debugging.
2009-03-30 20:04:29 +00:00
alberth
6c02f9208f
(svn r15898) -Codechange: Added nested widgets for create-scenrario window
2009-03-30 20:02:16 +00:00
alberth
70246b3d91
(svn r15897) -Codechange: Completed widget numbers and comment of create-scenario window.
2009-03-30 19:52:59 +00:00
alberth
7284ae3f77
(svn r15882) -Codechange: New widgets for generation progress window.
2009-03-28 16:35:33 +00:00
rubidium
57174a9301
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
2009-03-22 12:01:21 +00:00
rubidium
9003641095
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
2009-03-21 22:00:00 +00:00
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
2009-03-21 20:12:12 +00:00
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
2009-03-15 15:12:06 +00:00
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
rubidium
2adbf67968
(svn r15697) -Fix (r15695): warning about comparing signed vs unsigned.
2009-03-13 00:48:03 +00:00
belugas
f6e4bc765a
(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
2009-03-12 23:54:20 +00:00
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
2009-02-25 00:45:52 +00:00
yexo
901230bde1
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
2009-02-25 00:14:46 +00:00
yexo
1104e10695
(svn r15573) -Fix (r15538): Terrain type and sea level couldn't be changed in the scenario editor.
2009-02-24 23:20:17 +00:00
yexo
c3c549f731
(svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui.
2009-02-21 02:34:53 +00:00
yexo
1f9ec758aa
(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.
2009-02-14 23:17:32 +00:00
rubidium
861e9cefb3
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
2009-02-09 01:22:29 +00:00
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
2009-02-08 12:25:13 +00:00
Yexo
4301278514
(svn r15383) -Cleanup: Don't call MakeNewgameSettingsLive more often than necessary.
2009-02-06 23:58:16 +00:00
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
2009-02-04 20:17:25 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
Yexo
8877a0c9ae
(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.
2009-01-28 13:36:11 +00:00
Yexo
7b5bccb329
(svn r15240) -Fix (r15212): Loading heightmaps resulted in an assert.
2009-01-23 21:54:50 +00:00
Yexo
08670da54a
(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).
2009-01-23 00:18:27 +00:00
Yexo
db3ee34b44
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
belugas
6b25bc0e0c
(svn r15117) -Codechange: enlarge a few text boxes in the Create Scenario window, allowing them to be more visible.
2009-01-17 03:05:35 +00:00
belugas
c9fab1c314
(svn r15115) -Documentation: Add some widget enums to the widget array definition (Terkhen).
2009-01-16 21:25:59 +00:00