|
OpenTTD Source
14.0-beta1
|
Go to the documentation of this file.
17 #define SETTING_BUTTON_WIDTH ((int)NWidgetScrollbar::GetHorizontalDimension().width * 2)
19 #define SETTING_BUTTON_HEIGHT ((int)NWidgetScrollbar::GetHorizontalDimension().height)
21 void DrawArrowButtons(
int x,
int y, Colours button_colour,
byte state,
bool clickable_left,
bool clickable_right);
22 void DrawDropDownButton(
int x,
int y, Colours button_colour,
bool state,
bool clickable);
28 int n = T::GetNumSets();
29 *selected_index = T::GetIndexOfUsedSet();
31 for (
int i = 0; i < n; i++) {
32 list.push_back(std::make_unique<DropDownListStringItem>(T::GetSet(i)->GetListLabel(), i,
false));
std::vector< std::unique_ptr< const DropDownListItem > > DropDownList
A drop down list is a collection of drop down list items.
void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right)
Draw [<][>] boxes.
void DrawBoolButton(int x, int y, bool state, bool clickable)
Draw a toggle button.
void ChangeMusicSet(int index)
Change the configured music set and reset playback.
void DrawDropDownButton(int x, int y, Colours button_colour, bool state, bool clickable)
Draw a dropdown button.