more torquescript template fixes.

This commit is contained in:
Jeff Hutchinson 2021-05-04 22:49:19 -04:00
parent 6f7fdca87d
commit b2bbd771f6
54 changed files with 122 additions and 99 deletions

View file

@ -9,6 +9,13 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
if(%currentMaterial $= "" || %currentMaterial == 0)
%currentMaterial = %fieldDefaultVal;
// TODO?
%matName = "";
%component = "";
%material = "";
%accessor = "";
%precision = "";
%container = new GuiControl() {
canSaveDynamicFields = "0";
Profile = "EditorContainerProfile";
@ -20,7 +27,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
canSave = "0";
Visible = "1";
hovertime = "100";
tooltip = %tooltip;
tooltip = "";// %tooltip;
tooltipProfile = "EditorToolTipProfile";
};
@ -35,7 +42,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
canSave = "0";
Visible = "1";
hovertime = "100";
tooltip = %tooltip;
tooltip = ""; //%tooltip;
tooltipProfile = "EditorToolTipProfile";
text = %fieldName;
maxLength = "1024";
@ -57,7 +64,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
text = %currentMaterial;
};
};
%previewButton = new GuiBitmapButtonCtrl(){
internalName = %matName;
HorizSizing = "right";
@ -121,7 +128,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
canSave = "0";
Visible = "1";
hovertime = "100";
tooltip = %tooltip;
tooltip = ""; //%tooltip;
tooltipProfile = "EditorToolTipProfile";
text = "Mapped to:" SPC %material.mapTo;
maxLength = "1024";
@ -140,7 +147,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
canSave = "0";
Visible = "1";
hovertime = "100";
tooltip = %tooltip;
tooltip = "";// %tooltip;
tooltipProfile = "EditorToolTipProfile";
maxLength = "1024";
historySize = "0";

View file

@ -201,7 +201,7 @@ function stateMachineFieldList::onSelect(%this)
%index = %this.getParent().fieldID;
%oldValue = %this.behavior.stateMachine.getValue(%index);
%this.behavior.stateMachine.setValue(%fieldType SPC %oldValue.y);
%this.behavior.stateMachine.setValue(%this.fieldType SPC %oldValue.y);
%this.getParent().add(%fieldCtrl);
}

View file

@ -13,7 +13,7 @@ function GuiInspectorComponentGroup::buildTypeMaskField(%this, %component, %fiel
canSave = "0";
Visible = "1";
hovertime = "100";
tooltip = %tooltip;
tooltip = "";//%tooltip;
tooltipProfile = "EditorToolTipProfile";
};
@ -28,7 +28,7 @@ function GuiInspectorComponentGroup::buildTypeMaskField(%this, %component, %fiel
canSave = "0";
Visible = "1";
hovertime = "100";
tooltip = %tooltip;
tooltip = "";//%tooltip;
tooltipProfile = "EditorToolTipProfile";
text = %fieldName;
maxLength = "1024";