Sergii Pylypenko
870c254ee2
Merge tag '1.11.0-beta2' into master
2021-03-03 00:51:28 +02:00
frosch
d9b4413bc9
Codechange: rename sound ids to make more sense. ( #8701 )
2021-02-20 19:01:04 +01:00
pelya
3a82c97aa1
Merge remote-tracking branch 'upstream/master'
2021-01-25 00:50:42 +02:00
Patric Stout
b6ac5a3ab9
Fix 85a49a0d3: hotkeys were enabled outside of GM_NORMAL ( #8534 )
2021-01-08 23:28:46 +01:00
Patric Stout
af22a4f2cd
Add: show in the tooltip of disabled toolbar buttons why they are disabled
2021-01-08 16:43:51 +01:00
Patric Stout
85a49a0d36
Change: always allow to click on the toolbar icons for road/rail/dock/airport
...
This change allows a user to see what is available and what will become
available before it is available, instead of only disabling the button
with no further explanation. It also always allows building roads and
canals, even if no vehicles are available for road / water.
For rail/road/tram, a dropdown with available types is shown. If
none are available, it reads "None". If the type is not yet available,
it is greyed out.
For dock/airport, this always open the toolbar, but building airports,
docks, and depots buttons are disabled till vehicles are available
for those.
Road is the only exception, with the primary road always being
available. Here too, stations and depots are disabled till vehicles
become available. It does mean you can now always build roads to
for example help towns grow.
2021-01-08 16:43:51 +01:00
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
2021-01-08 11:16:18 +01:00
Łukasz Hryniuk
3effad0bea
Fix: Properly invalidate mouse-over station coverage highlight ( #8263 )
2020-07-27 17:37:47 +01:00
pelya
798fbc3466
Merge branch 'origin/master' commit 'a499e9acdd385b57dd43caf88af3a6f7f53716ba'
2020-03-20 00:10:46 +02:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
glx22
b3fd787959
Fix #7188 : check the validity of command callback for scripts ( #7701 )
2019-09-07 17:37:01 +01:00
peter1138
81f0f97406
Feature: Add existing station coverage area display when placing new station parts.
2019-04-25 09:14:01 +02:00
Sergii Pylypenko
3ba683874b
Merge remote-tracking branch 'origin/master' into HEAD
2019-04-23 18:16:24 +03:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Michael Lutz
c7b9987d08
Codechange: Switch DropDownList to directly use std::vector, thus making AutoDeleteSmallVector obsolete.
...
DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use
of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate
copy-free code for most situations.
2019-04-09 22:45:15 +02:00
Henry Wilson
a0f36a50e6
Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back()
2019-03-26 20:15:57 +00:00
peter1138
317f69c152
Codechange: Use override specifier in Window-derived classes.
2019-03-24 16:10:04 +01:00
Peter Nelson
2a8fa5fef9
Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust timers to work with milliseconds instead of ticks.
2019-01-11 11:56:21 +00:00
Sergii Pylypenko
1770e24fc5
Always put terraform toolbar below the tool windiw
2018-05-31 22:09:18 +03:00
Sergii Pylypenko
204ee8a5d7
Always show terraform menu in compact toolbar mode
2018-05-31 22:09:16 +03:00
pelya
a724419cc9
Fixed joining stations, broken by confirmation dialog
2017-03-17 22:40:05 +02:00
Sergii Pylypenko
ad5599aed8
Hide all windows when building anything on the map
2016-04-08 21:45:29 +03:00
pelya
3ef1c1baff
Merge commit 'a8b575671894ffe1329ef37dca4989c0e60d70f5'
...
These merges are becoming more awful every time
Conflicts:
src/ai/ai_gui.cpp
src/build_vehicle_gui.cpp
src/cheat_gui.cpp
src/company_gui.cpp
src/depot_gui.cpp
src/dock_gui.cpp
src/error_gui.cpp
src/genworld_gui.cpp
src/misc_gui.cpp
src/network/network_content_gui.cpp
src/network/network_gui.cpp
src/newgrf_gui.cpp
src/news_gui.cpp
src/rail_gui.cpp
src/rev.cpp.in
src/road_gui.cpp
src/settings_gui.cpp
src/settings_gui.h
src/signs_gui.cpp
src/station_gui.cpp
src/table/settings.ini
src/terraform_gui.cpp
src/toolbar_gui.cpp
src/toolbar_gui.h
src/vehicle_gui.cpp
src/video/sdl_v.cpp
src/viewport.cpp
src/widget.cpp
src/widgets/settings_widget.h
2016-03-27 22:33:11 +03:00
pelya
d9f14a5b79
Hide all windows when placing airport
2015-03-29 20:22:19 +03:00
pelya
8f7e444f4f
Allow scrolling when selecting destination station or building single-tile objects
2015-03-29 20:22:19 +03:00
frosch
6cb930168f
(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing max-vehicles settings. (adf88)
2015-02-22 15:26:27 +00:00
frosch
c639fb0d8e
(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing max-vehicles settings. (adf88)
2015-02-22 15:26:27 +00:00
peter1138
dcced1007b
(svn r26996) -Codechange: Don't clamp airport construction window size -- this causes very poor performance if the game window is not large enough.
2014-10-12 10:48:18 +00:00
peter1138
cb62e83e0e
(svn r26996) -Codechange: Don't clamp airport construction window size -- this causes very poor performance if the game window is not large enough.
2014-10-12 10:48:18 +00:00
Sergii Pylypenko
2603e6b5e3
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/os/unix/unix.cpp
src/widgets/dropdown.cpp
2014-08-19 19:21:47 +03:00
rubidium
554eec1129
(svn r26732) -Fix [FS#6083]: do not reset the last selected airport or layout (unless it is really necessary)
2014-08-15 19:41:57 +00:00
rubidium
03551d2b35
(svn r26732) -Fix [FS#6083]: do not reset the last selected airport or layout (unless it is really necessary)
2014-08-15 19:41:57 +00:00
Sergii Pylypenko
91ebce1a9c
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/console_gui.cpp
src/genworld_gui.cpp
src/group_gui.cpp
src/misc_gui.cpp
src/settings_gui.cpp
src/widgets/settings_widget.h
2014-06-04 17:09:23 +03:00
Sergii Pylypenko
41da4be66b
Removed remainder of the 'touchscreen mode' code
2014-06-03 20:27:45 +03:00
Sergii Pylypenko
742f20fcc3
Revert "Erase queued command also when depot direction/airport type/station type changes."
...
This reverts commit 60a7ac9f3c .
2014-06-03 18:44:34 +03:00
Sergii Pylypenko
b2bfcf6816
Revert "Erase queued commands when another command is about to be queued."
...
This reverts commit 604205045f .
2014-06-03 18:44:16 +03:00
Sergii Pylypenko
318ff9d373
Fixed airport construction dialog too tall
2014-05-28 22:52:11 +03:00
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
pelya
55a09da6b2
Merge remote-tracking branch 'upstream/master'
2014-03-23 19:04:54 +02:00
frosch
5c3b3f84d6
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
2014-03-23 13:28:32 +00:00
frosch
5370613924
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
2014-03-23 13:28:32 +00:00
Juanjo
141bb0861e
Before opening linked to main toolbar windows, delete linked windows.
2014-03-15 22:56:17 +02:00
Juanjo
604205045f
Erase queued commands when another command is about to be queued.
2014-03-15 22:53:35 +02:00
Juanjo
60a7ac9f3c
Erase queued command also when depot direction/airport type/station type changes.
2014-03-15 22:53:35 +02:00
Juanjo
b164486616
Reset queued command when closing windows that can queue them.
2014-03-15 22:53:35 +02:00
Juanjo
96d3b0695c
Amend gui's to work with touchscreen controls.
2014-03-15 22:23:22 +02:00
Juanjo
c872509d7b
Do actions when releasing the mouse, instead of when clicking:
...
Build town, industry, airport, dock, lock,
buoy, aqueduct, depots, change bridge rail/road specs.
2014-03-15 21:56:55 +02:00
Juanjo
0442649289
Add min sizing.
2014-03-15 21:35:16 +02:00
Juanjo
cab76bd7af
Draw strings vertically aligned on some windows.
2014-03-15 21:34:36 +02:00