|
|
@@ -12,7 +12,7 @@ namespace BansheeEngine
|
|
|
|
|
|
public:
|
|
|
GUIFieldBase(const PrivatelyConstruct& dummy, const GUIContent& labelContent, UINT32 labelWidth,
|
|
|
- const String& labelStyle, const GUIDimensions& layoutOptions, bool withLabel);
|
|
|
+ const String& labelStyle, const GUIDimensions& dimensions, bool withLabel);
|
|
|
|
|
|
void _updateLayoutInternal(INT32 x, INT32 y, UINT32 width, UINT32 height,
|
|
|
Rect2I clipRect, UINT8 widgetDepth, UINT16 areaDepth);
|
|
|
@@ -40,7 +40,7 @@ namespace BansheeEngine
|
|
|
class TGUIField : public GUIFieldBase
|
|
|
{
|
|
|
public:
|
|
|
- static T* create(const GUIContent& labelContent, UINT32 labelWidth, const GUIOptions& layoutOptions,
|
|
|
+ static T* create(const GUIContent& labelContent, UINT32 labelWidth, const GUIOptions& options,
|
|
|
const String& style = StringUtil::BLANK)
|
|
|
{
|
|
|
const String* curStyle = &style;
|
|
|
@@ -48,10 +48,10 @@ namespace BansheeEngine
|
|
|
curStyle = &T::getGUITypeName();
|
|
|
|
|
|
return bs_new<T>(PrivatelyConstruct(), labelContent, labelWidth, *curStyle,
|
|
|
- GUIDimensions::create(layoutOptions), true);
|
|
|
+ GUIDimensions::create(options), true);
|
|
|
}
|
|
|
|
|
|
- static T* create(const GUIContent& labelContent, const GUIOptions& layoutOptions,
|
|
|
+ static T* create(const GUIContent& labelContent, const GUIOptions& options,
|
|
|
const String& style = StringUtil::BLANK)
|
|
|
{
|
|
|
const String* curStyle = &style;
|
|
|
@@ -59,10 +59,10 @@ namespace BansheeEngine
|
|
|
curStyle = &T::getGUITypeName();
|
|
|
|
|
|
return bs_new<T>(PrivatelyConstruct(), labelContent, DEFAULT_LABEL_WIDTH, *curStyle,
|
|
|
- GUIDimensions::create(layoutOptions), true);
|
|
|
+ GUIDimensions::create(options), true);
|
|
|
}
|
|
|
|
|
|
- static T* create(const HString& labelText, UINT32 labelWidth, const GUIOptions& layoutOptions,
|
|
|
+ static T* create(const HString& labelText, UINT32 labelWidth, const GUIOptions& options,
|
|
|
const String& style = StringUtil::BLANK)
|
|
|
{
|
|
|
const String* curStyle = &style;
|
|
|
@@ -70,10 +70,10 @@ namespace BansheeEngine
|
|
|
curStyle = &T::getGUITypeName();
|
|
|
|
|
|
return bs_new<T>(PrivatelyConstruct(), GUIContent(labelText), labelWidth, *curStyle,
|
|
|
- GUIDimensions::create(layoutOptions), true);
|
|
|
+ GUIDimensions::create(options), true);
|
|
|
}
|
|
|
|
|
|
- static T* create(const HString& labelText, const GUIOptions& layoutOptions,
|
|
|
+ static T* create(const HString& labelText, const GUIOptions& options,
|
|
|
const String& style = StringUtil::BLANK)
|
|
|
{
|
|
|
const String* curStyle = &style;
|
|
|
@@ -81,17 +81,17 @@ namespace BansheeEngine
|
|
|
curStyle = &T::getGUITypeName();
|
|
|
|
|
|
return bs_new<T>(PrivatelyConstruct(), GUIContent(labelText), DEFAULT_LABEL_WIDTH, *curStyle,
|
|
|
- GUIDimensions::create(layoutOptions), true);
|
|
|
+ GUIDimensions::create(options), true);
|
|
|
}
|
|
|
|
|
|
- static T* create(const GUIOptions& layoutOptions, const String& style = StringUtil::BLANK)
|
|
|
+ static T* create(const GUIOptions& options, const String& style = StringUtil::BLANK)
|
|
|
{
|
|
|
const String* curStyle = &style;
|
|
|
if (*curStyle == StringUtil::BLANK)
|
|
|
curStyle = &T::getGUITypeName();
|
|
|
|
|
|
return bs_new<T>(PrivatelyConstruct(), GUIContent(), 0, *curStyle,
|
|
|
- GUIDimensions::create(layoutOptions), false);
|
|
|
+ GUIDimensions::create(options), false);
|
|
|
}
|
|
|
|
|
|
static T* create(const GUIContent& labelContent, UINT32 labelWidth,
|
|
|
@@ -148,8 +148,8 @@ namespace BansheeEngine
|
|
|
}
|
|
|
|
|
|
TGUIField(const PrivatelyConstruct& dummy, const GUIContent& labelContent, UINT32 labelWidth,
|
|
|
- const String& style, const GUIDimensions& layoutOptions, bool withLabel)
|
|
|
- :GUIFieldBase(dummy, labelContent, labelWidth, style, layoutOptions, withLabel)
|
|
|
+ const String& style, const GUIDimensions& dimensions, bool withLabel)
|
|
|
+ :GUIFieldBase(dummy, labelContent, labelWidth, style, dimensions, withLabel)
|
|
|
{ }
|
|
|
};
|
|
|
}
|