mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Changed EGame to an enum class. Created NGameList and NPropertyMap to change how templates are managed/saved/loaded. Added support for property map keeping track of ID/type pairs.
This commit is contained in:
@@ -22,6 +22,16 @@ QValidator::State CPropertyNameValidator::validate(QString& rInput, int&) const
|
||||
Hash.Hash( mpProperty->HashableTypeName() );
|
||||
u32 PropertyID = Hash.Digest();
|
||||
|
||||
if (PropertyID != mpProperty->ID())
|
||||
{
|
||||
if (mpProperty->Type() == EPropertyType::Int)
|
||||
{
|
||||
CCRC32 Hash2;
|
||||
Hash2.Hash( rInput.toStdString().c_str() );
|
||||
Hash2.Hash( "choice" );
|
||||
PropertyID = Hash2.Digest();
|
||||
}
|
||||
}
|
||||
return ( PropertyID == mpProperty->ID() ? QValidator::Acceptable : QValidator::Invalid );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user