frosch
19c9fe96f6
(svn r23509) -Fix [FS#4884]: Drawing of newspaper headlines used different padding than the initial sizing of the window.
2011-12-13 18:27:04 +00:00
frosch
bbc3409942
(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
2011-11-01 16:51:47 +00:00
frosch
2981404793
(svn r22897) -Change: More suitable default news settings instead of everything on 'full'.
2011-09-05 21:55:05 +00:00
frosch
5e449b8fae
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
2011-05-06 21:13:29 +00:00
frosch
22286bd7b6
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
2011-05-04 17:45:16 +00:00
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00
frosch
1ffd720f81
(svn r22383) -Codechange: Rename PALETTE_TO_STRUCT_GREY to PALETTE_NEWSPAPER as it does not belong to the other PALETTE_TO_STRUCT_xxx recolourings.
2011-04-29 20:47:36 +00:00
frosch
ec9540a12a
(svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData().
2011-03-13 21:31:29 +00:00
frosch
ef3ec0f8c8
(svn r21987) -Fix: Make news items, engine previews and AI preview events deal with no longer existing Engine items after resetting the pool.
2011-02-05 20:41:13 +00:00
rubidium
eb299736c1
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
2011-01-22 09:53:15 +00:00
rubidium
676a53fb40
(svn r21458) -Fix [FS#4180]: possible crash when news item gets removed at just the wrong moment
2010-12-10 22:39:01 +00:00
alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
2010-11-26 15:22:18 +00:00
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
2010-11-18 19:24:40 +00:00
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
2010-11-13 09:56:25 +00:00
frosch
d496ec65b9
(svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked.
2010-08-12 16:44:51 +00:00
frosch
9e538acc03
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
2010-08-12 09:16:43 +00:00
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.
2010-08-12 08:37:01 +00:00
frosch
10339c60c0
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
2010-08-12 06:44:45 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
4203e641f8
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
2010-07-26 13:08:48 +00:00
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
2010-07-02 13:53:05 +00:00
frosch
7de069af3b
(svn r19944) -Feature(ette): Open vehicle view when clicking on the caption of vehicle news.
2010-06-07 20:00:21 +00:00
frosch
38b8259f3b
(svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window.
2010-06-07 19:56:32 +00:00
smatz
c49436c2d1
(svn r19921) -Fix [FS#3865]: closing chatbox could cause glitches when news message was shown
2010-06-04 09:47:55 +00:00
yexo
7d5cfa5884
(svn r19105) -Fix [FS#3614]: not all news data was properly freed when starting a new game
2010-02-12 16:42:29 +00:00
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
2010-01-30 18:34:48 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
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.
2010-01-04 18:21:07 +00:00
frosch
8d8bd3d45f
(svn r18597) -Fix (r17147)[FS#3395, FS#3396]: ChangeVehicleNews() did not update the news ticker.
2009-12-21 21:14:40 +00:00
alberth
91872aca48
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
2009-12-21 16:24:29 +00:00
alberth
e0393a3de1
(svn r18492) -Doc: A few Doxygen reference fixes (NewsSubtype reported by Eddi), and a typo fix.
2009-12-13 21:12:36 +00:00
alberth
4b4c1ffc17
(svn r18349) -Fix (r18347): Older compilers want explicit assignments.
2009-11-29 21:40:51 +00:00
alberth
f2f9ef7a9f
(svn r18347) -Codechange: Compute width of labels in news settings window once.
2009-11-29 21:17:37 +00:00
rubidium
5d38d06313
(svn r18331) -Fix [FS#3334]: news items would with some chat 'bars' not be displayed fully. Fix by erikjanp.
2009-11-29 00:41:08 +00:00
rubidium
1f0da3710f
(svn r18324) -Codechange: there's no need for a default size when the window isn't resizable
2009-11-28 15:01:49 +00:00
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
2009-11-28 14:42:35 +00:00
rubidium
458c73aecb
(svn r18318) -Codechange: add an enum value for manual window placement
2009-11-28 13:54:28 +00:00
rubidium
ff32ea24fc
(svn r18311) -Codechange: no need to hardcode locations of some 'random' windows
2009-11-28 13:38:34 +00:00
rubidium
14300d309c
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
2009-11-24 18:05:55 +00:00
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
2009-11-24 17:28:29 +00:00
rubidium
2a2884646c
(svn r18257) -Fix: glitch when the news message is wider than the status bar
2009-11-23 16:23:42 +00:00
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.)
2009-11-23 13:01:12 +00:00
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
2009-11-22 18:28:14 +00:00
alberth
2b6f792513
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
2009-11-22 18:26:01 +00:00
rubidium
8204f226f1
(svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars
2009-11-22 11:24:30 +00:00
rubidium
d913282e7a
(svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays
2009-11-22 11:20:12 +00:00
rubidium
e9b6e73333
(svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances
2009-11-22 11:10:17 +00:00
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)
2009-11-19 17:57:27 +00:00
rubidium
4987d97810
(svn r18180) -Codechange: make the news history window RTL aware
2009-11-19 11:10:32 +00:00
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
2009-11-17 19:16:48 +00:00
rubidium
626de6b128
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
2009-11-16 20:34:57 +00:00
rubidium
1c5a92ae98
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
2009-11-16 17:15:42 +00:00
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
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
2009-11-02 10:15:48 +00:00
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.
2009-10-24 14:53:55 +00:00
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
2009-10-17 14:29:10 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
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.
2009-09-30 21:07:54 +00:00
alberth
116c77c342
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
2009-09-19 11:31:12 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
alberth
5fd5ae125a
(svn r17398) -Codechange: Fill normal news item window with widgets.
2009-09-02 20:59:30 +00:00
alberth
0f9da2d636
(svn r17397) -Codechange: Add new vehicle news window.
2009-09-02 20:55:55 +00:00
alberth
c0b9a6a9bc
(svn r17396) -Codechange: Add company news window.
2009-09-02 20:54:27 +00:00
alberth
c518d8c0d9
(svn r17395) -Codechange: Fill thin window with widgets.
2009-09-02 20:52:58 +00:00
alberth
96617e804c
(svn r17394) -Codechange: Add news flags for viewport settings.
2009-09-02 20:49:25 +00:00
alberth
92321eb204
(svn r17393) -Codechange: Fill small window with widgets.
2009-09-02 20:46:42 +00:00
alberth
a536a15459
(svn r17392) -Codechange: Use 'default' for reacting on click.
2009-09-02 20:44:36 +00:00
alberth
3375627552
(svn r17390) -Codechange: Switch news item windows to nested widgets.
2009-09-02 20:39:40 +00:00
alberth
417ad163c0
(svn r17387) -Codechange: Add news-item window description to NewsSubtypeData.
2009-09-02 20:21:30 +00:00
alberth
284b92f3e9
(svn r17385) -Codechange: Removed some unneeded parentheses.
2009-09-02 19:57:22 +00:00
rubidium
7aeaa4f132
(svn r17371) -Codechange: make the newgrf, news and order GUIs use the scrollbar wrappers
2009-09-02 08:18:54 +00:00
rubidium
b1d4594fa7
(svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my Oxford Dictionary of English and Merriam-Webster.
2009-09-01 12:28:46 +00:00
rubidium
aca7ba714a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
2009-08-23 19:03:09 +00:00
alberth
f74b7d4ebd
(svn r17265) -Codechange: Typo fix, small is with two l's
2009-08-22 19:06:02 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
alberth
4f1758b51a
(svn r17204) -Codechange: Move viewport initialization into the constructor of the news item window.
2009-08-16 16:06:06 +00:00
alberth
b03e758d25
(svn r17202) -Codechange: News item is already given as argument.
2009-08-16 09:20:25 +00:00
alberth
66e98469bb
(svn r17200) -Codechange: Initialize NewsWindow::duration, add some documentation strings.
2009-08-16 08:59:56 +00:00
alberth
3409385e1d
(svn r17199) -Codechange: Remove NF_VIEWPORT since it is implied by the news mode.
2009-08-16 07:31:36 +00:00
alberth
dd6fcb08b6
(svn r17188) -Codechange: Use display mode names for naming window and widget descriptions.
2009-08-15 14:39:22 +00:00
alberth
ff60a5605c
(svn r17187) -Codechange: Make switches on news display mode complete.
2009-08-15 14:27:54 +00:00
alberth
13a37b427a
(svn r17178) -Codechange (r17177): Remove now unused define.
2009-08-14 22:07:25 +00:00
alberth
200fcddc38
(svn r17177) -Codechange: Message options window uses nested widget tree.
2009-08-14 22:01:44 +00:00
alberth
3d38744b9f
(svn r17176) -Codechange: Move widget state updating out of OnPaint method of message options window.
2009-08-14 21:33:30 +00:00
alberth
fe74c526d8
(svn r17174) -Codechange: Switch to vertical alignment in the message options window.
2009-08-14 21:21:56 +00:00
alberth
c4f055cc11
(svn r17172) -Codechange: Move the _message_opt variable into the MessageOptionsWindow struct.
2009-08-14 19:02:20 +00:00
alberth
4eb155ccfb
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
2009-08-14 18:41:03 +00:00
frosch
52f9b8ffbd
(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them.
2009-08-10 20:06:39 +00:00
alberth
8d809d5f4c
(svn r17123) -Codechange (r17122): Use this for calling methods.
2009-08-08 20:39:45 +00:00
alberth
2cd3b5f44c
(svn r17122) -Codechange: Message history window uses nested widget tree.
2009-08-08 20:06:38 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
rubidium
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
2009-08-04 18:04:33 +00:00
alberth
92206f2d18
(svn r16837) -Codechange: Collect largest used index while constructing nested widget tree.
2009-07-15 22:17:08 +00:00
alberth
292647b212
(svn r16487) -Codechange [FS#2940]: Add widget numbers to news display and news history windows (based on work by erikjanp)
2009-05-31 20:18:47 +00:00
alberth
304b42d00e
(svn r16485) -Fix [FS#2938]: Move date in news window a pixel away from the right-edge (erikjanp)
2009-05-31 19:29:40 +00:00
frosch
a4557c7da4
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
2009-05-24 16:52:42 +00:00