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
peter1138
aafce47596
Codechange: Use override specifier for DropDownListItem classes.
2019-03-24 16:10:04 +01:00
Henry Wilson
af7d9020a1
Codechange: Use override specifer for overriding member declarations
...
This is a C++11 feature that allows the compiler to check that a virtual
member declaration overrides a base-class member with the same signature.
Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked
as virtual despite being a template.
2019-03-24 16:10:04 +01:00
Patric Stout
e3c639a09f
Remove: ENABLE_NETWORK switch
...
This switch has been a pain for years. Often disabling broke
compilation, as no developer compiles OpenTTD without, neither do
any of our official binaries.
Additionaly, it has grown so hugely in our codebase, that it
clearly shows that the current solution was a poor one. 350+
instances of "#ifdef ENABLE_NETWORK" were in the code, of which
only ~30 in the networking code itself. The rest were all around
the code to do the right thing, from GUI to NewGRF.
A more proper solution would be to stub all the functions, and
make sure the rest of the code can simply assume network is
available. This was also partially done, and most variables were
correct if networking was disabled. Despite that, often the #ifdefs
were still used.
With the recent removal of DOS, there is also no platform anymore
which we support where networking isn't working out-of-the-box.
All in all, it is time to remove the ENABLE_NETWORK switch. No
replacement is planned, but if you feel we really need this option,
we welcome any Pull Request which implements this in a way that
doesn't crawl through the code like this diff shows we used to.
2019-03-20 19:24:55 +01:00
peter1138
9cb84a1bad
Feature: Add road icon to road construction drop down list.
2019-03-10 10:31:37 +00:00
peter1138
fb35cb5ed2
Remove: Unnecessary virtual destructors on drop down list items.
2019-03-10 09:20:11 +00:00
peter1138
811bf22620
Codechange: Use Colours type instead of byte.
2019-03-10 09:20:11 +00:00
Patric Stout
91eee793e1
Fix c3dbe836b4: also compile without ENABLE_NETWORK defined again
2019-02-24 01:11:08 +01:00
glx
aadcf40b9b
Fix 1585eb1a3: wrong default selection for goals and story book
2019-02-17 16:04:52 +01:00
Joan Josep
548ec05a48
Add: News menu entry and shortcut for deleting all messages. ( #7240 )
2019-02-16 23:15:58 +00:00
glx
1585eb1a3e
Fix: use more descriptive "spectator" strings for story book and goal dropdown menus
2019-02-16 22:19:16 +01:00
glx
8e7fe3973f
Add: CompanyCtrlAction enum for CMD_COMPANY_CTRL actions
2019-02-04 21:08:36 +01:00
PeterN
c3dbe836b4
Add: Draw network password indicator lock in company drop down list. ( #7079 )
2019-01-22 12:42:52 +00:00
Peter Nelson
806e7d25dd
Change: Use GUITimer class instead of bare int/uints.
2019-01-11 11:56:21 +00: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
Niels Martin Hansen
2a868b9f3b
Feature: Framerate display window ( #6822 )
...
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-07-19 21:17:07 +02:00
Sergii Pylypenko
9bcb86d7b5
Another fix
2018-05-31 22:09:17 +03:00
Sergii Pylypenko
f014b84b1a
Fixed classic mobile toolbar
2018-05-31 22:09:17 +03:00
Sergii Pylypenko
705e85d386
Finalized compact toolbar
2018-05-31 22:09:16 +03:00
Sergii Pylypenko
204ee8a5d7
Always show terraform menu in compact toolbar mode
2018-05-31 22:09:16 +03:00
Sergii Pylypenko
dee7e1bf3d
Updated todo
2018-05-31 22:09:16 +03:00
Sergii Pylypenko
4274c7e084
Moved two buttons to Help/About menu
2018-05-31 22:09:16 +03:00
Sergii Pylypenko
71fc92240f
More items in graphs menu
2018-05-31 22:09:16 +03:00
Sergii Pylypenko
60212cda94
Compact build menu implementation
2018-05-31 22:09:15 +03:00
pelya
817edd68df
Re-added Ctrl and Shift button to horizontal toolbar
2018-05-31 21:57:30 +03:00
pelya
a41863520d
Updated toolbar buttons arrangement - Station List button is now on the permanent part of the toolbar
2018-05-31 21:55:28 +03:00
pelya
dba8074c0b
Old button layout for toolbar
2018-05-31 21:55:28 +03:00
pelya
796c6b7b72
Improvements to network chat
2018-05-31 21:55:28 +03:00
pelya
38c999d742
Setting to disable windows titlebars
2018-05-31 21:55:28 +03:00
pelya
b6a3d29263
Adjusted future compact toolbar
2018-05-31 21:55:27 +03:00
pelya
456934dc84
Compact vertical bar button arrangement, not used yet
2018-05-31 21:55:27 +03:00
pelya
b209e513e1
Replaced magic numbers for vertical toolbar
2018-05-31 21:55:27 +03:00
Joan Josep
944f785be8
Fix: Spelling errors ( #6769 )
2018-04-30 18:52:32 +02:00
Sergii Pylypenko
b4cc822085
Merge svn r27779
...
Conflicts:
src/autoreplace_gui.cpp
src/economy.cpp
src/fios_gui.cpp
src/lang/spanish_MX.txt
src/network/network_gui.cpp
src/rev.cpp.in
src/road_gui.cpp
src/toolbar_gui.cpp
src/window.cpp
2017-03-17 23:14:41 +02:00
frosch
77b790cd5a
(svn r27671) -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01)
2016-10-30 17:36:57 +00:00
frosch
30574a7cad
(svn r27671) -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01)
2016-10-30 17:36:57 +00:00
alberth
f286ba8db2
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04 16:06:50 +00:00
alberth
0adfb1ac6f
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04 16:06:50 +00:00
alberth
3b84827773
(svn r27648) -Codechange: Remove remaining _saveload_mode usage.
2016-09-04 12:56:56 +00:00
alberth
88bdf482c0
(svn r27648) -Codechange: Remove remaining _saveload_mode usage.
2016-09-04 12:56:56 +00:00
frosch
93d5995bed
(svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status in the main toolbar.
2016-08-15 18:32:25 +00:00
frosch
ca6493f2e6
(svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status in the main toolbar.
2016-08-15 18:32:25 +00:00
pelya
34e886c5e5
Reverted more SetMinimalSize() hacks
2016-03-27 22:48:45 +03:00
pelya
7dc511ba5c
Fixed toolbar and status bar
2016-03-27 22:45:58 +03:00
pelya
400065fa43
Fixed compilatin, reverted several of my changes
...
Conflicts:
src/gfx.cpp
src/widget.cpp
src/widget_type.h
src/window.cpp
src/window_func.h
2016-03-27 22:41:43 +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
1e5fb9290c
Video tutorial dialog, only one bus tutorial for now
2015-03-29 20:23:39 +03:00
pelya
5b874adee8
Do not auto-close main toolbar menus, disabled autoscroll for dropdown lists
2015-03-29 20:23:35 +03:00
pelya
4d4f707638
Removed #ifdef ANDROID from where it's not needed
2015-03-29 20:19:03 +03:00