Template updates + small fixes

This commit is contained in:
parax0 2016-01-25 23:12:22 -07:00
parent 75091f718c
commit c91c275af7
23 changed files with 108 additions and 24 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -285,7 +285,8 @@ QVariant CPropertyModel::data(const QModelIndex& rkIndex, int Role) const
if (!(rkIndex.internalId() & 0x1)) if (!(rkIndex.internalId() & 0x1))
{ {
IProperty *pProp = PropertyForIndex(rkIndex, false); IProperty *pProp = PropertyForIndex(rkIndex, false);
QString Text = QString("<b>%1</b> <i>(%2)</i>").arg(TO_QSTRING(pProp->Name())).arg(TO_QSTRING(PropEnumToPropString(pProp->Type()))); QString DisplayText = data(rkIndex, Qt::DisplayRole).toString();
QString Text = QString("<b>%1</b> <i>(%2)</i>").arg(DisplayText).arg(TO_QSTRING(PropEnumToPropString(pProp->Type())));
TString Desc = pProp->Template()->Description(); TString Desc = pProp->Template()->Description();
if (!Desc.IsEmpty()) Text += "<br/>" + TO_QSTRING(Desc); if (!Desc.IsEmpty()) Text += "<br/>" + TO_QSTRING(Desc);
return Text; return Text;

View File

@ -86,7 +86,10 @@ QColor WColorPicker::getColor()
void WColorPicker::setColor(QColor Color) void WColorPicker::setColor(QColor Color)
{ {
if (mColor != Color)
{
mColor = Color; mColor = Color;
emit colorChanged(mColor); emit colorChanged(mColor);
update(); update();
}
} }

View File

@ -53,7 +53,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/Generator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -5,7 +5,23 @@
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/> <struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
<array ID="0xEF5C94E9"> <array ID="0xEF5C94E9">
<default>0</default> <default>0</default>
<properties/> <element_name>Connection</element_name>
<properties>
<property ID="0x00" name="Connection Index" type="short" />
<array ID="0x01" name="Activation Times">
<element_name>Activation Time</element_name>
<properties>
<property ID="0x00" name="Time" type="float" />
<property ID="0x01" name="Unknown 1" type="long">
<description>Always 0</description>
</property>
<property ID="0x02" name="Unknown 2" type="long"/>
<property ID="0x03" name="Unknown 3" type="long">
<description>Always 0</description>
</property>
</properties>
</array>
</properties>
</array> </array>
<property ID="0xB8BD2175" type="float"> <property ID="0xB8BD2175" type="float">
<default>0.0</default> <default>0.0</default>

View File

@ -24,7 +24,9 @@
<property name="Position" ID="0x01"/> <property name="Position" ID="0x01"/>
<property name="Rotation" ID="0x02"/> <property name="Rotation" ID="0x02"/>
</properties> </properties>
<assets/> <assets>
<model source="file">script/common/Camera.cmdl</model>
</assets>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>disabled</scale_type> <scale_type>disabled</scale_type>
</editor> </editor>

View File

@ -15,8 +15,10 @@
<properties> <properties>
<property name="InstanceName" ID="0x00"/> <property name="InstanceName" ID="0x00"/>
</properties> </properties>
<assets/> <assets>
<rotation_type>disabled</rotation_type> <billboard source="file">script/common/Generator.txtr</billboard>
<scale_type>disabled</scale_type> </assets>
<rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type>
</editor> </editor>
</ScriptTemplate> </ScriptTemplate>

View File

@ -12,7 +12,9 @@
<property name="InstanceName" ID="0x00"/> <property name="InstanceName" ID="0x00"/>
<property name="Active" ID="0x02"/> <property name="Active" ID="0x02"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/PickupGenerator.txtr</billboard>
</assets>
<rotation_type>disabled</rotation_type> <rotation_type>disabled</rotation_type>
<scale_type>disabled</scale_type> <scale_type>disabled</scale_type>
</editor> </editor>

View File

@ -36,7 +36,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<model source="file">script/common/Camera.cmdl</model>
</assets>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>
</editor> </editor>

View File

@ -35,7 +35,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/Generator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -23,7 +23,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/PickupGenerator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -36,7 +36,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<model source="file">script/common/Camera.cmdl</model>
</assets>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>
</editor> </editor>

View File

@ -35,7 +35,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/Generator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -23,7 +23,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/PickupGenerator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -5,7 +5,15 @@
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/> <struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
<array ID="0xEF5C94E9"> <array ID="0xEF5C94E9">
<default>0</default> <default>0</default>
<properties/> <element_name>Connection</element_name>
<properties>
<property ID="0x00" name="Connection Index" type="short" />
<array ID="0x01" name="Activation Times">
<properties>
<property ID="0x00" name="Time" type="float" />
</properties>
</array>
</properties>
</array> </array>
<property ID="0x03E7B2B4" type="float"> <property ID="0x03E7B2B4" type="float">
<default>0.0</default> <default>0.0</default>

View File

@ -44,7 +44,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/Generator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -5,7 +5,23 @@
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/> <struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
<array ID="0xEF5C94E9"> <array ID="0xEF5C94E9">
<default>0</default> <default>0</default>
<properties/> <element_name>Connection</element_name>
<properties>
<property ID="0x00" name="Connection Index" type="short" />
<array ID="0x01" name="Activation Times">
<element_name>Activation Time</element_name>
<properties>
<property ID="0x00" name="Time" type="float" />
<property ID="0x01" name="Unknown 1" type="long">
<description>Always 0</description>
</property>
<property ID="0x02" name="Unknown 2" type="long"/>
<property ID="0x03" name="Unknown 3" type="long">
<description>Always 0</description>
</property>
</properties>
</array>
</properties>
</array> </array>
<property ID="0xB8BD2175" type="float"> <property ID="0xB8BD2175" type="float">
<default>0.0</default> <default>0.0</default>

View File

@ -41,7 +41,9 @@
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/> <property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
<property name="Active" ID="0x255A4580:0x41435456"/> <property name="Active" ID="0x255A4580:0x41435456"/>
</properties> </properties>
<assets/> <assets>
<billboard source="file">script/common/Generator.txtr</billboard>
</assets>
<preview_scale>0.5</preview_scale> <preview_scale>0.5</preview_scale>
<rotation_type>enabled</rotation_type> <rotation_type>enabled</rotation_type>
<scale_type>enabled</scale_type> <scale_type>enabled</scale_type>

View File

@ -5,7 +5,23 @@
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/> <struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
<array ID="0xEF5C94E9"> <array ID="0xEF5C94E9">
<default>0</default> <default>0</default>
<properties/> <element_name>Connection</element_name>
<properties>
<property ID="0x00" name="Connection Index" type="short" />
<array ID="0x01" name="Activation Times">
<element_name>Activation Time</element_name>
<properties>
<property ID="0x00" name="Time" type="float" />
<property ID="0x01" name="Unknown 1" type="long">
<description>Always 0</description>
</property>
<property ID="0x02" name="Unknown 2" type="long"/>
<property ID="0x03" name="Unknown 3" type="long">
<description>Always 0</description>
</property>
</properties>
</array>
</properties>
</array> </array>
<property ID="0xB8BD2175" type="float"> <property ID="0xB8BD2175" type="float">
<default>0.0</default> <default>0.0</default>