Commit Graph

120 Commits (5c9071fcffc54eb1bf32d671cf521fadd407491d)

Author SHA1 Message Date
alberth 292647b212 (svn r16487) -Codechange [FS#2940]: Add widget numbers to news display and news history windows (based on work by erikjanp) 15 years ago
alberth 304b42d00e (svn r16485) -Fix [FS#2938]: Move date in news window a pixel away from the right-edge (erikjanp) 15 years ago
frosch a4557c7da4 (svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted. 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
rubidium 5f81ba886c (svn r16297) -Codechange: silence more ICC warnings 15 years ago
alberth 86eb1ca626 (svn r16205) -Codechange: Added nested widgets for news windows and news-settings window. 15 years ago
alberth 1728dd8046 (svn r16204) -Codechange: Completing widget numbers of news settings window. 15 years ago
alberth 551e377614 (svn r16203) -Codechange: Simplify widget layout of news settings window. 15 years ago
alberth c3c527c9b8 (svn r16202) -Codechange: Use widget top coordinate instead of hardcoded value. 15 years ago
alberth eab4fb07c6 (svn r16200) -Codechange: Moving news-type description to NewsTypeData array. 15 years ago
rubidium 7dd677ced2 (svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings. 15 years ago
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 15 years ago
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 15 years ago
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
smatz c299bac5be (svn r15830) -Codechange: don't use fixed size of array in news_gui.cpp and news_func.h 15 years ago
alberth 6567a29e18 (svn r15820) -Codechange: Some windows using nested widgets 15 years ago
rubidium 9038733f1a (svn r15812) -Codechange: use the new DrawString API in another set of GUIs 15 years ago
rubidium e74dc1e1d6 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
15 years ago
rubidium 69decac406 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 15 years ago
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
smatz af293142fe (svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate 16 years ago
rubidium f9def73be6 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 8dae160d0f (svn r15425) -Codechange: some color->colour changes and type safety. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 5fc7fe9648 (svn r14940) -Fix: let the statusbar know the current news are invalid or bad things will happen 16 years ago
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 16 years ago
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
smatz 66be028ad4 (svn r14307) -Fix: when deleting a station, remove news items regarding it 16 years ago
belugas d34eedfdb3 (svn r13897) -Codechange: Replace remaining numbers with Colours enum on news guis
-Fix: a few misalignements
16 years ago
belugas d358eff64d (svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own 16 years ago
belugas da4dc32a6f (svn r13867) -Codechange: Fix missing alignment 16 years ago
rubidium 891bec7e23 (svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages. 16 years ago
frosch ecc5d648df (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 16 years ago
smatz bf8afb4c38 (svn r13434) -Fix (r13317): news window with invalid news item could be shown 16 years ago
rubidium 5176319dd5 (svn r13389) -Codechange: remove NM_CALLBACK because that information could be gathered from the fact that a callback has been specified. Patch by Cirdan. 16 years ago
rubidium 92c80dab4c (svn r13349) -Codechange: remove a pointless flag; the flag is set before calling a function and is then reset in the function without ever reading it. Patch by Cirdan. 16 years ago
rubidium 5a6f6bf067 (svn r13345) -Codechange: only one of all the NewsItem's instance duration variable, so move it so there is only once instance of that variable. Patch by Cirdan. 16 years ago
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 16 years ago
rubidium 7f8f5fa52c (svn r13317) -Codechange: make news messages use a linked list instead of a moving circular buffer. This makes it possible to store more news messages in the history. Based on a patch by Cirdan.
-Codechange: the number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages).
16 years ago
rubidium b4e431bf7c (svn r13316) -Codechange: move some functions around to make them grouped more logically. 16 years ago
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
16 years ago
peter1138 6f233b1f8f (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
16 years ago
rubidium 27c38052b7 (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium a1137fcdfe (svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan. 16 years ago
rubidium 50203f8786 (svn r13154) -Codechange: make a window class of the news message history window. 16 years ago