EditorLoadingGui.gui 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //--- OBJECT WRITE BEGIN ---
  2. %guiContent = new GuiControl(EditorLoadingGui, EditorGuiGroup) {
  3. isContainer = "1";
  4. Profile = "GuiOverlayProfile";
  5. HorizSizing = "right";
  6. VertSizing = "bottom";
  7. position = "0 0";
  8. Extent = "800 600";
  9. MinExtent = "8 2";
  10. canSave = "1";
  11. Visible = "1";
  12. tooltipprofile = "ToolsGuiToolTipProfile";
  13. hovertime = "1000";
  14. canSaveDynamicFields = "1";
  15. new GuiControl() {
  16. isContainer = "1";
  17. Profile = "editorMenu_wBorderProfile";
  18. HorizSizing = "center";
  19. VertSizing = "center";
  20. position = "277 271";
  21. Extent = "245 57";
  22. MinExtent = "8 2";
  23. canSave = "1";
  24. Visible = "1";
  25. tooltipprofile = "ToolsGuiToolTipProfile";
  26. hovertime = "1000";
  27. internalName = "Dialog";
  28. canSaveDynamicFields = "0";
  29. new GuiTextCtrl() {
  30. text = "Loading the World Editor...";
  31. maxLength = "1024";
  32. Margin = "0 0 0 0";
  33. Padding = "0 0 0 0";
  34. AnchorTop = "1";
  35. AnchorBottom = "0";
  36. AnchorLeft = "1";
  37. AnchorRight = "0";
  38. isContainer = "0";
  39. Profile = "ToolsGuiTextBoldCenterProfile";
  40. HorizSizing = "width";
  41. VertSizing = "center";
  42. position = "5 19";
  43. Extent = "236 18";
  44. MinExtent = "8 2";
  45. canSave = "1";
  46. Visible = "1";
  47. tooltipprofile = "ToolsGuiToolTipProfile";
  48. hovertime = "1000";
  49. canSaveDynamicFields = "0";
  50. };
  51. };
  52. };
  53. //--- OBJECT WRITE END ---
  54. function EditorLoadingGui::onWake(%this)
  55. {
  56. %res = %this.getExtent();
  57. %resX = getWord(%res, 0);
  58. %resY = getWord(%res, 1);
  59. %dialog = %this-->Dialog;
  60. %dialogExtent = %dialog.getExtent();
  61. %dialogWidth = getWord(%dialogExtent, 0);
  62. %dialogHeight = getWord(%dialogExtent, 1);
  63. %dialogPostion = %dialog.getPosition();
  64. %posX = (%resX / 2) - (%dialogWidth / 2);
  65. %posY = (%resY / 2) - (%dialogHeight / 2);
  66. %dialog.setPosition(%posX, %posY);
  67. }