summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
AgeCommit message (Collapse)Author
2021-07-01Codechange: use a contructor for NewsItem to set the valuesRubidium
And use std::unique_ptr to manage the memory of the allocated data
2021-07-01Codechange: create a type for the "free_data" of NewsItems and (de)allocate ↵rubidium42
it with new and delete
2021-06-17Cleanup: simplify some boolean expressionsRubidium
2021-05-31Codechange: use AsIntSetting()->Read() wrapper if possible (#9324)Patric Stout
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-27Codechange: just pass the SettingDesc to SetSettingValue and remove ↵rubidium42
distinction between (non)company
2021-05-12Fix #9063: Caption of news window incorrectly aligned. (#9252)PeterN
2021-05-08Fix: Apply unscaled padding to Viewport inside WWT_INSET. (#9219)PeterN
Since pixel dimensions in SetPadding() are scaled by GUI size, padding for inset viewports was excessive. Instead, automatically apply padding for WWT_INSET at widget level. This applies to all widgets inside a WWT_INSET, which in all instances is a NWID_VIEWPORT.
2021-04-22Codechange: Add widget text colour override property.Peter Nelson
2021-04-22Codechange: Add internal widget alignment property, along with widget part.Peter Nelson
2021-04-21Cleanup: Remove unnecessary parameter of GetScrolledRowFromWidget()Peter Nelson
Line height defaults to the resize height of the relevant widget, which is set in all cases. Therefore it is not necessary to specify this value every time. Additionally fixes scrolled padding for the framerate window.
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-02-18Fix: Unnecessary status bar redraws when there is no news to show (#8691)Jonathan G Rennison
InvalidateWindowData with mode SBI_NEWS_DELETED was called on the status bar when checking for a new item of news to be shown in the ticker, even if there is no news queued and no change occurs.
2021-02-13Fix #8620: Scale spacing between date & news in history window according to ↵Charles Pigott
font scaling
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-09-24Feature: Make news and errors close hotkeys configurabledP
2020-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2020-06-27Fix #8129: Crash if a news message expires while viewing the endgame screenCharles Pigott
2020-06-09Cleanup: Give `SetDirtyBlocks` a more descriptive name.TechGeekNZ
2020-03-06Change: Keep News Window usable by only storing the 1024 latest news messagesCharles Pigott
2019-12-23Feature: Add a button to the vehicle advisory news window to open the group ↵stormcone
window.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-09-14Fix #7737, afbf6a5: missing returnJohannes E. Krause
2019-08-03Feature: Allow showing Newspaper and Ticker messages in parallelJohannes E. Krause
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