| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512 |
- //--- OBJECT WRITE BEGIN ---
- %guiContent = new GuiWindowCollapseCtrl(ShapeEdPropWindow) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiWindowProfile";
- HorizSizing = "windowRelative";
- VertSizing = "windowRelative";
- Position = getWord($pref::Video::mode, 0) - 209
- SPC getWord(EditorGuiToolbar.extent, 1) + getWord(ShapeEdSelectWindow.extent, 1) - 2;
- Extent = "210 484";
- MinExtent = "210 352";
- canSave = "1";
- Visible = "0";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "4 4 4 4";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- resizeWidth = "1";
- resizeHeight = "1";
- canMove = "1";
- canClose = "0";
- canMinimize = "0";
- canMaximize = "0";
- minSize = "50 50";
- EdgeSnap = "1";
- text = "Properties";
- //---------------------------------------------------------------------
- // Sequence and Node editors
- new GuiTabBookCtrl(ShapeEdSeqNodeTabBook) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiTabBookProfile";
- HorizSizing = "width";
- VertSizing = "height";
- position = "4 42";
- Extent = "202 437";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Docking = "client";
- Margin = "3 1 3 3";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- TabPosition = "Top";
- TabMargin = "6";
- MinTabWidth = "32";
- //---------------------------------------------------------------
- // Sequence editor
- new GuiTabPageCtrl(ShapeEdSequences) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiTabPageProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 19";
- Extent = "202 418";
- MinExtent = "0 -500";
- canSave = "1";
- Visible = "0";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- text = "Seq";
- maxLength = "1024";
- new GuiContainer() {
- isContainer = "1";
- Profile = "GuiInspectorProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 418";
- MinExtent = "0 8";
- };
- new GuiBitmapBorderCtrl() {
- isContainer = "1";
- Profile = "ToolsGuiTabBorderProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 418";
- MinExtent = "0 8";
- };
- // Sequence list
- new GuiControl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiDefaultProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 211";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- new GuiScrollCtrl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiShapeEdScrollProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 211";
- MinExtent = "8 25";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- willFirstRespond = "1";
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- lockHorizScroll = false;
- lockVertScroll = "false";
- constantThumbHeight = "0";
- childMargin = "0 0";
- mouseWheelScrollSpeed = "-1";
- new GuiContainer() {
- internalName = "sequenceListHeader";
- Profile = "inspectorStyleRolloutListProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "1 1";
- Extent = "200 19";
- MinExtent = "8 2";
- };
- new GuiTextListCtrl(ShapeEdSequenceList) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiShapeEdTextListProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "0 0";
- Extent = "202 20";
- MinExtent = "8 11";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdPropWindow.update_onSeqSelectionChanged();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- enumerate = "0";
- resizeCell = "1";
- columns = "0 100 145 190 235";
- fitParentWidth = "0";
- clipColumnText = "1";
- };
- };
- };
- // Sequence properties
- new GuiControl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiDefaultProfile";
- HorizSizing = "width";
- VertSizing = "top";
- Position = "0 210";
- Extent = "202 209";
- MinExtent = "8 11";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
-
- new GuiContainer(){ // Sequence Properties Container
- Profile = "inspectorStyleRolloutDarkProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- position = "0 0";
- Extent = "202 103";
- isContainer = true;
-
- new GuiTextCtrl() { // Header
- Profile = "ToolsGuiTextProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "5 1";
- Extent = "104 16";
- text = "Sequence Properties";
- };
- new GuiTextCtrl() { // Name
- Profile = "ToolsGuiTextProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "16 22";
- Extent = "27 16";
- text = "Name";
- };
- new GuiTextEditCtrl() {
- internalName = "seqName";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "46 21";
- Extent = "152 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- AltCommand = "ShapeEdSequences.onEditName();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Name of the selected sequence (edit to rename)";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- maxLength = "256";
- historySize = "0";
- password = "0";
- tabComplete = "0";
- sinkAllKeyEvents = "0";
- passwordMask = "*";
- };
- // animation dropdown
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextRightProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "-5 42";
- Extent = "48 18";
- text = "Source";
- tooltip = "Animation source data";
- };
- new GuiPopUpMenuCtrl(ShapeEdSeqFromMenu) {
- Profile = "ToolsGuiPopUpMenuProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "46 41";
- Extent = "91 18";
- };
- // Start Frame
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextRightProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "32 62";
- Extent = "11 16";
- text = "in";
- };
- new GuiTextEditCtrl() {
- internalName = "startFrame";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "46 61";
- Extent = "32 18";
- text = "";
- AltCommand = "ShapeEdSequences.onEditSeqInOut(\"in\", $ThisControl.getText());";
- };
- // End frame
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextRightProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "85 62";
- Extent = "18 16";
- text = "out";
- };
- new GuiTextEditCtrl() {
- internalName = "endFrame";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "105 61";
- Extent = "32 18";
- text = "";
- AltCommand = "ShapeEdSequences.onEditSeqInOut(\"out\", $ThisControl.getText());";
- };
- // Cyclic flag
- new GuiCheckBoxCtrl() {
- internalName = "cyclicFlag";
- Profile = "ToolsGuiCheckBoxProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "143 43";
- Extent = "39 13";
- Command = "ShapeEdSequences.onToggleCyclic();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Loop Animation. Toggles the cyclic flag.";
- hovertime = "1000";
- text = "Loop";
- };
- // Priority
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextRightProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- position = "136 62";
- Extent = "41 16";
- text = "Priority";
- };
- new GuiTextEditCtrl() {
- internalName = "priority";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "179 61";
- Extent = "19 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- AltCommand = "ShapeEdSequences.onEditPriority();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Priority of the selected sequence";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- maxLength = "5";
- historySize = "0";
- password = "0";
- tabComplete = "0";
- sinkAllKeyEvents = "0";
- passwordMask = "*";
- };
- // Blend animation dropdown
- new GuiCheckBoxCtrl() {
- internalName = "blendFlag";
- Profile = "ToolsGuiCheckBoxProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "2 82";
- Extent = "45 16";
- Command = "ShapeEdSequences.onEditBlend();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Toggle the blend flag for the selected sequence";
- hovertime = "1000";
- text = "Blend";
- };
- new GuiPopUpMenuCtrl() {
- internalName = "blendSeq";
- Profile = "ToolsGuiPopUpMenuProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "46 81";
- Extent = "91 18";
- tooltip = "Blend reference sequence";
- Command = "ShapeEdSequences.onEditBlend();";
- };
-
- // Blend frame
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextRightProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "142 81";
- Extent = "29 18";
- text = "Frame";
- };
- new GuiTextEditCtrl() {
- internalName = "blendFrame";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "173 81";
- Extent = "25 18";
- text = "";
- tooltip = "Blend reference frame";
- AltCommand = "ShapeEdSequences.onEditBlend();";
- };
- };
- new GuiContainer(){ // Triggers Container
- Profile = "inspectorStyleRolloutDarkProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- position = "0 102";
- Extent = "202 106";
- isContainer = true;
-
- // Triggers
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "5 0";
- Extent = "50 18";
- text = "Triggers";
- };
- new GuiBitmapButtonCtrl() {
- internalName = "addTriggerBtn";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "170 2";
- Extent = "15 15";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdSequences.onAddTrigger();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Add a new trigger";
- hovertime = "1000";
- groupNum = "0";
- buttonType = "PushButton";
- useMouseEvents = "0";
- bitmap = "tools/gui/images/new";
- };
- new GuiBitmapButtonCtrl() {
- internalName = "deleteTriggerBtn";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "185 2";
- Extent = "15 15";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdTriggerList.onDeleteSelection();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Delete the selected trigger";
- hovertime = "1000";
- groupNum = "0";
- buttonType = "PushButton";
- useMouseEvents = "0";
- bitmap = "tools/gui/images/delete";
- };
- // Trigger list
- new GuiControl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiScrollProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 17";
- Extent = "202 66";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- new GuiScrollCtrl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiShapeEdScrollProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 66";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "0";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- willFirstRespond = "1";
- hScrollBar = "alwaysOff";
- vScrollBar = "dynamic";
- lockHorizScroll = "true";
- lockVertScroll = "false";
- constantThumbHeight = "0";
- childMargin = "0 0";
- mouseWheelScrollSpeed = "-1";
- new GuiContainer() {
- Profile = "inspectorStyleRolloutListProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- position = "1 1";
- Extent = "200 19";
- };
- new GuiTextListCtrl(ShapeEdTriggerList) {
- canSaveDynamicFields = "0";
- Profile = "GuiShapeEdTextListProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "1 1";
- Extent = "177 16";
- MinExtent = "8 11";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdPropWindow.onTriggerSelectionChanged();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- enumerate = "0";
- resizeCell = "1";
- columns = "-1 0 60 118";
- fitParentWidth = "1";
- clipColumnText = "1";
- };
- };
- };
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "5 85";
- Extent = "35 18";
- text = "Frame";
- };
- new GuiTextEditCtrl() {
- internalName = "triggerFrame";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "36 85";
- Extent = "32 18";
- text = "";
- AltCommand = "ShapeEdTriggerList.onEditSelection();";
- };
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "75 85";
- Extent = "35 18";
- text = "Trigger";
- };
- new GuiTextEditCtrl() {
- internalName = "triggerNum";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "110 85";
- Extent = "32 18";
- text = "";
- AltCommand = "ShapeEdTriggerList.onEditSelection();";
- };
- new GuiCheckBoxCtrl() {
- internalName = "triggerOnOff";
- Profile = "ToolsGuiCheckBoxProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "152 87";
- Extent = "47 13";
- text = "On/off";
- Command = "ShapeEdTriggerList.onEditSelection();";
- };
- };
- };
- };
- //---------------------------------------------------------------
- // Node Editor
- new GuiTabPageCtrl(ShapeEdNodes) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiTabPageProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 19";
- Extent = "202 418";
- MinExtent = "0 -500";
- canSave = "1";
- Visible = "0";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- text = "Node";
- maxLength = "1024";
- new GuiBitmapBorderCtrl() {
- isContainer = "1";
- Profile = "ToolsGuiTabBorderProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 418";
- MinExtent = "0 8";
- };
- // Node Filter
- new GuiTextEditCtrl(NodeTreeFilter) {
- position = "2 4";
- extent = "175 18";
- profile = "ToolsGuiTextEditProfile";
- horizSizing = "width";
- vertSizing = "bottom";
- class = "GuiTreeViewFilterText";
- treeView = ShapeEdNodeTreeView;
- };
- new GuiBitmapButtonCtrl() {
- bitmap = "tools/gui/images/clear-icon";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- isContainer = "0";
- Profile = "ToolsGuiButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- position = "180 5";
- Extent = "17 17";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "GuiToolTipProfile";
- hovertime = "1000";
- canSaveDynamicFields = "0";
- class = "GuiTreeViewFilterClearButton";
- textCtrl = NodeTreeFilter;
- };
- // End Node Filter
- new GuiScrollCtrl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiEditorScrollProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 32";
- Extent = "202 256";
- MinExtent = "8 0";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "0";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- willFirstRespond = "1";
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- lockHorizScroll = false;
- lockVertScroll = "false";
- constantThumbHeight = "0";
- childMargin = "0 0";
- mouseWheelScrollSpeed = "-1";
- new GuiTreeViewCtrl(ShapeEdNodeTreeView) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiTreeViewProfile";
- HorizSizing = "right";
- VertSizing = "height";
- Position = "1 1";
- Extent = "122 21";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- tabSize = "16";
- textOffset = "2";
- fullRowSelect = "0";
- itemHeight = "21";
- destroyTreeOnSleep = "1";
- MouseDragging = "0";
- MultipleSelections = "0";
- DeleteObjectAllowed = "1";
- DragToItemAllowed = "0";
- showRoot = "0";
- internalNamesOnly = "0";
- };
- };
- new GuiContainer(){ // Node Properties Container
- Profile = "inspectorStyleRolloutDarkProfile";
- HorizSizing = "width";
- VertSizing = "top";
- position = "0 287";
- Extent = "202 131";
- isContainer = true;
-
- new GuiTextCtrl() {
- Profile = "ToolsGuiTextProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "5 1";
- Extent = "104 16";
- text = "Node Properties";
- };
- // Node property labels
- new GuiControl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiDefaultProfile";
- HorizSizing = "right";
- VertSizing = "top";
- Position = "6 18";
- Extent = "50 108";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- profile = "ToolsGuiTextRightProfile";
- position = "9 6";
- Extent = "40 16";
- text = "Name";
- };
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- profile = "ToolsGuiTextRightProfile";
- position = "10 26";
- Extent = "40 16";
- text = "Parent";
- };
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- profile = "ToolsGuiTextRightProfile";
- position = "-5 49";
- Extent = "54 16";
- text = "Transform";
- };
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- profile = "ToolsGuiTextRightProfile";
- position = "11 73";
- Extent = "39 16";
- text = "Position";
- };
- new GuiTextCtrl() {
- HorizSizing = "right";
- VertSizing = "bottom";
- profile = "ToolsGuiTextRightProfile";
- position = "8 93";
- Extent = "42 16";
- text = "Rotation";
- };
- };
- // Node properties
- new GuiControl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiDefaultProfile";
- HorizSizing = "width";
- VertSizing = "top";
- Position = "49 16";
- Extent = "155 109";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- new GuiTextEditCtrl() {
- internalName = "nodeName";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "12 5";
- Extent = "137 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- AltCommand = "ShapeEdNodes.onEditName();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Name of the selected node (edit to rename)";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- maxLength = "1024";
- historySize = "0";
- password = "0";
- tabComplete = "0";
- sinkAllKeyEvents = "0";
- passwordMask = "*";
- };
- new GuiPopUpMenuCtrl(ShapeEdNodeParentMenu) {
- Profile = "ToolsGuiPopUpMenuProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "12 25";
- Extent = "137 18";
- tooltip = "Selected node's parent";
- };
- new GuiIconButtonCtrl() {
- internalName = "worldTransform";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiIconButtonProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "12 45";
- Extent = "65 25";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdPropWindow.update_onNodeTransformChanged();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "View global node transform";
- hovertime = "1000";
- text = "World";
- groupNum = "0";
- buttonType = "RadioButton";
- useMouseEvents = "0";
- buttonMargin = "0 4";
- iconBitmap = "tools/gui/images/menubar/world-transform_n";
- textMargin = "25";
- };
- new GuiIconButtonCtrl() {
- internalName = "objectTransform";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiIconButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "84 45";
- Extent = "65 25";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdPropWindow.update_onNodeTransformChanged();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "View local node transform (relative to parent)";
- hovertime = "1000";
- text = "Object";
- groupNum = "0";
- buttonType = "RadioButton";
- useMouseEvents = "0";
- buttonMargin = "0 4";
- iconBitmap = "tools/gui/images/menubar/object-transform_n";
- textMargin = "26";
- };
- new GuiTextEditCtrl() {
- internalName = "nodePosition";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "12 72";
- Extent = "137 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- AltCommand = "ShapeEdNodes.onEditTransform();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Node position (x y z)";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- maxLength = "1024";
- historySize = "0";
- password = "0";
- tabComplete = "0";
- sinkAllKeyEvents = "0";
- passwordMask = "*";
- };
- new GuiTextEditCtrl() {
- internalName = "nodeRotation";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextEditProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "12 92";
- Extent = "137 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- AltCommand = "ShapeEdNodes.onEditTransform();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Node rotation (axis.x axis.y axis.z angle)";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- maxLength = "1024";
- historySize = "0";
- password = "0";
- tabComplete = "0";
- sinkAllKeyEvents = "0";
- passwordMask = "*";
- };
- };
- };
- };
- //---------------------------------------------------------------
- // Details/Objects
- new GuiTabPageCtrl(ShapeEdDetails) {
- fitBook = "0";
- text = "Detail";
- maxLength = "1024";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- position = "0 19";
- extent = "202 418";
- MinExtent = "0 -500";
- HorizSizing = "width";
- VertSizing = "height";
- Profile = "ToolsGuiTabPageProfile";
- Visible = "0";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- new GuiContainer() {
- position = "0 0";
- extent = "202 418";
- minExtent = "0 8";
- horizSizing = "width";
- vertSizing = "height";
- profile = "GuiInspectorProfile";
- isContainer = "1";
- };
- new GuiBitmapBorderCtrl() {
- position = "0 0";
- extent = "202 418";
- minExtent = "0 8";
- HorizSizing = "width";
- VertSizing = "height";
- Profile = "ToolsGuiTabBorderProfile";
- isContainer = "1";
- };
- // Detail/object tree
- new GuiControl() {
- Position = "0 0";
- extent = "202 276";
- MinExtent = "8 8";
- HorizSizing = "width";
- VertSizing = "height";
- Profile = "ToolsGuiDefaultProfile";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "0";
- new GuiScrollCtrl() {
- willFirstRespond = "1";
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- lockHorizScroll = false;
- lockVertScroll = "false";
- constantThumbHeight = "0";
- childMargin = "0 0";
- mouseWheelScrollSpeed = "-1";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- Position = "0 0";
- extent = "202 276";
- MinExtent = "8 25";
- HorizSizing = "width";
- VertSizing = "height";
- Profile = "GuiShapeEdScrollProfile";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "0";
- new GuiTreeViewCtrl(ShapeEdDetailTree) {
- tabSize = "16";
- textOffset = "2";
- fullRowSelect = "0";
- itemHeight = "21";
- destroyTreeOnSleep = "1";
- MouseDragging = "0";
- MultipleSelections = "0";
- DeleteObjectAllowed = "1";
- DragToItemAllowed = "0";
- showRoot = "0";
- Position = "1 1";
- extent = "85 110";
- MinExtent = "8 8";
- HorizSizing = "right";
- VertSizing = "height";
- Profile = "ToolsGuiTreeViewProfile";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- };
- };
- // Detail/Object properties
- new GuiControl() {
- position = "0 275";
- extent = "202 143";
- MinExtent = "8 8";
- HorizSizing = "width";
- vertSizing = "top";
- Profile = "ToolsGuiDefaultProfile";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "0";
- new GuiContainer() {
- position = "0 0";
- extent = "202 143";
- HorizSizing = "width";
- VertSizing = "bottom";
- Profile = "inspectorStyleRolloutDarkProfile";
- isContainer = "1";
-
- new GuiTextCtrl() { // Header
- Profile = "ToolsGuiTextProfile";
- text = "Detail/Object Properties";
- position = "4 1";
- extent = "112 16";
- HorizSizing = "right";
- VertSizing = "bottom";
- };
- new GuiTextEditCtrl() {
- position = "5 23";
- extent = "130 18";
- MinExtent = "8 2";
- HorizSizing = "right";
- VertSizing = "bottom";
- Profile = "ToolsGuiTextEditProfile";
- Visible = "1";
- AltCommand = "ShapeEdDetails.onEditName();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Edit this value to rename the current object or detail";
- hovertime = "1000";
- internalName = "meshName";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiTextEditCtrl() {
- position = "157 23";
- extent = "40 18";
- MinExtent = "8 2";
- HorizSizing = "right";
- VertSizing = "bottom";
- Profile = "ToolsGuiTextEditProfile";
- Visible = "1";
- AltCommand = "ShapeEdDetails.onEditSize();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Edit this value to change the size of the current mesh or detail";
- hovertime = "1000";
- internalName = "meshSize";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiTextCtrl() {
- text = "Billboarding";
- position = "5 44";
- extent = "57 16";
- HorizSizing = "right";
- VertSizing = "bottom";
- };
- new GuiPopUpMenuCtrl() {
- position = "88 45";
- extent = "109 18";
- HorizSizing = "right";
- vertSizing = "bottom";
- Profile = "ToolsGuiPopUpMenuProfile";
- Command = "ShapeEdDetails.onEditBBType();";
- ToolTip = "The type of billboarding used by the mesh";
- internalName = "bbType";
- };
- new GuiTextCtrl() {
- text = "Object Node";
- position = "5 66";
- extent = "60 16";
- HorizSizing = "right";
- VertSizing = "bottom";
- };
- new GuiPopUpMenuCtrl() {
- position = "88 67";
- extent = "109 18";
- HorizSizing = "right";
- vertSizing = "bottom";
- Profile = "ToolsGuiPopUpMenuProfile";
- Command = "ShapeEdDetails.onSetObjectNode();";
- ToolTip = "The node this object is attached to (all detail levels)";
- internalName = "objectNode";
- };
- new GuiBitmapCtrl(){
- bitmap = "tools/gui/images/inactive-overlay";
- position = "4 45";
- extent = "193 42";
- tooltip = "A mesh must be selected to edit these properties";
- hovertime = "500";
- isContainer = "1";
- internalName = "editMeshInactive";
- };
- new GuiButtonCtrl() {
- text = "Import Shape into...";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "4 91";
- extent = "102 22";
- MinExtent = "8 2";
- HorizSizing = "right";
- vertSizing = "bottom";
- Profile = "ToolsGuiButtonProfile";
- Visible = "1";
- Command = "ShapeEdDetails.onAddMeshFromFile(\"\");";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Add geometry from a different model file into the current shape";
- hovertime = "1000";
- isContainer = "0";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- new GuiPopUpMenuCtrl() {
- position = "111 92";
- extent = "85 18";
- horizSizing = "right";
- vertSizing = "bottom";
- Profile = "ToolsGuiPopUpMenuProfile";
- tooltip = "Select which detail level new geometry will be added to";
- internalName = "addGeomTo";
- };
- new GuiButtonCtrl() {
- text = "Re-compute bounds";
- groupNum = "-1";
- buttonType = "PushButton";
- useMouseEvents = "0";
- position = "40 117";
- extent = "122 22";
- MinExtent = "8 2";
- HorizSizing = "right";
- vertSizing = "bottom";
- Profile = "ToolsGuiButtonProfile";
- Visible = "1";
- Command = "ShapeEditor.doSetBounds();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Recompute the shape bounding box using the geometry in the current detail level";
- hovertime = "1000";
- isContainer = "0";
- canSave = "1";
- canSaveDynamicFields = "0";
- };
- };
- };
- };
- //---------------------------------------------------------------
- // Materials
- new GuiTabPageCtrl(ShapeEdMaterials) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiTabPageProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 19";
- Extent = "202 418";
- MinExtent = "0 -500";
- canSave = "1";
- Visible = "0";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- text = "Mat";
- maxLength = "1024";
- new GuiContainer() {
- isContainer = "1";
- Profile = "GuiInspectorProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 418";
- MinExtent = "0 8";
- };
- new GuiBitmapBorderCtrl() {
- isContainer = "1";
- Profile = "ToolsGuiTabBorderProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 418";
- MinExtent = "0 8";
- };
- // Material list
- new GuiControl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "ToolsGuiDefaultProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 345";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- new GuiScrollCtrl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiShapeEdScrollProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 345";
- MinExtent = "8 25";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- willFirstRespond = "1";
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- lockHorizScroll = false;
- lockVertScroll = "false";
- constantThumbHeight = "0";
- childMargin = "0 0";
- mouseWheelScrollSpeed = "-1";
- new GuiContainer() {
- internalName = "materialListHeader";
- Profile = "inspectorStyleRolloutListProfile";
- HorizSizing = "width";
- VertSizing = "bottom";
- Position = "1 1";
- Extent = "200 19";
- MinExtent = "8 2";
- };
- new GuiTextListCtrl(ShapeEdMaterialList) {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiShapeEdTextListProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "0 0";
- Extent = "202 20";
- MinExtent = "8 11";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdMaterials.updateSelectedMaterial(ShapeEdMaterials-->highlightMaterial.getValue());";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- enumerate = "0";
- resizeCell = "1";
- columns = "0 130";
- fitParentWidth = "0";
- clipColumnText = "1";
- };
- };
- };
- // Material properties
- new GuiContainer() {
- Profile = "inspectorStyleRolloutDarkProfile";
- HorizSizing = "width";
- VertSizing = "top";
- Position = "0 344";
- Extent = "202 74";
- isContainer = true;
-
- new GuiTextCtrl() { // Header
- Profile = "ToolsGuiTextProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "5 1";
- Extent = "104 16";
- text = "Material Options";
- };
- new GuiIconButtonCtrl() {
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiIconButtonProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "0 21";
- Extent = "150 25";
- MinExtent = "8 8";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEdMaterials.editSelectedMaterial();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Open the Material Editor to edit the selected material";
- hovertime = "1000";
- text = "Edit the selected Material";
- groupNum = "0";
- buttonType = "PushButton";
- useMouseEvents = "0";
- buttonMargin = "0 4";
- iconBitmap = "tools/worldEditor/images/toolbar/material-editor_n";
- textMargin = "25";
- };
- new GuiCheckBoxCtrl() {
- internalName = "highlightMaterial";
- Profile = "ToolsGuiCheckBoxProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- Position = "7 52";
- Extent = "150 13";
- Command = "ShapeEdMaterials.updateSelectedMaterial($ThisControl.getValue());";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Highlight the primitives that use the selected Material";
- hovertime = "1000";
- text = "Highlight selected Material";
- };
- };
- };
- };
- // Save/New/Delete buttons (node or sequence, depending on which tab is active)
- new GuiBitmapButtonCtrl() {
- internalName = "saveBtn";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "154 25";
- Extent = "17 17";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- Command = "ShapeEditor.saveChanges();";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "Save the current shape";
- hovertime = "1000";
- groupNum = "0";
- buttonType = "PushButton";
- useMouseEvents = "0";
- bitmap = "tools/gui/images/save-icon";
- };
- new GuiBitmapButtonCtrl() {
- internalName = "newBtn";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "176 25";
- Extent = "17 17";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- Command = "";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "";
- hovertime = "1000";
- groupNum = "0";
- buttonType = "PushButton";
- useMouseEvents = "0";
- bitmap = "tools/gui/images/new";
- };
- new GuiBitmapButtonCtrl() {
- internalName = "deleteBtn";
- canSaveDynamicFields = "0";
- isContainer = "0";
- Profile = "ToolsGuiButtonProfile";
- HorizSizing = "left";
- VertSizing = "bottom";
- Position = "190 25";
- Extent = "17 17";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- Command = "";
- tooltipprofile = "ToolsGuiToolTipProfile";
- ToolTip = "";
- hovertime = "1000";
- groupNum = "0";
- buttonType = "PushButton";
- useMouseEvents = "0";
- bitmap = "tools/gui/images/delete";
- };
- };
- //--- OBJECT WRITE END ---
- new GuiControl(GenImposterGui,EditorGuiGroup) {
- isContainer = "1";
- Profile = "ToolsGuiOverlayProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "0 0";
- Extent = "800 600";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- canSaveDynamicFields = "1";
- new GuiControl() {
- isContainer = "1";
- Profile = "editorMenu_wBorderProfile";
- HorizSizing = "center";
- VertSizing = "center";
- position = "277 271";
- Extent = "245 57";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- internalName = "Dialog";
- canSaveDynamicFields = "0";
- new GuiTextCtrl() {
- text = "Generating imposter bitmaps...";
- maxLength = "1024";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextBoldCenterProfile";
- HorizSizing = "width";
- VertSizing = "center";
- position = "5 19";
- Extent = "236 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- canSaveDynamicFields = "0";
- };
- };
- };
- function GenImposterGui::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);
- }
|