mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
GUIButton: Use default member initializers
This commit is contained in:
parent
7f9de5db0b
commit
2903f692ba
2 changed files with 26 additions and 35 deletions
|
@ -27,15 +27,10 @@ using namespace gui;
|
|||
|
||||
//! constructor
|
||||
GUIButton::GUIButton(IGUIEnvironment* environment, IGUIElement* parent,
|
||||
s32 id, core::rect<s32> rectangle, ISimpleTextureSource *tsrc,
|
||||
bool noclip)
|
||||
: IGUIButton(environment, parent, id, rectangle),
|
||||
SpriteBank(0), OverrideFont(0),
|
||||
OverrideColorEnabled(false), OverrideColor(video::SColor(101,255,255,255)),
|
||||
ClickTime(0), HoverTime(0), FocusTime(0),
|
||||
ClickShiftState(false), ClickControlState(false),
|
||||
IsPushButton(false), Pressed(false),
|
||||
UseAlphaChannel(false), DrawBorder(true), ScaleImage(false), TSrc(tsrc)
|
||||
s32 id, core::rect<s32> rectangle, ISimpleTextureSource *tsrc,
|
||||
bool noclip) :
|
||||
IGUIButton(environment, parent, id, rectangle),
|
||||
TSrc(tsrc)
|
||||
{
|
||||
setNotClipped(noclip);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue