(svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked.
This commit is contained in:
@@ -1242,7 +1242,7 @@ static NWidgetBase *MakeButtonsColumn(int *biggest_index)
|
||||
for (int i = 0; i < NT_END; i++) {
|
||||
NWidgetHorizontal *hor = new NWidgetHorizontal;
|
||||
/* [<] button. */
|
||||
NWidgetLeaf *leaf = new NWidgetLeaf(NWID_BUTTON_ARROW, COLOUR_YELLOW, widnum, AWV_DECREASE, STR_TOOLTIP_HSCROLL_BAR_SCROLLS_LIST);
|
||||
NWidgetLeaf *leaf = new NWidgetLeaf(WWT_PUSHARROWBTN, COLOUR_YELLOW, widnum, AWV_DECREASE, STR_TOOLTIP_HSCROLL_BAR_SCROLLS_LIST);
|
||||
leaf->SetFill(1, 1);
|
||||
hor->Add(leaf);
|
||||
/* Label. */
|
||||
@@ -1250,7 +1250,7 @@ static NWidgetBase *MakeButtonsColumn(int *biggest_index)
|
||||
leaf->SetFill(1, 1);
|
||||
hor->Add(leaf);
|
||||
/* [>] button. */
|
||||
leaf = new NWidgetLeaf(NWID_BUTTON_ARROW, COLOUR_YELLOW, widnum + 2, AWV_INCREASE, STR_TOOLTIP_HSCROLL_BAR_SCROLLS_LIST);
|
||||
leaf = new NWidgetLeaf(WWT_PUSHARROWBTN, COLOUR_YELLOW, widnum + 2, AWV_INCREASE, STR_TOOLTIP_HSCROLL_BAR_SCROLLS_LIST);
|
||||
leaf->SetFill(1, 1);
|
||||
hor->Add(leaf);
|
||||
vert_buttons->Add(hor);
|
||||
|
Reference in New Issue
Block a user