Commit Graph

255 Commits (8cccb158e98a4a5c93d85fe2e09d3937855c4675)

Author SHA1 Message Date
rubidium 16c90ed48b (svn r21244) -Fix [FS#4240] (r21179): the news message always stayed in the middle; let it follow the setting of the statusbar instead 14 years ago
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
frosch d496ec65b9 (svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked. 14 years ago
frosch 9e538acc03 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 14 years ago
frosch 71ca58c2bb (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
alberth 4203e641f8 (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
frosch 7de069af3b (svn r19944) -Feature(ette): Open vehicle view when clicking on the caption of vehicle news. 14 years ago
frosch 38b8259f3b (svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window. 14 years ago
smatz c49436c2d1 (svn r19921) -Fix [FS#3865]: closing chatbox could cause glitches when news message was shown 14 years ago
yexo 7d5cfa5884 (svn r19105) -Fix [FS#3614]: not all news data was properly freed when starting a new game 15 years ago
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 87466a4ed0 (svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry. 15 years ago
frosch 8d8bd3d45f (svn r18597) -Fix (r17147)[FS#3395, FS#3396]: ChangeVehicleNews() did not update the news ticker. 15 years ago
alberth 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 15 years ago
alberth e0393a3de1 (svn r18492) -Doc: A few Doxygen reference fixes (NewsSubtype reported by Eddi), and a typo fix. 15 years ago
alberth 4b4c1ffc17 (svn r18349) -Fix (r18347): Older compilers want explicit assignments. 15 years ago
alberth f2f9ef7a9f (svn r18347) -Codechange: Compute width of labels in news settings window once. 15 years ago
rubidium 5d38d06313 (svn r18331) -Fix [FS#3334]: news items would with some chat 'bars' not be displayed fully. Fix by erikjanp. 15 years ago
rubidium 1f0da3710f (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 15 years ago
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium 458c73aecb (svn r18318) -Codechange: add an enum value for manual window placement 15 years ago
rubidium ff32ea24fc (svn r18311) -Codechange: no need to hardcode locations of some 'random' windows 15 years ago
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium 2a2884646c (svn r18257) -Fix: glitch when the news message is wider than the status bar 15 years ago
rubidium edc90be5b8 (svn r18252) -Fix: crash when news is shown when the end game window is opened (status bar goes missing for a while etc.) 15 years ago
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
rubidium 8204f226f1 (svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars 15 years ago
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 15 years ago
rubidium e9b6e73333 (svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances 15 years ago
rubidium 64d65cc635 (svn r18187) -Codechange: make the advanced face selection, custom currency, difficulty, news settings, signal, sign and vehicle details window RTL aware (use the arrow widget) 15 years ago
rubidium 4987d97810 (svn r18180) -Codechange: make the news history window RTL aware 15 years ago
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 15 years ago
rubidium 1c5a92ae98 (svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions 15 years ago
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
rubidium 860b9b1cea (svn r18028) -Codechange: unglobalise some functions 15 years ago
rubidium 4a970202a9 (svn r17947) -Codechange: make the statusbar, chat input and news window know of eachothers size so they don't get overlapped and don't get invisible (bottoms) of windows when a larger font is used 15 years ago
rubidium ca0521f89f (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 15 years ago
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium c847f5c04e (svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant. 15 years ago
alberth 116c77c342 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
alberth 5fd5ae125a (svn r17398) -Codechange: Fill normal news item window with widgets. 15 years ago
alberth 0f9da2d636 (svn r17397) -Codechange: Add new vehicle news window. 15 years ago
alberth c0b9a6a9bc (svn r17396) -Codechange: Add company news window. 15 years ago
alberth c518d8c0d9 (svn r17395) -Codechange: Fill thin window with widgets. 15 years ago
alberth 96617e804c (svn r17394) -Codechange: Add news flags for viewport settings. 15 years ago
alberth 92321eb204 (svn r17393) -Codechange: Fill small window with widgets. 15 years ago
alberth a536a15459 (svn r17392) -Codechange: Use 'default' for reacting on click. 15 years ago
alberth 3375627552 (svn r17390) -Codechange: Switch news item windows to nested widgets. 15 years ago
alberth 417ad163c0 (svn r17387) -Codechange: Add news-item window description to NewsSubtypeData. 15 years ago
alberth 284b92f3e9 (svn r17385) -Codechange: Removed some unneeded parentheses. 15 years ago
rubidium 7aeaa4f132 (svn r17371) -Codechange: make the newgrf, news and order GUIs use the scrollbar wrappers 15 years ago
rubidium b1d4594fa7 (svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster. 15 years ago
rubidium aca7ba714a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 15 years ago
alberth f74b7d4ebd (svn r17265) -Codechange: Typo fix, small is with two l's 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 7fb95e2c2b (svn r17228) -Codechange: some coding style fixes 15 years ago
alberth 4f1758b51a (svn r17204) -Codechange: Move viewport initialization into the constructor of the news item window. 15 years ago
alberth b03e758d25 (svn r17202) -Codechange: News item is already given as argument. 15 years ago
alberth 66e98469bb (svn r17200) -Codechange: Initialize NewsWindow::duration, add some documentation strings. 15 years ago
alberth 3409385e1d (svn r17199) -Codechange: Remove NF_VIEWPORT since it is implied by the news mode. 15 years ago
alberth dd6fcb08b6 (svn r17188) -Codechange: Use display mode names for naming window and widget descriptions. 15 years ago
alberth ff60a5605c (svn r17187) -Codechange: Make switches on news display mode complete. 15 years ago
alberth 13a37b427a (svn r17178) -Codechange (r17177): Remove now unused define. 15 years ago
alberth 200fcddc38 (svn r17177) -Codechange: Message options window uses nested widget tree. 15 years ago
alberth 3d38744b9f (svn r17176) -Codechange: Move widget state updating out of OnPaint method of message options window. 15 years ago
alberth fe74c526d8 (svn r17174) -Codechange: Switch to vertical alignment in the message options window. 15 years ago
alberth c4f055cc11 (svn r17172) -Codechange: Move the _message_opt variable into the MessageOptionsWindow struct. 15 years ago
alberth 4eb155ccfb (svn r17171) -Doc: Additions and corrections of various doxygen strings. 15 years ago
frosch 52f9b8ffbd (svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them. 15 years ago
alberth 8d809d5f4c (svn r17123) -Codechange (r17122): Use this for calling methods. 15 years ago
alberth 2cd3b5f44c (svn r17122) -Codechange: Message history window uses nested widget tree. 15 years ago
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 4b2592dbc0 (svn r17062) -Change: unify the naming of some 125 strings 15 years ago
alberth 92206f2d18 (svn r16837) -Codechange: Collect largest used index while constructing nested widget tree. 15 years ago
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