Commit Graph

119 Commits

Author SHA1 Message Date
rubidium
e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 2008-09-30 20:51:04 +00:00
rubidium
f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 2008-09-30 20:39:50 +00:00
rubidium
f49d5057ee (svn r14390) -Codechange: replace magic constants with symbolic constants. 2008-09-23 15:24:15 +00:00
smatz
572423d06c (svn r14283) -Fix [FS#2281](r14175): beep only after clicking on the main toolbar, not after finishing the selection 2008-09-09 17:42:31 +00:00
peter1138
4071e36f36 (svn r14181) -Fix (r14175): Rail types are not road types 2008-08-28 19:22:03 +00:00
peter1138
c805cd6328 (svn r14175) -Codechange: Rewrite the main toolbars to use the standard dropdown menu system, allowing flexible menus instead of fixed string lists, and removing code duplication. 2008-08-25 20:42:54 +00:00
belugas
98d8501278 (svn r13970) -Codechange: Replace numbers with Colours enum on network, toolbar and dropdown guis.
Mostly forgotten ones.
2008-08-03 02:18:45 +00:00
belugas
7ef5369306 (svn r13919) -Codechange: Replace numbers with Colours enum on osk(forgot 2 assignations), statusbar, subsidy, terraform, timetable, toolbar, town, tree and vehicle guis. 2008-08-02 02:28:17 +00:00
rubidium
cde65455ac (svn r13731) -Codechange: make a pool of the array of players. 2008-07-18 16:40:29 +00:00
belugas
a380976a2a (svn r13672) -Fix(r13670): silent warnings that MSVC did not raised. Looks like enums can not be easily matched :( 2008-07-03 01:08:35 +00:00
belugas
741044e97b (svn r13670) -Codechange : Merge some very alike events handlers. 2008-07-01 00:04:09 +00:00
belugas
490f013c58 (svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus 2008-06-30 14:58:58 +00:00
frosch
cfdc710104 (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 2008-06-28 15:44:24 +00:00
belugas
54333f5f06 (svn r13646) -Change: typos and miss-aligned enum values 2008-06-27 16:16:35 +00:00
belugas
fef077823d (svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
Thanks to glx :)
2008-06-27 02:26:51 +00:00
belugas
16e2717c0e (svn r13643) -Codechange: Enumify some loosely related values been used in the toolbar resizing processes 2008-06-27 01:26:13 +00:00
belugas
554419d735 (svn r13642) -Documentation: Add the enum values to the widget arrays, in concordance with code style 2008-06-26 17:43:56 +00:00
belugas
5eabd09a97 (svn r13641) -Fix: Misleading enum name. 2008-06-26 17:13:39 +00:00
skidd13
3dea3cbe63 (svn r13628) -Feature: enable building of aqueducts in the scenario editor
-Codechange: related to this split the waterway based buttons from the landscape generation window
2008-06-25 17:30:16 +00:00
belugas
915a9ea6bd (svn r13597) -Codechange: Enumification of the Map menu items.
The rework allowed to remove a function, by merging two quite similar ones.
2008-06-21 01:40:56 +00:00
belugas
84df01f00b (svn r13590) -Codechange: Enumification of the Save/Load menu items 2008-06-20 01:55:00 +00:00
belugas
6fa570762c (svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think? 2008-06-19 20:04:24 +00:00
belugas
0fdb8057bb (svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions. 2008-06-19 19:58:26 +00:00
belugas
424a7935ad (svn r13562) -Codechange: Yet another enumification, which required a bit of explanation/documentation of a trickery some would call a hack 2008-06-18 03:19:31 +00:00
belugas
5e8e2709d0 (svn r13561) -Codechange: two more enumifications of widgets 2008-06-18 02:38:28 +00:00
belugas
db174b8b9b (svn r13560) -Fix(r13550): This section widget_count did not required to be lowered. So small revert 2008-06-18 02:04:01 +00:00
belugas
b8b47dcf50 (svn r13559) -Codechange: Enumification of the Options menu items 2008-06-17 23:51:17 +00:00
belugas
4bbe69f881 (svn r13550) -Fix(r13540, r13542): widget_count did not had the same value as 27. So, it has to be lowered by one, so it can be used as a widget "pointer" 2008-06-17 16:33:55 +00:00
belugas
fb4619c8ea (svn r13543) -Codechange: Enumification of the InGame toolbar and some leftovers of scenario editor one.
Still more go do
2008-06-17 03:20:04 +00:00
belugas
365705209b (svn r13542) -Codechange: Less a few more magic numbers and a code a bit more adaptable, still 2008-06-17 03:13:09 +00:00
belugas
f5b1b5a640 (svn r13541) -Codechange: Aligning some switch case. Code cosmetics. 2008-06-17 02:33:42 +00:00
belugas
7b873ce0bc (svn r13540) -Codechange: Less a magic number and a more adaptable code 2008-06-17 02:25:45 +00:00
belugas
b08db89d30 (svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
Even more when it's a parameter.
2008-06-16 17:28:15 +00:00
belugas
e044910d52 (svn r13515) -Codechange: Widget enumification for scenario editor 2008-06-14 02:00:20 +00:00
belugas
cec90c1af1 (svn r13514) -Codechange: Removal of dead code (or useless, to be more exact) 2008-06-14 01:45:58 +00:00
belugas
5d2ee7ecde (svn r13504) -Codechange: enumify some widgets for scenario editor. More work is required. 2008-06-13 01:57:48 +00:00
belugas
224f8e6fec (svn r13503) -Fix(r13173)[FS#2073]: Wrong widget numbers & event handlers were assigned to the zoom in and out buttons in the scenario editor 2008-06-13 01:17:03 +00:00
rubidium
fe9ce6eac4 (svn r13339) -Feature: splitting of the main toolbar when the resolution becomes very low so the buttons are still visible and useable. Patch by Dominik. 2008-05-29 23:33:37 +00:00
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.
2008-05-25 19:17:03 +00:00
rubidium
bf3b61cfa3 (svn r13228) -Codechange: split console.h. 2008-05-24 10:15:06 +00:00
peter1138
cfc45e97ab (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
2008-05-23 23:02:13 +00:00
smatz
0df8060a64 (svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns 2008-05-22 00:47:42 +00:00
rubidium
162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 2008-05-19 09:48:47 +00:00
smatz
17e4e33aee (svn r13179) -Fix (r13173): r13178 applies to the main toolbar in Scenario Editor, too 2008-05-19 02:01:44 +00:00
smatz
d00d718b41 (svn r13178) -Fix (r13173): the main toolbar didn't respect patch settings, it was always positioned on the right side 2008-05-19 01:57:30 +00:00
rubidium
01a569f0d7 (svn r13173) -Codechange: make windows of the main toolbars. 2008-05-18 22:11:46 +00:00
rubidium
a21d3fc63b (svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors. 2008-05-18 20:40:30 +00:00
rubidium
a89b5721a8 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 2008-05-17 12:48:06 +00:00
rubidium
439b328f41 (svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus. 2008-05-15 20:04:10 +00:00
rubidium
d87fc4d534 (svn r13106) -Codechange: rework the toolbar code a little so functions do not have to return the Window they just created. 2008-05-15 19:00:20 +00:00
glx
a6c4bbccb9 (svn r13061) -Codechange: make a class of the BuildTreesWindow. 2008-05-12 21:46:08 +00:00
rubidium
f710876037 (svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing. 2008-05-10 12:30:27 +00:00
rubidium
8d0a7f4634 (svn r13025) -Codechange: remove the need for two WindowEvents. 2008-05-09 15:27:00 +00:00
rubidium
0f7d925121 (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. 2008-05-09 09:29:27 +00:00
rubidium
f3d184aee4 (svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there. 2008-05-08 12:59:47 +00:00
rubidium
51cda2252c (svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor. 2008-05-08 11:31:41 +00:00
smatz
cc107fe0f9 (svn r12994) -Fix (r12976): another case main toolbar wasn't marked dirty 2008-05-07 18:14:09 +00:00
smatz
7927da8fab (svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed 2008-05-07 15:53:58 +00:00
rubidium
c28ce39e3c (svn r12987) -Codechange: split viewport and tile selection. 2008-05-07 13:10:15 +00:00
rubidium
9db77e3808 (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. 2008-05-06 22:08:18 +00:00
rubidium
8796331d83 (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. 2008-05-06 21:28:30 +00:00
rubidium
6ed5c01143 (svn r12892) -Fix: too many items in the vehicle toolbars were greyed out. 2008-04-25 06:15:58 +00:00
rubidium
47ebab771f (svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often. 2008-04-21 07:57:51 +00:00
rubidium
5c5bd70284 (svn r12769) -Codechange: some coding style cleanups. 2008-04-18 15:18:16 +00:00
rubidium
bc37ae3f2a (svn r12767) -Codechange: merge all main toolbar related functions into a single file instead of scattering the functionality over several files. 2008-04-18 15:11:39 +00:00
rubidium
ca1f8fbe2e (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 2008-04-18 04:37:06 +00:00
rubidium
18e64b28e2 (svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location. 2008-04-17 21:21:01 +00:00
rubidium
48bb9ff17c (svn r12402) -Fix: some toolbars didn't seem to show anymore. 2008-03-24 05:59:42 +00:00
rubidium
672087ecf6 (svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik. 2008-03-23 07:35:29 +00:00