Template updates + small fixes
This commit is contained in:
parent
75091f718c
commit
c91c275af7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -285,7 +285,8 @@ QVariant CPropertyModel::data(const QModelIndex& rkIndex, int Role) const
|
|||
if (!(rkIndex.internalId() & 0x1))
|
||||
{
|
||||
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();
|
||||
if (!Desc.IsEmpty()) Text += "<br/>" + TO_QSTRING(Desc);
|
||||
return Text;
|
||||
|
|
|
@ -86,7 +86,10 @@ QColor WColorPicker::getColor()
|
|||
|
||||
void WColorPicker::setColor(QColor Color)
|
||||
{
|
||||
mColor = Color;
|
||||
emit colorChanged(mColor);
|
||||
update();
|
||||
if (mColor != Color)
|
||||
{
|
||||
mColor = Color;
|
||||
emit colorChanged(mColor);
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/Generator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -5,8 +5,24 @@
|
|||
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
|
||||
<array ID="0xEF5C94E9">
|
||||
<default>0</default>
|
||||
<properties/>
|
||||
</array>
|
||||
<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>
|
||||
<property ID="0xB8BD2175" type="float">
|
||||
<default>0.0</default>
|
||||
</property>
|
||||
|
|
|
@ -24,7 +24,9 @@
|
|||
<property name="Position" ID="0x01"/>
|
||||
<property name="Rotation" ID="0x02"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<model source="file">script/common/Camera.cmdl</model>
|
||||
</assets>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>disabled</scale_type>
|
||||
</editor>
|
||||
|
|
|
@ -15,8 +15,10 @@
|
|||
<properties>
|
||||
<property name="InstanceName" ID="0x00"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<rotation_type>disabled</rotation_type>
|
||||
<scale_type>disabled</scale_type>
|
||||
<assets>
|
||||
<billboard source="file">script/common/Generator.txtr</billboard>
|
||||
</assets>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
</editor>
|
||||
</ScriptTemplate>
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
<property name="InstanceName" ID="0x00"/>
|
||||
<property name="Active" ID="0x02"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/PickupGenerator.txtr</billboard>
|
||||
</assets>
|
||||
<rotation_type>disabled</rotation_type>
|
||||
<scale_type>disabled</scale_type>
|
||||
</editor>
|
||||
|
|
|
@ -36,7 +36,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<model source="file">script/common/Camera.cmdl</model>
|
||||
</assets>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
</editor>
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/Generator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/PickupGenerator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -36,7 +36,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<model source="file">script/common/Camera.cmdl</model>
|
||||
</assets>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
</editor>
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/Generator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/PickupGenerator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -5,7 +5,15 @@
|
|||
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
|
||||
<array ID="0xEF5C94E9">
|
||||
<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>
|
||||
<property ID="0x03E7B2B4" type="float">
|
||||
<default>0.0</default>
|
||||
|
|
|
@ -44,7 +44,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/Generator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -5,7 +5,23 @@
|
|||
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
|
||||
<array ID="0xEF5C94E9">
|
||||
<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>
|
||||
<property ID="0xB8BD2175" type="float">
|
||||
<default>0.0</default>
|
||||
|
|
|
@ -41,7 +41,9 @@
|
|||
<property name="Scale" ID="0x255A4580:0x5846524D:0x02"/>
|
||||
<property name="Active" ID="0x255A4580:0x41435456"/>
|
||||
</properties>
|
||||
<assets/>
|
||||
<assets>
|
||||
<billboard source="file">script/common/Generator.txtr</billboard>
|
||||
</assets>
|
||||
<preview_scale>0.5</preview_scale>
|
||||
<rotation_type>enabled</rotation_type>
|
||||
<scale_type>enabled</scale_type>
|
||||
|
|
|
@ -5,8 +5,24 @@
|
|||
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
|
||||
<array ID="0xEF5C94E9">
|
||||
<default>0</default>
|
||||
<properties/>
|
||||
</array>
|
||||
<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>
|
||||
<property ID="0xB8BD2175" type="float">
|
||||
<default>0.0</default>
|
||||
</property>
|
||||
|
|
Loading…
Reference in New Issue