summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
AgeCommit message (Collapse)Author
2021-05-08Codechange: Set specific widgets dirty instead of window.Peter Nelson
2021-05-03Fix: Query windows may be partially drawn initially. (#9184)PeterN
Query window was not marked dirty after being moved on init. It was then marked dirty once the white border flash completed.
2021-04-29Codechange: Replace window related FOR_ALL with range-based for loopsglx22
2021-04-24Update: Developer credits (#9091)Leif Linse
2021-04-10Fix: Adjust scrolling interval of credits to account for text line heightPeter Nelson
2021-04-08Fix: Viewport drag tooltips not being removed when dragging over other windowsJonathan G Rennison
2021-04-08Fix: Viewport drag tooltip flickering when dragging outside windowJonathan G Rennison
2021-02-08Fix: mention our websites with https:// (instead of http://) (#8657)Patric Stout
It is 2021. Nobody should advertise http anymore. Not even us.
2021-01-11Add: a go-to-location button to the LandInfo window.frosch
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-05Change: move "give money" from client-list to company windowPatric Stout
This is a much better location for this button, as you send money from one company to another company, not from player to player. This is based on work done by JGRPP in: https://github.com/JGRennison/OpenTTD-patches/commit/f82054339124cc6b89c5f4f9dac2d9da62f0108b and surrounding commits, which took the work from estys: https://www.tt-forums.net/viewtopic.php?p=1183311#p1183311 We did modify it to fix several bugs and clean up the code while here anyway. The callback was removed, as it meant a modified client could prevent anyone from seeing money was transfered. The message is now generated in the command itself, making that impossible.
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-14Codechange: use \u to indicate unicode chars in strings (#8379)Patric Stout
With \x, we sometimes had to do the "" trick, as the length is not predefined. With C++11 bringing \u to the specs, which has a preset length, we no longer need the "" trick. We set the strings to u8, to ensure all compilers use UTF-8 encoding for the \u characters. This was triggered by newer CLangs, which start to warn if you use "" in the middle of a string, wondering if that was your intention. It is a good question. And this is our answer :)
2020-05-06Codechange: Use a dynamic copyright yearglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-28Add: MeCharles Pigott
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-25Fix dcb2571: Missing override keywordsNiels Martin Hansen
2019-04-24Fix: Also breaking for warning text in set company passwordNiels Martin Hansen
2019-04-24Fix: Automatic line breaking of the warningNiels Martin Hansen
2019-04-24Add: Warn players that company passwords are not truly secureNiels 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-20Fix #7386: Measurement tooltip for tunnels, aqueducts & docks did not ↵peter1138
display or flickered. Measurement tooltip was auto-closed as the hover/right-click test for tooltips was not satisfied in this case. This is fixed by keeping the tooltip visible and instead explicitly closing the tooltip when the PlaceObject is cancelled/completed.
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-11-17Update: Developer creditsNiels Martin Hansen
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-10-30Fix: Missing m8 data in console when using Query toolNiels Martin Hansen
When map array 8 was added, the Query tool wasn't updated to also print the value there to the console, in debug builds.
2018-10-13Fix #6938: Don't change company value to perform cost estimations (#6939)Miguel Horta
These meddling kids dared to play with magic, but the ancients texts weren't ready for that. Refactors logic to estimate costs that dated to even before OpenTTD 0.1;
2018-06-07Codechange: Avoid call to memcpy using null pointer in TooltipsWindow ↵Jonathan G Rennison
constructor Strictly speaking, calling memcpy with src as a nullptr is undefined behaviour and the optimiser is entitled to delete any null ptr checks which occur afterwards. This removes the warning emitted by UndefinedBehaviorSantizer.
2018-06-03Fix: Theoretical string overflow when building the cargo acceptance list for ↵Michael Lutz
the land info window.
2018-03-11(svn r27979) -Add: adf88 to readmefrosch
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2016-12-09(svn r27686) -Change: List railtype of rail tiles explicitly in the tile ↵frosch
info window.
2016-08-15(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple ↵frosch
sprites.
2016-05-11(svn r27560) -Fix: typos in comments and stringmatthijs
2015-08-10(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing ↵michi_cc
conversions in initializer lists.
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2015-02-01(svn r27131) -Fix: Dropdown- and tooltip-windows should not steal the focus.frosch
2014-10-23(svn r27037) -Fix [FS#6150] (r26878): m6 was moved from Tile To ↵rubidium
TileExtended, but it wasn't properly removed from Tile (patch by Juanjo)
2014-10-18(svn r27023) -Codechange: Scale tooltip size by UI scale.peter1138
2014-09-26(svn r26924) -Codechange: Fit YES/NO query window buttons to window, instead ↵peter1138
of unaligned.
2014-09-21(svn r26873) -Change: split type_height into a type and height array (ic111)rubidium
2014-07-30(svn r26709) -Fix (r15892 and others) [FS#6069]: [OSX] Compilation fails ↵planetmaker
with some lzo2 versions if we define __LP64__ as 0 instead of checking whether it is defined (kernigh2)
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26486) -Codechange: replace a number of snprintfs with seprintfrubidium
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-01-26(svn r26277) -Add [FS#5849]: Display speed limit also for road bridges in ↵frosch
the TileInfo window.
2013-08-05(svn r25691) -Add: [OSX] Support for mouse selection in the IME composition ↵michi_cc
string.