peter1138
317f69c152
Codechange: Use override specifier in Window-derived classes.
6 years ago
peter1138
aafce47596
Codechange: Use override specifier for DropDownListItem classes.
6 years ago
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.
6 years ago
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.
6 years ago
peter1138
9cb84a1bad
Feature: Add road icon to road construction drop down list.
6 years ago
peter1138
fb35cb5ed2
Remove: Unnecessary virtual destructors on drop down list items.
6 years ago
peter1138
811bf22620
Codechange: Use Colours type instead of byte.
6 years ago
Patric Stout
91eee793e1
Fix c3dbe836b4: also compile without ENABLE_NETWORK defined again
6 years ago
glx
aadcf40b9b
Fix 1585eb1a3: wrong default selection for goals and story book
6 years ago
Joan Josep
548ec05a48
Add: News menu entry and shortcut for deleting all messages. ( #7240 )
6 years ago
glx
1585eb1a3e
Fix: use more descriptive "spectator" strings for story book and goal dropdown menus
6 years ago
glx
8e7fe3973f
Add: CompanyCtrlAction enum for CMD_COMPANY_CTRL actions
6 years ago
PeterN
c3dbe836b4
Add: Draw network password indicator lock in company drop down list. ( #7079 )
6 years ago
Peter Nelson
806e7d25dd
Change: Use GUITimer class instead of bare int/uints.
6 years ago
Peter Nelson
2a8fa5fef9
Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust timers to work with milliseconds instead of ticks.
6 years ago
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.
6 years ago
Joan Josep
944f785be8
Fix: Spelling errors ( #6769 )
7 years ago
frosch
30574a7cad
(svn r27671) -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01)
8 years ago
alberth
0adfb1ac6f
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
8 years ago
alberth
88bdf482c0
(svn r27648) -Codechange: Remove remaining _saveload_mode usage.
8 years ago
frosch
ca6493f2e6
(svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status in the main toolbar.
8 years ago
frosch
780e595933
(svn r27178) -Fix [FS#5969]: Data race due to lazy initialisation of objects.
10 years ago
frosch
64e943d32a
(svn r27150) -Fix (r27146): Forgot scenario toolbar.
10 years ago
frosch
e113f5e4a1
(svn r27146) -Fix: Make statusbar and chat-entry window use the same width as the toolbar. Otherwise they lack a size definition.
10 years ago
frosch
33f4f0b464
(svn r26986) -Change: Rename 'Advanced Settings' to just 'Settings'.
10 years ago
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
11 years ago
frosch
167f232623
(svn r26314) -Fix [FS#5899]: The giant-screenshot confirmation window only triggered for rediculously big screenshots, for ludicrously big ones.
11 years ago
rubidium
f480c5a623
(svn r26217) -Change: blitter autoselection based on full animation state, so the non-animated optimizations can actually be used in an easy manner (based on patch by MJP)
11 years ago
rubidium
83eeba28b7
(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns
11 years ago
fonsinchen
5ab204c8a1
(svn r25867) -Fix [FS#5764]: Shift dates on link graphs when using scenario editor date tool.
11 years ago
zuu
a8c9322729
(svn r25772) -Add: Additional layered main toolbar arrangement
11 years ago
zuu
4e74a4c5cc
(svn r25761) -Change: Disable story/goal buttons when there is no content to show instead of when there is zero companies
11 years ago
frosch
5cb174c6b8
(svn r25412) -Codechange: Make use of Window::OnHotkey
11 years ago
frosch
1b8b1f3f6c
(svn r25410) -Codechange: Put all hotkeys of a window into a static HotkeyList member.
11 years ago
frosch
d9e9710cb3
(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.
11 years ago
zuu
be8645e137
(svn r25383) -Fix (r25376): Remove now redundant menu entries for story book and goals
11 years ago
zuu
a724a9924b
(svn r25376) -Feature: Allow access to goal list and story book of other companies than your own
11 years ago
zuu
eaede14b8f
(svn r25372) -Add: Allow opening a goal list window specific to a company
11 years ago
zuu
8980cb427d
(svn r25369) -Add: allow opening a story window specific to a company
11 years ago
zuu
a2d84868e7
(svn r25344) -Feature: GUI for viewing story pages
11 years ago
frosch
3ff6d19238
(svn r25335) -Change: Revisit the map menu in scenario editor: Remove linkgraph legend, add industry list.
11 years ago
frosch
2547523c0f
(svn r25304) -Change: Move the GS goals window from the subsidies to the league menu.
12 years ago
frosch
8157a8afd8
(svn r25290) -Add: Assign string names to notable windows.
12 years ago
frosch
8c4714ad90
(svn r25289) -Codechange: Store width of statusbar and main toolbar directly in the WindowDesc.
12 years ago
frosch
56e4a8c4d6
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
12 years ago
rubidium
50ae992b47
(svn r25263) -Add: legend for linkgraph overlay (fonsinchen)
12 years ago
frosch
3ce8d2ce70
(svn r24846) -Add: Advanced settings to disable certain sound effects.
12 years ago
frosch
647ee0de64
(svn r24842) -Remove: News settings window.
12 years ago
frosch
04a24969ea
(svn r24806) -Feature [FS#3148]: Ask for confirmation before creating giant screenshots.
12 years ago
frosch
ff6880f9dd
(svn r24791) -Remove: Difficulty settings window.
12 years ago