Age | Commit message (Collapse) | Author |
|
(#9133)
This happens if the bounding dimensions are changed so that each item is the same size, as happens on the railtype/roadtype dropdown lists, as the vertical offset was calculated before this dimension is changed.
|
|
As OpenTTD grew, we found other ways to do this, and we are no
longer in need for a hack like this.
|
|
|
|
|
|
|
|
AutoDeleteSmallVector obsolete.
DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use
of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate
copy-free code for most situations.
|
|
|
|
Auto[Free|Delete]SmallVector
|
|
|
|
|
|
|
|
|
|
|
|
dropdowns
|
|
independent of dropdown widgets.
|
|
as comparator function in DropDownList::sort().
|
|
DropDownListStringItem.
|
|
if a header require a header make it include that header
|
|
|
|
|
|
left/right instead of the x and width to make drawing text at offsets easier.
|
|
|
|
so that a minimum width can be specified.
|
|
(if requested) when the mouse button is released.
|
|
lists to the widest list item.
|
|
Move empty item drawing to base ListItem Draw() function.
Remove String() from base class.
Pass correct width to Draw().
|
|
something more than whitespace as description of files that don't have a description.
|
|
items.
|
|
|
|
some future changes.
|
|
|
|
warnings... c++ is fun
|
|
|
|
Lists are now dynamically generated, and can include parameters, or be extended however needed.
|