(svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked.

This commit is contained in:
frosch
2010-08-12 16:44:51 +00:00
parent b8c401f644
commit d496ec65b9
11 changed files with 55 additions and 57 deletions

View File

@@ -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);