mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add focused styling to buttons (#13414)
This commit is contained in:
parent
2a1bc82887
commit
9d1ae80e89
7 changed files with 31 additions and 8 deletions
|
@ -123,6 +123,9 @@ public:
|
|||
// PATCH
|
||||
//! Returns if this element (or one of its direct children) is hovered
|
||||
bool isHovered() const;
|
||||
|
||||
//! Returns if this element (or one of its direct children) is focused
|
||||
bool isFocused() const;
|
||||
// END PATCH
|
||||
|
||||
//! Sets if the button should use the skin to draw its border
|
||||
|
@ -268,6 +271,7 @@ private:
|
|||
video::SColor Colors[4];
|
||||
// PATCH
|
||||
bool WasHovered = false;
|
||||
bool WasFocused = false;
|
||||
ISimpleTextureSource *TSrc;
|
||||
|
||||
gui::IGUIStaticText *StaticText;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue