mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Use our GUIButton in our GUIScrollBar
Note that GUIScrollBar needs an ISimpleTextureSource now due to button styling.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user