summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-04-24Change: Zoom title game by UI zoom levelNiels Martin Hansen
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
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-02-23Fix #7004: Mark linkgraph dirty to be rebuilt on next draw call. (#7265)PeterN
Previously the linkgraph was rebuilt before the viewport extents were finalized.
2019-02-16Add: News menu entry and shortcut for deleting all messages. (#7240)Joan Josep
2019-01-11Change: Use GUITimer class instead of bare int/uints.Peter Nelson
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-05-24Change: [OSX] Setting mouse-wheel to scroll the map does not disable pinch ↵Alexander Weiss
to zoom
2016-05-22(svn r27571) -Codechange: Consistent naming for command callbacks which play ↵frosch
a sound effect.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-15(svn r26338) -Fix [FS#5908]: Don't redraw the link graph overlay if it's ↵fonsinchen
empty (MJP)
2013-06-15(svn r25412) -Codechange: Make use of Window::OnHotkeyfrosch
2013-06-15(svn r25410) -Codechange: Put all hotkeys of a window into a static ↵frosch
HotkeyList member.
2013-06-15(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.frosch
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-05-19(svn r25264) -Feature: linkgraph overlay over main viewport (fonsinchen)rubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-12-01(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from ↵alberth
various sources (including Eagle_rainbow, MinchinWeb)
2012-03-25(svn r24065) -Feature-ish [FS#5101]: debug option for showing the redrawn ↵rubidium
dirty blocks/rectangles
2011-12-16(svn r23536) -Codechange: document and rename widgets to be consistent and ↵truebrain
understandable
2011-12-15(svn r23528) -Codechange: move widget enums to widgets/NNN_type.htruebrain
2011-12-15(svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, ↵truebrain
with only values known in WindowFlags (and move out 2 timers to their own variable) -Codechange: rename Window::flags4 to Window::flags -Codechange: move some non-inline functions from .hpp to .cpp
2011-11-24(svn r23314) -Add: Add settings to restrict viewport zoom levels.peter1138
2011-09-15(svn r22932) -Fix [FS#4766]: disable the white border on window creation for ↵yexo
several windows (based on patch by monoid)
2011-08-21(svn r22788) -Codechange: move modal progress related functions and ↵rubidium
variables to progress.cpp/h
2011-08-21(svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgressrubidium
2011-07-20(svn r22675) -Change: Add a menu entry for the sprite bounding box debuging ↵planetmaker
feature in the help menu and enable bounding boxes only in conjunction with the newgrf developer tools
2011-05-01(svn r22405) -Document: some more "random-ish" tidbitsrubidium
2011-04-22(svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> ↵rubidium
NetworkClientInfo::GetByClientID
2011-04-17(svn r22343) -Change: Remove pixel limiter for query strings.terkhen
2011-03-13(svn r22241) -Codechange: Add additional to-be-used parameter to ↵frosch
OnInvalidateData().
2011-02-23(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, ↵frosch
process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
2011-02-08(svn r22028) -Cleanup: remove traces of a debugging "feature" that got ↵rubidium
disabled a long time ago
2011-02-07(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.hrubidium
2011-02-05(svn r21988) -Change: Disable smooth scrolling for GHK_CENTER_ZOOM when ↵frosch
zooming is also involved.
2011-02-05(svn r21977) -Codechange: Always cal Window::OnMouseWheel(), independent of ↵frosch
viewport scroll/zoom settings.
2011-01-22(svn r21889) -Fix [FS#4434]: crash when scrolling outside of the main window ↵rubidium
(with some video backends)
2011-01-15(svn r21803) -Cleanup: Remove unnecessary semicolons.terkhen
2010-12-24(svn r21627) -Codechange: Remove _place_proc global variable.alberth
2010-12-10(svn r21459) -Feature(tte) [FS#3217]: Hotkey Ctrl+W for returning to the ↵planetmaker
main menu
2010-10-23(svn r21018) -Doc: Add Doxygen comments to some function.alberth
2010-10-20(svn r21000) -Feature[tte]: chat directly to the server or a bot/admin/irc ↵rubidium
channel monitoring the server (dihedral)
2010-09-24(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised ↵smatz
away
2010-08-25(svn r20618) -Fix [FS#4081]: drawing the "OpenTTD" text in the intro game ↵rubidium
caused crashes with very low resolutions
2010-08-04(svn r20361) -Fix [FS#3989]: Stop vehicle following after zooming out.terkhen