|
@@ -75,9 +75,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeEnum GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeEnum : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -86,19 +83,12 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeEnum);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
virtual void setData( StringTableEntry data );
|
|
|
virtual StringTableEntry getData();
|
|
|
virtual void updateValue( StringTableEntry newValue );
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// GuiInspectorTypeCheckBox Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeCheckBox : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -107,15 +97,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeCheckBox);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields (Both are REQUIRED)
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// GuiInspectorTypeGuiProfile Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeGuiProfile : public GuiInspectorTypeEnum
|
|
|
{
|
|
|
private:
|
|
@@ -124,15 +108,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeGuiProfile);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields (Both are REQUIRED)
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// GuiInspectorTypeGuiBorderProfile Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeGuiBorderProfile : public GuiInspectorTypeEnum
|
|
|
{
|
|
|
private:
|
|
@@ -141,15 +119,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeGuiBorderProfile);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields (Both are REQUIRED)
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// GuiInspectorTypeGuiCursor Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeGuiCursor : public GuiInspectorTypeEnum
|
|
|
{
|
|
|
private:
|
|
@@ -158,16 +130,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeGuiCursor);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields (Both are REQUIRED)
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeFileName GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeFileName : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -178,17 +143,10 @@ public:
|
|
|
|
|
|
SimObjectPtr<GuiButtonCtrl> mBrowseButton;
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
virtual void resize(const Point2I &newPosition, const Point2I &newExtent);
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeColor GuiInspectorField Class (Base for ColorI/ColorF)
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeColor : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -206,16 +164,10 @@ protected:
|
|
|
public:
|
|
|
StringTableEntry mColorFunction;
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
virtual void finishControlConstruction() = 0;
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeColorI GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeColorI : public GuiInspectorTypeColor
|
|
|
{
|
|
|
private:
|
|
@@ -229,9 +181,6 @@ public:
|
|
|
void finishControlConstruction();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeColorF GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeColorF : public GuiInspectorTypeColor
|
|
|
{
|
|
|
private:
|
|
@@ -245,9 +194,19 @@ public:
|
|
|
void finishControlConstruction();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeSimObjectPtr GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
+class GuiInspectorTypeFluidColorI : public GuiInspectorTypeColor
|
|
|
+{
|
|
|
+private:
|
|
|
+ typedef GuiInspectorTypeColor Parent;
|
|
|
+public:
|
|
|
+ GuiInspectorTypeFluidColorI();
|
|
|
+
|
|
|
+ DECLARE_CONOBJECT(GuiInspectorTypeFluidColorI);
|
|
|
+ static void consoleInit();
|
|
|
+ void updateValue(StringTableEntry newValue);
|
|
|
+ void finishControlConstruction();
|
|
|
+};
|
|
|
+
|
|
|
class GuiInspectorTypeSimObjectPtr : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -256,16 +215,10 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeSimObjectPtr);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
virtual StringTableEntry getData();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeS32 GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeS32 : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -274,16 +227,10 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeS32);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
virtual const char* getData();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// DualValue GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeDualValue : public GuiInspectorField
|
|
|
{
|
|
|
protected:
|
|
@@ -295,9 +242,6 @@ public:
|
|
|
virtual void updateValue(StringTableEntry newValue);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypePoint2I GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypePoint2I : public GuiInspectorTypeDualValue
|
|
|
{
|
|
|
private:
|
|
@@ -306,15 +250,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypePoint2I);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypePoint2F GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypePoint2F : public GuiInspectorTypeDualValue
|
|
|
{
|
|
|
private:
|
|
@@ -323,15 +261,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypePoint2F);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeVector2 GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeVector2 : public GuiInspectorTypeDualValue
|
|
|
{
|
|
|
private:
|
|
@@ -340,15 +272,9 @@ public:
|
|
|
DECLARE_CONOBJECT(GuiInspectorTypeVector2);
|
|
|
static void consoleInit();
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeAsset GuiInspectorField Class Base for Assets
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeAsset : public GuiInspectorField
|
|
|
{
|
|
|
private:
|
|
@@ -359,15 +285,10 @@ public:
|
|
|
StringTableEntry mAssetType;
|
|
|
|
|
|
SimObjectPtr<GuiButtonCtrl> mBrowseButton;
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
- // Override able methods for custom edit fields
|
|
|
- //////////////////////////////////////////////////////////////////////////
|
|
|
+
|
|
|
virtual GuiControl* constructEditControl(S32 width);
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeImageAssetPtr GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeImageAssetPtr : public GuiInspectorTypeAsset
|
|
|
{
|
|
|
private:
|
|
@@ -379,9 +300,6 @@ public:
|
|
|
static void consoleInit();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeAnimationAssetPtr GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeAnimationAssetPtr : public GuiInspectorTypeAsset
|
|
|
{
|
|
|
private:
|
|
@@ -393,9 +311,6 @@ public:
|
|
|
static void consoleInit();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeAudioAssetPtr GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeAudioAssetPtr : public GuiInspectorTypeAsset
|
|
|
{
|
|
|
private:
|
|
@@ -407,9 +322,6 @@ public:
|
|
|
static void consoleInit();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeFontAssetPtr GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeFontAssetPtr : public GuiInspectorTypeAsset
|
|
|
{
|
|
|
private:
|
|
@@ -421,9 +333,6 @@ public:
|
|
|
static void consoleInit();
|
|
|
};
|
|
|
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
-// TypeParticleAssetPtr GuiInspectorField Class
|
|
|
-//////////////////////////////////////////////////////////////////////////
|
|
|
class GuiInspectorTypeParticleAssetPtr : public GuiInspectorTypeAsset
|
|
|
{
|
|
|
private:
|