Age | Commit message (Collapse) | Author |
|
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
|
|
|
|
templated command traits.
This is using a non-intrusive type-traits like templated system, which
allows compile-time validation that the command table and the command
enum match up.
|
|
|
|
And use std::unique_ptr to manage the memory of the allocated data
|
|
it with new and delete
|
|
|
|
|
|
|
|
|
|
|
|
distinction between (non)company
|
|
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
font scaling
|
|
|
|
|
|
|
|
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
|
|
|
|
|
|
|
|
window.
|
|
|
|
|
|
|
|
|
|
news messages
|
|
|
|
|
|
|
|
|
|
timers to work with milliseconds instead of ticks.
|
|
|
|
|
|
to fit its text.
|
|
actually a text colour remap, and draw closebox as a sprite, using said bit. Change news popup to use closebox widget for its closebox.
|
|
|
|
the return is not NULL)
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
just UCS-2 to the window key press handlers.
|
|
|
|
window to its default size.
|
|
|
|
after construction.
|