| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474 |
- //--- 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
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "5 1";
- Extent = "104 16";
- text = "Sequence Properties";
- };
- new GuiTextCtrl() { // Name
- 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() {
- 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";
- };
- new GuiScrollCtrl() {
- canSaveDynamicFields = "0";
- isContainer = "1";
- Profile = "GuiEditorScrollProfile";
- HorizSizing = "width";
- VertSizing = "height";
- Position = "0 0";
- Extent = "202 288";
- 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() {
- 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
- 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
- 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/matterial-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);
- }
|