summaryrefslogtreecommitdiff
path: root/src/gui.h
AgeCommit message (Collapse)Author
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-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2013-06-09(svn r25372) -Add: Allow opening a goal list window specific to a companyzuu
2013-06-09(svn r25369) -Add: allow opening a story window specific to a companyzuu
2013-06-09(svn r25352) -Feature: GameScript API for selecting a story page to viewzuu
2013-06-09(svn r25344) -Feature: GUI for viewing story pageszuu
2012-12-05(svn r24791) -Remove: Difficulty settings window.frosch
2012-11-25(svn r24763) -Feature: Add industry type and cargo dropdown selection for ↵alberth
easier navigating in the industry chain window.
2012-06-01(svn r24309) -Codechange: Split some functions from gui.h to settings_gui.hfrosch
2012-01-21(svn r23827) -Feature [FS#4992]: [NoGo] Allow to chose the goal question ↵rubidium
window's title from a (small) set of options
2012-01-05(svn r23757) -Codechange: Unify the drawing of toggle buttons for boolean ↵frosch
settings.
2012-01-03(svn r23735) -Codechange: remove ~50 includes from headers that weren't neededrubidium
2012-01-03(svn r23731) -Add: add GSGoal::Question(), to ask a question to a(ll) ↵truebrain
company(ies). It can contain random text, and at most 3 buttons from a collection of 17
2011-12-19(svn r23630) -Add: a Goal GUI to show your current goalstruebrain
2011-12-10(svn r23474) -Codechange: move the declaration error related functions to ↵rubidium
error.h
2011-07-03(svn r22629) -Fix [FS#4599]: Remove all usages of the ErrorRefStack. It was ↵frosch
continuously overwritten by e.g. industry prospection without closing the old error window; also StopTextRefStackUsage() was not called for errors returned by commands (which caused FS#4599). Now return in the CommandCost result whether the textref stack needs to be used, and store a copy of the stack values in the error window just like for the normal string parameters.
2010-12-21(svn r21589) -Codechange: Move PlaceLandBlockInfo() to the right file, ↵alberth
introduce a ShowLandInfo() function.
2010-10-17(svn r20962) -Fix [FS#4166](r20956): Determine tile under cursor before ↵frosch
opening the new viewport. It might appear just below the cursor.
2010-07-19(svn r20189) -Codechange: unVARDEF _display_opt and move it to a more ↵rubidium
logical location
2010-07-04(svn r20071) -Codechange: Consistently return the toolbar window for ↵frosch
ShowBuildXxxToolbar().
2010-06-05(svn r19937) -Codechange: Move some fios related prototypes to fios.hfrosch
2010-02-24(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bitsmatz
2010-02-10(svn r19076) -Codechange: Move graph functions to their own header.terkhen
2010-02-08(svn r19062) -Codechange: Move smallmap related functions to their own header.terkhen
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-11(svn r18781) -Codechange: pass the CommandCost to the callback instead of ↵rubidium
whether it succeeded or not. -Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
2009-10-31(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string ↵alberth
before the details string. Gentlemen, swap your string parameters.
2009-10-31(svn r17927) -Codechange: Rename error message string variables.alberth
2009-09-21(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'smatz
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-05-24(svn r16414) -Change: Make it harder to ignore/close important error ↵frosch
messages. Esp. do not close them automatically after some time.
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-08(svn r15410) -Cleanup: get rid of most of the references to the 'patches' ↵rubidium
except where it's used for backward compatability.
2008-08-08(svn r14017) -Codechange: DrawArrowButtons now uses Colours enum to specify ↵belugas
the colour of the button
2008-06-25(svn r13628) -Feature: enable building of aqueducts in the scenario editorskidd13
-Codechange: related to this split the waterway based buttons from the landscape generation window
2008-05-29(svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to ↵rubidium
window_gui.h/window.cpp because they belong there.
2008-05-12(svn r13061) -Codechange: make a class of the BuildTreesWindow.glx
2008-05-08(svn r13009) -Codechange: move more tile highlighting related ↵rubidium
functions/types to tilehighlight_*.h.
2008-05-07(svn r12986) -Codechange: move the landscape and transport related types ↵rubidium
from openttd.h to their own headers.
2008-05-06(svn r12977) -Codechange: remove quite some redundant (duplicate) function ↵rubidium
declarations.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-05-05(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a ↵peter1138
'Location' button, a town/station/industry list, or some news items.
2008-04-18(svn r12768) -Codechange: move the statusbar GUI to it's own file.rubidium
2008-04-18(svn r12767) -Codechange: merge all main toolbar related functions into a ↵rubidium
single file instead of scattering the functionality over several files.
2008-04-17(svn r12757) -Codechange: move all cheat related stuff from all over the ↵rubidium
place to a single location.
2008-03-27(svn r12441) -Feature: open the time table when pressing the order button ↵rubidium
while pressing the CTRL key. Patch by Phil Sophus.
2008-03-23(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own ↵rubidium
little neighbourhood. Based on a patch by Dominik.
2008-02-14(svn r12136) -Fix(r12135): Code style compliance and... code style as suchbelugas
2008-02-14(svn r12135) -Codechange: Road and rail bridge selection windows were ↵belugas
identical apart the caption. So remove one window definition and set manually the caption accordingly. -Codechange: prepare the "type" of bridge parameter only once, at the beginning of the selection process. Makes less magic around.