Age | Commit message (Collapse) | Author |
|
we had
While at it, replace OTTD_ASSERT with WITH_ASSERT, as this
is always set if assert() is valid. No matter if NDEBUG is set
or not.
|
|
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.
|
|
Similar code is already repeated in other locations.
|
|
|
|
If a viewport sign straddles the top of a viewport, a crash will occur if the viewport height is zero. This is resolved by simply not attempting to draw the viewport in this situation, consistent with other widgets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
|
|
|
|
|
|
|
|
|
|
|
|
OnClick() event if widget is not a scrollbar.
This allows any widget to support mouse capture.
|
|
|
|
|
|
being inclusive)
|
|
|
|
when drawing. (adf88)
|
|
conversions in initializer lists.
|
|
a file no its own. (Cif)
|
|
|
|
autoreplace GUI had incorrect hitbox when using GUI zoom. (_dp_)
|
|
oil rig while the buoy/oil rig gets its final removal (i.e. the sign gets removed)
|
|
make it always be uint32
|
|
actually a text colour remap, and draw closebox as a sprite, using said bit. Change news popup to use closebox widget for its closebox.
|
|
|
|
be changed). Also ensure scrollbar is long enough to at least contain its buttons.
|
|
buttons with non-static width.
|
|
widget. Draw vertically centred image in dropdown button.
|
|
scrollbars, with sprites instead of text.
|
|
minimal size, instead only increase it.
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
like all the other cached icon sizes (based on patch by MJP)
|
|
|
|
buttons is at least 1
|