Commit Graph

206 Commits (8ab480449867ece2c0285ba6fe34eecab0fd1f61)

Author SHA1 Message Date
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch 0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
alberth c188200bfe (svn r17398) -Codechange: Fill normal news item window with widgets. 15 years ago
alberth 013c615ede (svn r17397) -Codechange: Add new vehicle news window. 15 years ago
alberth f24b6797ae (svn r17396) -Codechange: Add company news window. 15 years ago
alberth e09d1be9ac (svn r17395) -Codechange: Fill thin window with widgets. 15 years ago
alberth fa83a5de3b (svn r17394) -Codechange: Add news flags for viewport settings. 15 years ago
alberth 61800b82a2 (svn r17393) -Codechange: Fill small window with widgets. 15 years ago
alberth d6f7e7fe23 (svn r17392) -Codechange: Use 'default' for reacting on click. 15 years ago
alberth 72341ca1df (svn r17390) -Codechange: Switch news item windows to nested widgets. 15 years ago
alberth cc57785308 (svn r17387) -Codechange: Add news-item window description to NewsSubtypeData. 15 years ago
alberth 64b3cab2ff (svn r17385) -Codechange: Removed some unneeded parentheses. 15 years ago
rubidium d5e749d8b1 (svn r17371) -Codechange: make the newgrf, news and order GUIs use the scrollbar wrappers 15 years ago
rubidium c1fe2ce4bc (svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster. 15 years ago
rubidium d4a98be94a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 15 years ago
alberth bdb54a11dd (svn r17265) -Codechange: Typo fix, small is with two l's 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium c096e3d54c (svn r17228) -Codechange: some coding style fixes 15 years ago
alberth e5577c7c01 (svn r17204) -Codechange: Move viewport initialization into the constructor of the news item window. 15 years ago
alberth 8484638ba8 (svn r17202) -Codechange: News item is already given as argument. 15 years ago
alberth a634d839fb (svn r17200) -Codechange: Initialize NewsWindow::duration, add some documentation strings. 15 years ago
alberth 7877b5b304 (svn r17199) -Codechange: Remove NF_VIEWPORT since it is implied by the news mode. 15 years ago
alberth 2a155ffbf9 (svn r17188) -Codechange: Use display mode names for naming window and widget descriptions. 15 years ago
alberth c4bcae1599 (svn r17187) -Codechange: Make switches on news display mode complete. 15 years ago
alberth f8252a7b74 (svn r17178) -Codechange (r17177): Remove now unused define. 15 years ago
alberth 45cad5c733 (svn r17177) -Codechange: Message options window uses nested widget tree. 15 years ago
alberth 4cd2dfecdf (svn r17176) -Codechange: Move widget state updating out of OnPaint method of message options window. 15 years ago
alberth b21edb5c61 (svn r17174) -Codechange: Switch to vertical alignment in the message options window. 15 years ago
alberth a6d4d3351a (svn r17172) -Codechange: Move the _message_opt variable into the MessageOptionsWindow struct. 15 years ago
alberth 0cc8cbd40d (svn r17171) -Doc: Additions and corrections of various doxygen strings. 15 years ago
frosch e44a69b92f (svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them. 15 years ago
alberth e8c34c300d (svn r17123) -Codechange (r17122): Use this for calling methods. 15 years ago
alberth a4ef6a78a2 (svn r17122) -Codechange: Message history window uses nested widget tree. 15 years ago
rubidium d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 5bb7b8ad35 (svn r17062) -Change: unify the naming of some 125 strings 15 years ago
alberth 0dcb1a320d (svn r16837) -Codechange: Collect largest used index while constructing nested widget tree. 15 years ago
alberth 627cb3abe2 (svn r16487) -Codechange [FS#2940]: Add widget numbers to news display and news history windows (based on work by erikjanp) 15 years ago
alberth 02c1ed111d (svn r16485) -Fix [FS#2938]: Move date in news window a pixel away from the right-edge (erikjanp) 15 years ago
frosch eeb3f75cfe (svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted. 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
rubidium 08655368eb (svn r16297) -Codechange: silence more ICC warnings 15 years ago
alberth d477532aed (svn r16205) -Codechange: Added nested widgets for news windows and news-settings window. 15 years ago
alberth 8214a1746c (svn r16204) -Codechange: Completing widget numbers of news settings window. 15 years ago
alberth 785c4dad07 (svn r16203) -Codechange: Simplify widget layout of news settings window. 15 years ago
alberth 41003af530 (svn r16202) -Codechange: Use widget top coordinate instead of hardcoded value. 15 years ago
alberth 5175aa9e9b (svn r16200) -Codechange: Moving news-type description to NewsTypeData array. 15 years ago
rubidium 3bd4eeb178 (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 650cb3694e (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
rubidium dd2661bbbd (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 15 years ago
rubidium 5c5b357043 (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 bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
smatz ce4f598cf5 (svn r15830) -Codechange: don't use fixed size of array in news_gui.cpp and news_func.h 15 years ago
alberth 8f5f39cf09 (svn r15820) -Codechange: Some windows using nested widgets 15 years ago
rubidium 2e38d7c332 (svn r15812) -Codechange: use the new DrawString API in another set of GUIs 15 years ago
rubidium 31a5457c03 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
15 years ago
rubidium 2a422e3e95 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 16 years ago
rubidium 89d614deea (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 16 years ago
rubidium c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 16 years ago
smatz d28895c88b (svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate 16 years ago
rubidium 7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium a7693c6059 (svn r15425) -Codechange: some color->colour changes and type safety. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 11822aa8ef (svn r14940) -Fix: let the statusbar know the current news are invalid or bad things will happen 16 years ago
rubidium 96156a8ab1 (svn r14423) -Codechange: also do r14221 for the strings. 16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium f56e630e5c (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 7e4e999a97 (svn r14307) -Fix: when deleting a station, remove news items regarding it 16 years ago
belugas 128df8ec8a (svn r13897) -Codechange: Replace remaining numbers with Colours enum on news guis
-Fix: a few misalignements
16 years ago
belugas 7e4b1e2d84 (svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own 16 years ago
belugas dc25683255 (svn r13867) -Codechange: Fix missing alignment 16 years ago
rubidium 56ad26a3aa (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 cfdc710104 (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 16 years ago
smatz e1d2cd6983 (svn r13434) -Fix (r13317): news window with invalid news item could be shown 16 years ago
rubidium bb758700a8 (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 f0f4e9d6ec (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 20228809f0 (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 e7a501100a (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 d3d0432314 (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 f88349843a (svn r13316) -Codechange: move some functions around to make them grouped more logically. 16 years ago
rubidium dc77647ea4 (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 cfc45e97ab (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
16 years ago
rubidium 162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium 03f1292332 (svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan. 16 years ago
rubidium 8846d4380f (svn r13154) -Codechange: make a window class of the news message history window. 16 years ago
rubidium d284ba2283 (svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean. 16 years ago
rubidium 4db10034fd (svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp. 16 years ago
rubidium a89b5721a8 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 16 years ago
rubidium 349aec37e6 (svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow. 16 years ago
rubidium 083d7e8726 (svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar. 16 years ago
rubidium 01e79dde73 (svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan. 16 years ago
rubidium ca8d282eff (svn r13102) -Codechange: make a class of the NewsWindow. 16 years ago
rubidium 373343cef6 (svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls. 16 years ago
rubidium 5d7851e8d6 (svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan. 16 years ago
glx dacd2c5de8 (svn r13047) -Codechange: remove vp_d 16 years ago
rubidium 4a46a5cdda (svn r13043) -Codechange: remove some duplicate variables from news_d. 16 years ago
rubidium f710876037 (svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing. 16 years ago
rubidium ee0a49c91a (svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan. 16 years ago
rubidium 51cda2252c (svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor. 16 years ago