summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
AgeCommit message (Collapse)Author
2019-04-29Fix #7255: Prevent crashlog corruption by only printing the 32 most recent ↵Charles Pigott
news messages
2019-04-24Fix: Manager name in company news was being clippedNiels Martin Hansen
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-01-11Change: Use GUITimer class instead of bare int/uints.Peter Nelson
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-04-13Add: List recent news messages in crashlog outputCharles Pigott
2017-03-31(svn r27838) -Fix: Small news window's fake caption (r19943) was not sized ↵peter1138
to fit its text.
2014-10-05(svn r26965) -Codechange: Add palette bit to indicate that palette is ↵peter1138
actually a text colour remap, and draw closebox as a sprite, using said bit. Change news popup to use closebox widget for its closebox.
2014-10-04(svn r26953) -Codechange: GUI-scale for company manager face on news popup.peter1138
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-08-05(svn r25668) -Codechange: Pass proper Unicode UCS-4 characters instead of ↵michi_cc
just UCS-2 to the window key press handlers.
2013-06-30(svn r25533) -Codechange: Use SetCapacityFromWidget more often.frosch
2013-05-26(svn r25294) -Feature: Add another button to window title bars to resize the ↵frosch
window to its default size.
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-03-17(svn r25093) -Fix [FS#5486]: Clicking the statusbar crashed, when news were ↵frosch
pending but no news were shown yet. (3298)
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-12-23(svn r24845) -Add: News ticker sound setting to adv. settings window.frosch
2012-12-23(svn r24843) -Codechange: Move news display options into the general ↵frosch
settings framework. (based on patch by eagle_rainbow)
2012-12-23(svn r24842) -Remove: News settings window.frosch
2012-12-08(svn r24802) -Fix [FS#4224]: When displaying the previous news message, ↵frosch
don't consider news which are turned off.
2012-11-11(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.frosch
2012-05-26(svn r24285) -Codechange: Add a more explcit NewsFlag to indicate that the ↵frosch
first string parameter is a vehicle ID.
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-05-26(svn r24281) -Cleanup: Merge all company news subtypes into a single one; ↵frosch
they all behave the same.
2012-05-26(svn r24280) -Cleanup: Remove uselessly duplicated code to set string ↵frosch
parameters in company news.
2012-02-11(svn r23924) -Fix [FS#5054]: [NoGo] "Some" news messages would cause an ↵rubidium
assertion to be triggered due to a missing proper location for the viewport of the news message, so only allow building when valid data for the viewport is provided or no viewport is used
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-20(svn r23643) -Fix [FS#4896]: dates cut off in the message historyrubidium
2011-12-19(svn r23627) -Add: ScriptNews::Create, to create custom news messages ↵truebrain
(GameScript only)
2011-12-19(svn r23601) -Fix: fix the conflict in window numbertruebrain
2011-12-16(svn r23552) -Codechange: unify naming of the news widgetstruebrain
2011-12-15(svn r23528) -Codechange: move widget enums to widgets/NNN_type.htruebrain
2011-12-15(svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, ↵truebrain
with only values known in WindowFlags (and move out 2 timers to their own variable) -Codechange: rename Window::flags4 to Window::flags -Codechange: move some non-inline functions from .hpp to .cpp
2011-12-13(svn r23509) -Fix [FS#4884]: Drawing of newspaper headlines used different ↵frosch
padding than the initial sizing of the window.
2011-11-01(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to ↵frosch
draw different sprites on the map and in various GUIs.
2011-09-05(svn r22897) -Change: More suitable default news settings instead of ↵frosch
everything on 'full'.
2011-05-06(svn r22429) -Add: some constants for specific palette colours used in the GUI.frosch
2011-05-04(svn r22421) -Fix: Replace various references to Windows palette greyscale ↵frosch
indices with the DOS palette indices.
2011-05-02(svn r22410) -Document: some more bits ;)rubidium
2011-04-29(svn r22383) -Codechange: Rename PALETTE_TO_STRUCT_GREY to PALETTE_NEWSPAPER ↵frosch
as it does not belong to the other PALETTE_TO_STRUCT_xxx recolourings.
2011-03-13(svn r22241) -Codechange: Add additional to-be-used parameter to ↵frosch
OnInvalidateData().
2011-02-05(svn r21987) -Fix: Make news items, engine previews and AI preview events ↵frosch
deal with no longer existing Engine items after resetting the pool.
2011-01-22(svn r21886) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updated [n].
2010-12-10(svn r21458) -Fix [FS#4180]: possible crash when news item gets removed at ↵rubidium
just the wrong moment
2010-11-26(svn r21331) -Codechange: Make drawing the widgets default behaviour in ↵alberth
OnPaint().