Removed legacy Editor config spec
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include "EditorDefs.h"
|
||||
|
||||
#include "Variable.h"
|
||||
#include "UIEnumsDatabase.h"
|
||||
|
||||
#include "UsedResources.h" // for CUsedResources
|
||||
|
||||
@@ -496,49 +495,3 @@ void CVarObject::Serialize(XmlNodeRef node, bool load)
|
||||
m_vars->Serialize(node, load);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CVarGlobalEnumList::CVarGlobalEnumList(CUIEnumsDatabase_SEnum* pEnum)
|
||||
: m_pEnum(pEnum)
|
||||
{
|
||||
}
|
||||
|
||||
CVarGlobalEnumList::CVarGlobalEnumList(const QString& enumName)
|
||||
{
|
||||
m_pEnum = GetIEditor()->GetUIEnumsDatabase()->FindEnum(enumName);
|
||||
}
|
||||
|
||||
//! Get the name of specified value in enumeration.
|
||||
QString CVarGlobalEnumList::GetItemName(uint index)
|
||||
{
|
||||
if (!m_pEnum || index >= static_cast<uint>(m_pEnum->strings.size()))
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
return m_pEnum->strings[index];
|
||||
}
|
||||
|
||||
QString CVarGlobalEnumList::NameToValue(const QString& name)
|
||||
{
|
||||
if (m_pEnum)
|
||||
{
|
||||
return m_pEnum->NameToValue(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
QString CVarGlobalEnumList::ValueToName(const QString& value)
|
||||
{
|
||||
if (m_pEnum)
|
||||
{
|
||||
return m_pEnum->ValueToName(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ struct IVariable
|
||||
DT_SEQUENCE, // Movie Sequence (DEPRECATED, use DT_SEQUENCE_ID, instead.)
|
||||
DT_MISSIONOBJ, // Mission Objective
|
||||
DT_USERITEMCB, // Use a callback GetItemsCallback in user data of variable
|
||||
DT_UIENUM, // Edit as enum, uses CUIEnumsDatabase to lookup the enum to value pairs and combobox in GUI.
|
||||
DT_UIENUM, // DEPRECATED
|
||||
DT_SEQUENCE_ID, // Movie Sequence
|
||||
DT_LIGHT_ANIMATION, // Light Animation Node in the global Light Animation Set
|
||||
DT_PARTICLE_EFFECT,
|
||||
@@ -1451,32 +1451,6 @@ protected:
|
||||
friend class _smart_ptr<CVarEnumListBase<T> >;
|
||||
};
|
||||
|
||||
struct CUIEnumsDatabase_SEnum;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
AZ_PUSH_DISABLE_DLL_EXPORT_BASECLASS_WARNING
|
||||
class EDITOR_CORE_API CVarGlobalEnumList
|
||||
: public CVarEnumListBase<QString>
|
||||
{
|
||||
AZ_POP_DISABLE_DLL_EXPORT_BASECLASS_WARNING
|
||||
public:
|
||||
CVarGlobalEnumList(CUIEnumsDatabase_SEnum* pEnum);
|
||||
CVarGlobalEnumList(const QString& enumName);
|
||||
|
||||
//! Get the name of specified value in enumeration.
|
||||
virtual QString GetItemName(uint index);
|
||||
|
||||
virtual QString NameToValue(const QString& name);
|
||||
virtual QString ValueToName(const QString& value);
|
||||
|
||||
//! Don't add anything to a global enum database
|
||||
virtual void AddItem([[maybe_unused]] const QString& name, [[maybe_unused]] const QString& value) {}
|
||||
|
||||
private:
|
||||
CUIEnumsDatabase_SEnum* m_pEnum;
|
||||
};
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//! Selection list shown in combo box, for enumerated variable.
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "VariablePropertyType.h"
|
||||
|
||||
#include "Variable.h"
|
||||
#include "UIEnumsDatabase.h"
|
||||
#include "IEditor.h"
|
||||
|
||||
namespace Prop
|
||||
@@ -72,7 +71,6 @@ namespace Prop
|
||||
, m_bHardMin(false)
|
||||
, m_bHardMax(false)
|
||||
, m_valueMultiplier(1)
|
||||
, m_pEnumDBItem(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -86,7 +84,6 @@ namespace Prop
|
||||
, m_bHardMin(false)
|
||||
, m_bHardMax(false)
|
||||
, m_valueMultiplier(1)
|
||||
, m_pEnumDBItem(nullptr)
|
||||
{
|
||||
if (!pVar)
|
||||
{
|
||||
@@ -160,11 +157,6 @@ namespace Prop
|
||||
m_rangeMin = max(-360.0f, m_rangeMin);
|
||||
m_rangeMax = min(360.0f, m_rangeMax);
|
||||
}
|
||||
else if (type == IVariable::DT_UIENUM)
|
||||
{
|
||||
m_pEnumDBItem = GetIEditor()->GetUIEnumsDatabase()->FindEnum(m_name);
|
||||
}
|
||||
|
||||
|
||||
const bool useExplicitStep = (pVar->GetFlags() & IVariable::UI_EXPLICIT_STEP);
|
||||
if (!useExplicitStep)
|
||||
|
||||
@@ -73,7 +73,6 @@ namespace Prop
|
||||
bool m_bHardMax;
|
||||
QString m_name;
|
||||
float m_valueMultiplier;
|
||||
CUIEnumsDatabase_SEnum* m_pEnumDBItem;
|
||||
};
|
||||
|
||||
EDITOR_CORE_API const char* GetName(int dataType);
|
||||
|
||||
Reference in New Issue
Block a user