diff options
Diffstat (limited to 'src/client/trademenu.cc')
-rw-r--r-- | src/client/trademenu.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/client/trademenu.cc b/src/client/trademenu.cc index f4a5653..20117c7 100644 --- a/src/client/trademenu.cc +++ b/src/client/trademenu.cc @@ -26,7 +26,7 @@ TradeMenu::TradeMenu(ui::Widget *parent, const char * label) : ui::Window(parent else set_label("trademenu"); - menu_tradewindow = new ui::Widget(this); + menu_tradewindow = new ui::Window(this); menu_tradewindow->set_label("tradewindow"); menu_tradewindow->set_border(true); menu_tradewindow->set_background(true); @@ -37,8 +37,8 @@ TradeMenu::TradeMenu(ui::Widget *parent, const char * label) : ui::Window(parent menu_modelview->set_border(false); menu_slider = new ui::Slider(menu_tradewindow); - menu_slider->set_background(false); - menu_slider->set_border(true); + //menu_slider->set_background(false); + //menu_slider->set_border(true); menu_msgtext = new ui::Label(menu_tradewindow); menu_msgtext->set_label("label"); @@ -56,8 +56,8 @@ TradeMenu::TradeMenu(ui::Widget *parent, const char * label) : ui::Window(parent menu_inventorylistview = new InventoryListView(menu_tradewindow); menu_inventorylistview->set_label("inventorylistview"); - menu_inventorylistview->set_background(false); - menu_inventorylistview->set_border(true); + //menu_inventorylistview->set_background(false); + //menu_inventorylistview->set_border(true); menu_inventorytext = new ui::PlainText(menu_tradewindow); menu_inventorytext->set_label("inventorytext"); @@ -72,8 +72,8 @@ TradeMenu::TradeMenu(ui::Widget *parent, const char * label) : ui::Window(parent menu_traderlistview = new InventoryListView(menu_tradewindow); menu_traderlistview->set_label("traderlistview"); - menu_traderlistview->set_background(false); - menu_traderlistview->set_border(true); + //menu_traderlistview->set_background(false); + //menu_traderlistview->set_border(true); menu_traderlistview->set_showempty(true); menu_tradertext = new ui::PlainText(menu_tradewindow); @@ -341,7 +341,7 @@ bool TradeMenu::on_emit(Widget *sender, const Event event, void *data) return true; } - return ui::Widget::on_emit(sender, event, data); + return ui::Window::on_emit(sender, event, data); } void TradeMenu::draw() @@ -369,7 +369,7 @@ void TradeMenu::draw() } menu_inventorytext->set_text(str.str()); - Widget::draw(); + Window::draw(); } bool TradeMenu::on_keypress(const int key, const unsigned int modifier) @@ -385,7 +385,7 @@ bool TradeMenu::on_keypress(const int key, const unsigned int modifier) break; } - return Widget::on_keypress(key, modifier); + return Window::on_keypress(key, modifier); } } // namespace client |