mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -1010,7 +1010,7 @@ GUIHyperText::GUIHyperText(const wchar_t *text, IGUIEnvironment *environment,
|
|||
RelativeRect.getWidth() - m_scrollbar_width, 0,
|
||||
RelativeRect.getWidth(), RelativeRect.getHeight());
|
||||
|
||||
m_vscrollbar = new GUIScrollBar(Environment, this, -1, rect, false, true);
|
||||
m_vscrollbar = new GUIScrollBar(Environment, this, -1, rect, false, true, tsrc);
|
||||
m_vscrollbar->setVisible(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue