diff options
author | frosch <frosch@openttd.org> | 2010-08-12 16:44:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-12 16:44:51 +0000 |
commit | d496ec65b920c207310f1cdcbacfe99e692516b5 (patch) | |
tree | 1b9605426b39c4599f6ff9a9f9840bfd9319bc00 /src/news_gui.cpp | |
parent | b8c401f64442dad1102af4966a98f29a3dd5014a (diff) | |
download | openttd-d496ec65b920c207310f1cdcbacfe99e692516b5.tar.xz |
(svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 27aeb7d71..19537b177 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -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); |