mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
scrollable listboxes
This commit is contained in:
Vendored
+1
-1
Submodule external/gameBase updated: 88605e8eaa...e71e5ce63e
@@ -107,4 +107,13 @@ namespace battleship{
|
||||
}
|
||||
|
||||
void GuiAppState::onAnalog(int bind, float strength) {}
|
||||
|
||||
void GuiAppState::onRawMouseWheelScroll(bool up){
|
||||
Listbox *openListbox = getOpenListbox();
|
||||
|
||||
if(!openListbox) return;
|
||||
|
||||
if(up) openListbox->scrollUp();
|
||||
else openListbox->scrollDown();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace battleship{
|
||||
virtual void onRawKeyPress(int);
|
||||
virtual void onRawCharPress(vb01::u32);
|
||||
virtual void onRawMousePress(int);
|
||||
virtual void onRawMouseWheelScroll(bool);
|
||||
vb01Gui::Textbox* getOpenTextbox();
|
||||
vb01Gui::Listbox* getOpenListbox();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user