Commit Graph

3754 Commits

Author SHA1 Message Date
peter1138
48e20d8012 (svn r13323) -Codechange: scrollbars are not refresh counters 2008-05-29 11:47:56 +00:00
rubidium
4151d68480 (svn r13322) -Codechange: _no_scroll belongs more with the window code. 2008-05-29 11:13:11 +00:00
rubidium
4a3dd37582 (svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp. 2008-05-29 10:16:59 +00:00
rubidium
793ac8baa4 (svn r13320) -Codechange: move some enums from openttd.h to more logical locations. 2008-05-29 09:54:47 +00:00
peter1138
698a51a41e (svn r13319) -Codechange: Remove use of imaginary horizontal scrollbar in the group vehicle list 2008-05-29 07:34:40 +00:00
rubidium
3716f4814d (svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there. 2008-05-29 06:49:56 +00:00
rubidium
d3d0432314 (svn r13317) -Codechange: make news messages use a linked list instead of a moving circular buffer. This makes it possible to store more news messages in the history. Based on a patch by Cirdan.
-Codechange: the number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages).
2008-05-28 21:36:16 +00:00
rubidium
f88349843a (svn r13316) -Codechange: move some functions around to make them grouped more logically. 2008-05-28 20:13:28 +00:00
peter1138
05465d4d9a (svn r13315) -Fix (r13314): Assert if no engines or wagons available 2008-05-28 20:06:00 +00:00
peter1138
c61baba819 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList 2008-05-28 17:29:27 +00:00
peter1138
4ab659e29b (svn r13313) -Fix-ish (r13306): List was copied in another place the autoreplace gui... 2008-05-28 17:08:45 +00:00
skidd13
5f3aeb6670 (svn r13312) -Update: apply english.txt changes from r13311 to other languages 2008-05-28 16:50:05 +00:00
skidd13
4f7e14b6fb (svn r13311) -Codechange: Use GUIList for the industry directory window
-Codechange: Replaced the four sort buttons by a dropdown
-Codechange: Reduced the default window size
2008-05-28 16:45:00 +00:00
smatz
3f000be670 (svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard) 2008-05-28 15:28:27 +00:00
rubidium
f740702f90 (svn r13309) -Fix: the difficulty settings from the savegame would be reset by the ones of the intro game. 2008-05-28 14:36:06 +00:00
peter1138
f731b31eda (svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h 2008-05-28 11:56:21 +00:00
peter1138
f97403803b (svn r13306) -Fix (r8362): Pass engine list by pointer instead of making a copy of it. 2008-05-28 10:29:48 +00:00
peter1138
9a78083c8a (svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes. 2008-05-28 06:30:55 +00:00
smatz
f505e4e407 (svn r13304) -Fix (r13042): possible double free (showed up in r13092) 2008-05-27 23:40:36 +00:00
smatz
47c22cffce (svn r13303) -Fix (r13301): 64bit gcc compilation was broken 2008-05-27 23:10:42 +00:00
rubidium
adabce3d11 (svn r13302) -Fix (r13301): GCC doesn't necessarily like what MSVC likes... 2008-05-27 22:02:26 +00:00
rubidium
33e18c236d (svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings. 2008-05-27 21:41:00 +00:00
skidd13
0682b03046 (svn r13299) -Fix (r13286): Stations sort type isn't updated correctly 2008-05-27 20:33:44 +00:00
smatz
459239c9d2 (svn r13298) -Codechange: remove unused _total_signs 2008-05-27 20:25:28 +00:00
peter1138
6c7e6861f8 (svn r13297) -Codechange: Use GUIList for the town directory window 2008-05-27 20:05:36 +00:00
smatz
f538282f7a (svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset 2008-05-27 19:58:32 +00:00
smatz
ff7104865f (svn r13295) -Codechange: remove now redundant check 2008-05-27 19:03:06 +00:00
skidd13
6180112c90 (svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object 2008-05-27 18:50:31 +00:00
smatz
8c8b002dd6 (svn r13293) -Fix (r13226): airport far from a town generated too much noise 2008-05-27 18:20:14 +00:00
glx
382c45120b (svn r13292) -Fix (r13285): MSVC warnings 2008-05-27 16:56:58 +00:00
peter1138
44dd8955d1 (svn r13291) -Fix (r13266): qsort passed wrong sizeof data 2008-05-27 15:30:51 +00:00
peter1138
1272c55991 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp 2008-05-27 12:24:23 +00:00
skidd13
831343435c (svn r13286) -Codechange: GUIList Sort returns now if the list sequence has been altered 2008-05-27 10:27:30 +00:00
skidd13
49010369d2 (svn r13285) -Codechange: station sorting uses GUILists Sort() now 2008-05-27 09:57:29 +00:00
skidd13
2094baf537 (svn r13283) -Codechange: convert the inheritance of GUIList in PlayerStationsWindow to a member object 2008-05-27 09:24:45 +00:00
smatz
33dc3165be (svn r13280) -Fix (r13276): MSVC compilation was broken 2008-05-27 00:13:51 +00:00
smatz
691bf29724 (svn r13279) -Codechange: simplify condition for terminating loop when reversing list order 2008-05-26 21:45:57 +00:00
peter1138
855336a1e6 (svn r13278) -Fix: Missing call to FindWindowPlacementAndResize() for drop down lists 2008-05-26 21:40:52 +00:00
rubidium
290b3bd3cc (svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window. 2008-05-26 21:38:17 +00:00
smatz
f2a5b2556c (svn r13276) -Codechange: use qsort() for initial sorting of a list for better performance (credits go to skidd13 and peter1138) 2008-05-26 21:27:06 +00:00
smatz
75568d2df9 (svn r13275) -Fix: sort lists with 2 items, too
-Fix: reset VL_RESORT and resort timer even when no sort was needed
2008-05-26 21:08:03 +00:00
glx
b3d7ca0ceb (svn r13273) -Fix [FS#2042]: MSVC warnings (again) 2008-05-26 20:20:38 +00:00
skidd13
16cee252a7 (svn r13271) -Codechange: groups sorting uses GUILists Sort() now 2008-05-26 18:30:58 +00:00
peter1138
0434e83e91 (svn r13270) -Codechange: There is no need to clear lists in the window constructor 2008-05-26 18:25:27 +00:00
skidd13
c3dd9d864e (svn r13269) -Codechange: build bridge window uses GUILists Sort() now
-Cleanup: make some globals part of the build bridge window
2008-05-26 17:53:37 +00:00
skidd13
f202f1dda6 (svn r13267) -Codechange: extend GUIList with a GnomeSort 2008-05-26 16:44:48 +00:00
peter1138
781b90ac91 (svn r13266) -Codechange: Use SmallVector in GUIList 2008-05-26 16:23:23 +00:00
smatz
d969edaa8f (svn r13260) -Fix: linked terraform toolbar wasn't marked dirty after moving 2008-05-26 10:41:30 +00:00
peter1138
bd5f782c61 (svn r13259) -Fix: Subsidy text could still overflow 2008-05-26 10:28:59 +00:00
rubidium
690c83edba (svn r13258) -Codechange: add support for using (most) of the old patch names in the console. 2008-05-26 05:58:15 +00:00
belugas
2ed98629d7 (svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan 2008-05-26 02:25:17 +00:00
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.
2008-05-26 00:31:36 +00:00
rubidium
d289464d69 (svn r13255) -Codechange: move _opt to _settings. 2008-05-25 22:36:44 +00:00
smatz
8d60206684 (svn r13254) -Fix: waypoint orders could have invalid flags set after conversion 2008-05-25 20:00:10 +00:00
smatz
115f4d6d51 (svn r13253) -Codechange: simplify conversion of old orders a bit 2008-05-25 19:38:17 +00:00
smatz
b4bfcd8118 (svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders 2008-05-25 19:29:24 +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
peter1138
26ee8f3ca1 (svn r13250) -Codechange: Use VehicleList in SendAllVehiclesToDepot() 2008-05-25 17:36:49 +00:00
smatz
c9ef11159f (svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent 2008-05-25 17:26:16 +00:00
peter1138
6d65ce0c8b (svn r13248) -Codechange: Use VehicleList for depot GUI. 2008-05-25 17:22:49 +00:00
rubidium
c5e38037f0 (svn r13247) -Codechange: small amount of coding style for settings.cpp. 2008-05-25 17:04:09 +00:00
peter1138
449a03be4b (svn r13246) -Fix (r13245): incorrect parameters to memcpy 2008-05-25 16:22:34 +00:00
peter1138
bcd05a4bce (svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat. 2008-05-25 16:12:13 +00:00
smatz
8d51e95c44 (svn r13244) -Fix: allow only one town directory window to be opened 2008-05-25 15:57:45 +00:00
rubidium
ce821b1ada (svn r13242) -Codechange: remove _opt_ptr. 2008-05-25 12:57:39 +00:00
peter1138
4ea34e778c (svn r13241) -Codechange: Simplify CmdDepotSellAllVehicles() a bit 2008-05-25 11:18:57 +00:00
peter1138
0a9e8854ec (svn r13240) -Codechange: More const-ness for GUI code. 2008-05-25 09:40:44 +00:00
smatz
7672a059c9 (svn r13239) -Fix: certain compilers give false warning about uninitialized variable 2008-05-24 23:18:21 +00:00
frosch
7fbfe54c74 (svn r13234) -Fix: Check/affect town rating when removing/bulldozing town-owned road under drivethrough stops.
-Fix: Reset the 'town-owned-road'-flag when removing and rebuilding road under drivethrough stops.
2008-05-24 22:15:10 +00:00
frosch
8f104a2e97 (svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
-Fix: Before evaluating RoadOwner, check if the roadtype is present.
-Fix: Some places assumed that MP_ROAD means normal street.
2008-05-24 19:36:20 +00:00
peter1138
ca244cbd06 (svn r13232) -Codechange: Simplify BuildDepotVehicleList() 2008-05-24 12:12:02 +00:00
rubidium
eb3347e9d8 (svn r13231) -Codechange: split the core console code and the console GUI. 2008-05-24 11:55:25 +00:00
frosch
9da2cd6e02 (svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows. 2008-05-24 11:19:30 +00:00
rubidium
080af12d8b (svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums. 2008-05-24 10:35:15 +00:00
rubidium
bf3b61cfa3 (svn r13228) -Codechange: split console.h. 2008-05-24 10:15:06 +00:00
peter1138
5f625acb1a (svn r13227) -Codechange: Apply code style 2008-05-24 10:02:49 +00:00
belugas
08671d2e78 (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
2008-05-24 02:54:47 +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
rubidium
7ba02ef2b0 (svn r13224) -Fix (r13107): set the location of the old SelectPlayerFaceWindow when switching from simple to advanced or vice versa instead of letting the new window popup somewhere 'randomly'. 2008-05-23 22:55:32 +00:00
smatz
8841f3be40 (svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes 2008-05-23 16:08:58 +00:00
smatz
9e2490abb2 (svn r13221) -Fix (r8747): old AI failed to build oil rig routes 2008-05-23 15:57:18 +00:00
smatz
baeb6e5395 (svn r13217) -Fix: old AI was building small airports in years when they were not available in original game, causing small planes and helis everywhere 2008-05-23 00:28:13 +00:00
smatz
11e80b2794 (svn r13216) -Codechange [FS#2026]: enumify and comment Editor Terraform Toolbar widgets (Roujin) 2008-05-22 20:44:24 +00:00
smatz
6a4dad27fe (svn r13215) -Codechange [FS#2029]: enumify and comment Build Dock widgets (Roujin) 2008-05-22 20:37:14 +00:00
belugas
47f1263fd8 (svn r13210) -Codechange: make town (previously named t) a private member of the different Town guis and assign it only once, at creation 2008-05-22 02:13:24 +00:00
belugas
165df7420b (svn r13209) -Codechange: Privatize what should be private. 2008-05-22 02:03:05 +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
smatz
6b4f70099e (svn r13207) -Fix: misleading comments (michi_cc) 2008-05-22 00:37:27 +00:00
frosch
7f80552293 (svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window. 2008-05-21 22:15:39 +00:00
peter1138
42f78d2fc3 (svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro. 2008-05-21 12:06:05 +00:00
glx
41adc28093 (svn r13202) -Fix (r13149): MSVC signed/unsigned warning 2008-05-20 21:55:45 +00:00
smatz
c1e45bcb01 (svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window 2008-05-19 19:17:56 +00:00
smatz
ebe6a8b0df (svn r13190) -Cleanup: remove unused variable 2008-05-19 16:44:50 +00:00
rubidium
162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 2008-05-19 09:48:47 +00:00
rubidium
ad29064cf3 (svn r13184) -Codechange: make a window class of the signs list. 2008-05-19 09:45:24 +00:00
rubidium
df6446c07c (svn r13183) -Codechange: make a window class of the VehicleViewWindow. 2008-05-19 09:39:05 +00:00
rubidium
8560c8f16f (svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth. 2008-05-19 09:24:03 +00:00
rubidium
03f1292332 (svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan. 2008-05-19 09:18:51 +00:00
peter1138
b9cfaa6637 (svn r13180) -Codechange: make a window class of the TownDirectoryWindow. 2008-05-19 09:17:26 +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