mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Use our GUIButton in our GUIScrollBar
Note that GUIScrollBar needs an ISimpleTextureSource now due to button styling.
This commit is contained in:
parent
9d62abbe46
commit
91c0439922
8 changed files with 43 additions and 25 deletions
|
@ -86,7 +86,7 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
|||
core::rect<s32> rect(0, 0, 300 * s, 20 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 150 * s, size.Y / 2);
|
||||
auto e = make_irr<GUIScrollBar>(Environment, this,
|
||||
ID_soundSlider, rect, true, false);
|
||||
ID_soundSlider, rect, true, false, m_tsrc);
|
||||
e->setMax(100);
|
||||
e->setPos(volume);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue