rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
2011-02-07 22:37:22 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
4682434bc9
(svn r21867) -Codechange: move creating the rail type dropdown to a more general location
2011-01-20 12:40:04 +00:00
rubidium
2f6c840ebf
(svn r21866) -Feature [FS#4394]: [NewGRF] Rail type property to influence sorting of rail types in the drop down list
2011-01-20 12:22:38 +00:00
rubidium
b8c9988d9f
(svn r21842) -Feature [FS#4393]: [NewGRF] Introduction dates/required types for rail types; e.g. introduce a particular rail type in 1960 (or when a vehicle using it is introduced), but also allow limiting its introduction to only happen when the required railtypes are available
2011-01-18 21:30:59 +00:00
rubidium
6371b75bcc
(svn r21841) -Feature: [NewGRF] Allow to define other railtypes that should be introduced if a particular rail type is introduced, e.g. to make sure slow rail is introduced when fast rail gets introduced
2011-01-18 21:28:07 +00:00
rubidium
7ab524b048
(svn r21817) -Change: only show rail/road types that will eventually be available in-game. For example don't show trams when there is no tram NewGRF loaded
2011-01-16 10:25:47 +00:00
yexo
b22945350f
(svn r21696) -Feature [FS#4362]: allow changing the AI configuration in the scenario editor / in game
2011-01-02 12:41:24 +00:00
alberth
366eaebc3e
(svn r21592) -Codechange: Return unique values for placing a sign and land-info querying, store the callback information locally, and use it instead of the global _place_proc.
2010-12-21 22:00:08 +00:00
alberth
a61cdd719d
(svn r21591) -Codechange: Align case functions.
2010-12-21 21:54:16 +00:00
alberth
24aedc08da
(svn r21590) -Codechange: All click handling functions of the main toolbar return CBF_NONE.
2010-12-21 21:48:31 +00:00
alberth
35a8e91d01
(svn r21589) -Codechange: Move PlaceLandBlockInfo() to the right file, introduce a ShowLandInfo() function.
2010-12-21 21:46:19 +00:00
rubidium
b6c2216749
(svn r21358) -Codechange: make some network function names conform to coding style
2010-11-30 13:38:46 +00:00
planetmaker
c45d88ea6c
(svn r21355) -Feature-ish [FS#4280]: Happy Zuu and a hotkey for the AI debug window for all (Zuu)
2010-11-30 00:15:38 +00:00
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
2010-11-13 09:56:25 +00:00
planetmaker
5565ae1ac0
(svn r21116) -Add [FS#3012]: Reduce the chances to accidentially break savegames with NewGRFs
2010-11-07 21:46:41 +00:00
yexo
e5f1161edd
(svn r21054) -Fix [FS#4188] (r19397): scenario starting year was not set correctly when changed by clicking on the date panel and entering a new value
2010-10-28 18:15:42 +00:00
frosch
12a7e2fde0
(svn r20962) -Fix [FS#4166](r20956): Determine tile under cursor before opening the new viewport. It might appear just below the cursor.
2010-10-17 13:54:05 +00:00
yexo
532003504e
(svn r20807) -Codechange: don't clamp the width of the main toolbar to 640 pixels
2010-09-15 21:10:14 +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
rubidium
56a263070f
(svn r20591) -Codechange: make sure _date_fract is set when SetDate is called. Some places wouldn't reset _date_fract correctly at all
2010-08-22 09:18:01 +00:00
michi_cc
71ff3c4bb4
(svn r20508) -Add [FS#3973]: A new screenshot type that makes a zoomed-in screenshot of the visible viewport. (Eddi)
2010-08-15 23:32:36 +00:00
michi_cc
0796ba3d26
(svn r20507) -Change: Remove the shortcut hints from the screenshot menu strings (as they're configurable now) and rename "Giant screenshot" to "Whole map screenshot".
2010-08-15 23:32:32 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
yexo
1ec328f725
(svn r20201) -Feature [FS#3926]: add several new hotkeys to the global hotkey list and to the order windows. None of them has a default keybinding.
2010-07-21 14:28:06 +00:00
yexo
2828f36aa4
(svn r20200) -Fix [FS#3930]: terraform and extra viewport hotkeys didn't work in the scenario editor (jawsper)
2010-07-21 13:11:11 +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
yexo
6997637208
(svn r20075) -Feature: customizable hotkeys for the main toolbar in the scenario editor
2010-07-04 11:48:04 +00:00
yexo
19f86951d9
(svn r20073) -Feature: customizable hotkeys for the road toolbar
2010-07-04 10:57:31 +00:00
yexo
26be68ae98
(svn r20070) -Feature: when none of the open windows handles a keypress, try all toolbars for global hotkeys
...
Users that have run a version between r20056 and r20068 should delete their hotkeys.cfg to reset the terraform toolbar hotkeys to default
2010-07-03 21:43:44 +00:00
yexo
9b66684b81
(svn r20068) -Feature: customizable hotkeys for the rail toolbar
2010-07-03 20:40:18 +00:00
yexo
ddf11b7d3f
(svn r20065) -Feature: customizable hotkeys for the main toolbar
2010-07-03 19:35:54 +00:00
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
2010-07-02 13:53:05 +00:00
rubidium
062dd0e24c
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
2010-05-13 10:14:29 +00:00
rubidium
c72e2dde60
(svn r19723) -Add: a simple sprite alignment helper. It does not store the new offsets anywhere so as soon as the sprite is reloaded the offsets are gone (use a bigger sprite cache if this happens). Also anything that reloads NewGRFs (new games, loading games or (re)applying NewGRFs) clears the sprite cache and as such resets the offsets.
2010-04-25 16:27:30 +00:00
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
2010-04-18 14:56:05 +00:00
peter1138
ef8deb2edd
(svn r19431) -Codechange: Append rail type speed limit (if set) to rail type selection list, and toolbar title.
2010-03-16 06:18:52 +00:00
terkhen
bf2c06bedb
(svn r19397) -Add: Enter the starting year at the scenario editor by clicking at the date panel.
2010-03-13 10:18:57 +00:00
alberth
33a96b5ef3
(svn r19132) -Codechange: No need to end a line with ;;.
2010-02-14 16:31:35 +00:00
terkhen
2329eacfe8
(svn r19076) -Codechange: Move graph functions to their own header.
2010-02-10 15:24:48 +00:00
terkhen
b9f06f3f29
(svn r19062) -Codechange: Move smallmap related functions to their own header.
2010-02-08 21:19:41 +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
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
ebe99fd493
(svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company.
2010-01-11 20:32:32 +00:00
rubidium
a6146f5f51
(svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested.
2009-12-19 19:21:37 +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
458c73aecb
(svn r18318) -Codechange: add an enum value for manual window placement
2009-11-28 13:54:28 +00:00
frosch
bdd0f8762d
(svn r18308) -Codechange: Use GetSpriteSize() instead of hardcoded width in dropdowns with company icon.
2009-11-27 16:46:17 +00:00
frosch
5c6b7fd88d
(svn r18307) -Fix: some coding style.
2009-11-27 16:35:34 +00:00
frosch
b4626547b5
(svn r18306) -Codechange: Remove the need for SETX from checkboxish menu items.
2009-11-27 16:20:56 +00:00
frosch
a37ca47882
(svn r18305) -Codechange: Replace some 2s with WD_FRAMERECT_(LEFT|RIGHT).
2009-11-27 16:18:03 +00:00
rubidium
bd39a3b4c4
(svn r18289) -Codechange: if using RTL draw the toolbar in the reverse direction so the buttons overlap 'nicely'
2009-11-25 21:30:45 +00:00
smatz
f0c64208cf
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
2009-11-24 21:18:11 +00:00
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
2009-11-24 17:28:29 +00:00
rubidium
fb168e25ad
(svn r18261) -Codechange: center the company icons in the toolbar dropdowns
2009-11-23 20:14:42 +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
777d5ce12e
(svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays.
2009-11-20 20:10:06 +00:00
rubidium
0fc733f3a0
(svn r18165) -Codechange: make company dropdowns RTL aware
2009-11-18 12:31:48 +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
95af4f40f3
(svn r18108) -Fix (r17986): crash when clicking just 'outside' of the date panel
2009-11-15 20:16:51 +00:00
rubidium
aeb9f8e715
(svn r18092) -Codechange: remove support for the unnested widgets
2009-11-15 13:36:30 +00:00
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
rubidium
cbeba59fc2
(svn r18033) -Codechange: make the padding for IMGBTN_2 the same as for IMGBTN; the image doesn't move, so the extra space at the right and bottom aren't needed
2009-11-09 17:20:48 +00:00
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
rubidium
7f8a062f3f
(svn r17986) -Codechange: make the scenario 'main' toolbar nested. Also make it implement the 'switch' toolbar feature when it gets really small.
2009-11-06 20:34:43 +00:00
rubidium
1000445382
(svn r17985) -Codechange: make the toolbar container support non-resizable widgets and subclassing of itself.
2009-11-06 20:32:15 +00:00
rubidium
8678730ce3
(svn r17973) -Fix: 'save' toolbar button didn't change when clicking it
...
-Fix: wrong widgets (e.g. finances and company) could be visually disabled, based on the state of the zoom in/out buttons. However, they were still clickable
-Codechange: make the main toolbar a nested window
2009-11-04 20:02:14 +00:00
rubidium
32b568a7e9
(svn r17971) -Codechange: make the code of the toolbar more uniform; give the switch bar a tooltip and unify the naming of sprites.
2009-11-04 18:28:59 +00:00
rubidium
b2946819e4
(svn r17970) -Codechange: some coding style / improvement of constant usage
2009-11-04 15:50:14 +00:00
rubidium
fd29b7b526
(svn r17969) -Codechange: use the toolbar switch button lowered state as a way to tell which of the configurations it's showing
2009-11-04 15:49:27 +00:00
smatz
090c762921
(svn r17938) -Feature: non-automatic screenshot name can be entered in console
2009-11-01 18:15:35 +00:00
rubidium
ca0521f89f
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
2009-10-24 14:53:55 +00:00
rubidium
2b7d09b73e
(svn r17748) -Fix: crash when right clicking on the 'toggle' toolbar button
2009-10-09 17:35:01 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
smatz
15511678e3
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
2009-09-21 18:16:00 +00:00
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
2009-09-20 23:11:01 +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
frosch
734edc178d
(svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already.
2009-09-13 17:37:47 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
alberth
118d5e9fac
(svn r17192) -Fix (r17175): Buttons in the toolbar of the scenario editor did not raise again.
2009-08-15 20:33:38 +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
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
2009-08-04 18:04:33 +00:00
rubidium
36a28fe3d2
(svn r16951) -Change: order the strings in the options dropdown slightly more logical
2009-07-25 11:02:15 +00:00
rubidium
65d4d8b46c
(svn r16949) -Codechange: unify the way the DisplayOption enums are written
2009-07-25 10:54:42 +00:00
rubidium
e9bc557b2a
(svn r16930) -Codechange: more StringID name unification and grouping
2009-07-23 19:31:50 +00:00
smatz
da57fe63f3
(svn r16497) -Feature [FS#2870]: Q/W/E/D will now open the landscape toolbar and select appropriate tool
2009-06-01 14:36:36 +00:00
smatz
af07333c78
(svn r16430) -Fix: crash when a company is deleted while a dropdown with company names is open
2009-05-26 11:57:52 +00:00
smatz
10d1ef5447
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
2009-05-22 15:23:47 +00:00
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
2009-05-17 01:00:56 +00:00
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
rubidium
bdbbe3a09b
(svn r16321) -Fix (r5946): in the scenario editor change the (starting) game year of the scenario, not the (starting) game year for new games/scenarios.
2009-05-16 18:58:15 +00:00
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06 15:06:57 +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
rubidium
329cabab4f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
2009-04-19 10:31:30 +00:00
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
2009-03-29 09:49:11 +00:00
glx
9fcff01850
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
2009-03-21 20:06:00 +00:00
rubidium
93fe44a3c5
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
2009-03-21 19:31:47 +00:00
rubidium
8a758beec3
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
2009-03-21 19:10:26 +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