Torque3D/Templates/BaseGame/game/tools/gui/EditorLoadingGui.gui
Areloch e621e362f4 Corrected the logic for the GenerateComposite import config rule so it only applies if there's any of the ORM maps detected
Added new import config rule: AlwaysPresentImageMaps so it will add entries for the regular map inputs on a material, even if they weren't actually found
Disabled a number of inactive popup menu items
Added Create New Module to normal add asset popup for more obvious/simplified use-flow
Adjusted the editor loading logic so it will properly display the loading splash to inform loading is happening instead of just lagging
Adjusted the assimp shape loader code so if it doesn't find a texture, and thus just sets a material value as the material color, it has a more parsable formatting
2019-10-06 01:29:12 -05:00

75 lines
2 KiB
Text

//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EditorLoadingGui,EditorGuiGroup) {
position = "0 0";
extent = "1024 768";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "GuiOverlayProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "1";
new GuiControl() {
position = "389 355";
extent = "245 57";
minExtent = "8 2";
horizSizing = "center";
vertSizing = "center";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
internalName = "Dialog";
canSave = "1";
canSaveDynamicFields = "0";
new GuiTextCtrl() {
text = "Loading the Editor...";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "5 19";
extent = "236 18";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "center";
profile = "ToolsGuiTextBoldCenterProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---
function EditorLoadingGui::onWake(%this)
{
%res = %this.getExtent();
%resX = getWord(%res, 0);
%resY = getWord(%res, 1);
%dialog = %this-->Dialog;
%dialogExtent = %dialog.getExtent();
%dialogWidth = getWord(%dialogExtent, 0);
%dialogHeight = getWord(%dialogExtent, 1);
%dialogPostion = %dialog.getPosition();
%posX = (%resX / 2) - (%dialogWidth / 2);
%posY = (%resY / 2) - (%dialogHeight / 2);
%dialog.setPosition(%posX, %posY);
}