mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
more torquescript template fixes.
This commit is contained in:
parent
6f7fdca87d
commit
b2bbd771f6
54 changed files with 122 additions and 99 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue