guiEditorCtrl.gui 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. //--- OBJECT WRITE BEGIN ---
  2. %guiContent = new GuiControl(GuiEditorCtrl) {
  3. parentGroup = "GuiEditorContent";
  4. position = "0 0";
  5. Extent = "1024 768";
  6. minExtent = "8 2";
  7. horizSizing = "right";
  8. vertSizing = "bottom";
  9. profile = "GuiDefaultProfile";
  10. visible = "1";
  11. active = "1";
  12. tooltipProfile = "GuiToolTipProfile";
  13. hovertime = "1000";
  14. isContainer = "1";
  15. canSave = "1";
  16. canSaveDynamicFields = "1";
  17. new GuiSpriteCtrl() {
  18. Profile = "GuiDefaultProfile";
  19. HorizSizing = "width";
  20. VertSizing = "height";
  21. Position = "0 0";
  22. Extent = "1024 768";
  23. MinExtent = "8 2";
  24. canSave = "1";
  25. Visible = "1";
  26. hovertime = "1000";
  27. imageColor = "255 255 255 255";
  28. bitmap = "./images/gridTiny2";
  29. singleFrameBitmap = "1";
  30. tileImage = "1";
  31. positionOffset = "0 0";
  32. imageSize = "128 128";
  33. fullSize = "0";
  34. constrainProportions = "1";
  35. };
  36. new GuiControl(GuiEditorContent) {
  37. canSaveDynamicFields = "0";
  38. isContainer = "1";
  39. Profile = "GuiDefaultProfile";
  40. HorizSizing = "width";
  41. VertSizing = "height";
  42. Position = "0 0";
  43. Extent = "1024 768";
  44. MinExtent = "8 2";
  45. canSave = "1";
  46. Visible = "1";
  47. hovertime = "1000";
  48. new GuiControl(GuiBlank) {
  49. canSaveDynamicFields = "0";
  50. isContainer = "1";
  51. Profile = "GuiDefaultProfile";
  52. HorizSizing = "width";
  53. VertSizing = "height";
  54. Position = "0 0";
  55. Extent = "1024 768";
  56. MinExtent = "8 2";
  57. canSave = "1";
  58. Visible = "1";
  59. hovertime = "1000";
  60. };
  61. };
  62. new GuiEditCtrl(GuiEditor) {
  63. canSaveDynamicFields = "0";
  64. isContainer = "0";
  65. Profile = "GuiTextEditProfile";
  66. HorizSizing = "width";
  67. VertSizing = "height";
  68. Position = "0 0";
  69. Extent = "1024 768";
  70. minExtent = "8 2";
  71. canSave = "1";
  72. Visible = "1";
  73. hovertime = "1000";
  74. new GuiMenuBarCtrl(GuiEditorMenuBar) {
  75. new GuiMenuItemCtrl() {
  76. Text = "File";
  77. new GuiMenuItemCtrl() {
  78. Text = "New Gui...";
  79. Command = "GuiEditorStartCreate();";
  80. Accelerator = "Ctrl N";
  81. };
  82. new GuiMenuItemCtrl() {
  83. Text = "Open Gui...";
  84. Command = "GuiEditorOpenGui();";
  85. Accelerator = "Ctrl O";
  86. };
  87. new GuiMenuItemCtrl() { Text = "-"; };
  88. new GuiMenuItemCtrl() {
  89. Text = "Save Gui...";
  90. Command = "GuiEditorToy.save();";
  91. Accelerator = "Ctrl S";
  92. };
  93. };
  94. new GuiMenuItemCtrl() {
  95. Text = "Edit";
  96. new GuiMenuItemCtrl() {
  97. Text = "Undo";
  98. Command = "GuiEditor.Undo();";
  99. Accelerator = "Ctrl Z";
  100. };
  101. new GuiMenuItemCtrl() {
  102. Text = "Redo";
  103. Command = "GuiEditor.Redo();";
  104. Accelerator = "Ctrl-Shift Z";
  105. };
  106. new GuiMenuItemCtrl() { Text = "-"; };
  107. new GuiMenuItemCtrl() {
  108. Text = "Cut";
  109. Command = "GuiEditor.Cut();";
  110. Accelerator = "Ctrl X";
  111. };
  112. new GuiMenuItemCtrl() {
  113. Text = "Copy";
  114. Command = "GuiEditor.Copy();";
  115. Accelerator = "Ctrl C";
  116. };
  117. new GuiMenuItemCtrl() {
  118. Text = "Paste";
  119. Command = "GuiEditor.Paste();";
  120. Accelerator = "Ctrl V";
  121. };
  122. };
  123. new GuiMenuItemCtrl() {
  124. Text = "Layout";
  125. new GuiMenuItemCtrl() {
  126. Text = "Align Left";
  127. Command = "GuiEditor.Justify(0);";
  128. Accelerator = "Ctrl L";
  129. };
  130. new GuiMenuItemCtrl() {
  131. Text = "Align Right";
  132. Command = "GuiEditor.Justify(2);";
  133. Accelerator = "Ctrl R";
  134. };
  135. new GuiMenuItemCtrl() {
  136. Text = "Align Top";
  137. Command = "GuiEditor.Justify(3);";
  138. Accelerator = "Ctrl T";
  139. };
  140. new GuiMenuItemCtrl() {
  141. Text = "Align Bottom";
  142. Command = "GuiEditor.Justify(4);";
  143. Accelerator = "Ctrl B";
  144. };
  145. new GuiMenuItemCtrl() { Text = "-"; };
  146. new GuiMenuItemCtrl() {
  147. Text = "Center Horizontally";
  148. Command = "GuiEditor.Justify(1);";
  149. };
  150. new GuiMenuItemCtrl() {
  151. Text = "Space Vertically";
  152. Command = "GuiEditor.Justify(5);";
  153. };
  154. new GuiMenuItemCtrl() {
  155. Text = "Space Horizontally";
  156. Command = "GuiEditor.Justify(6);";
  157. };
  158. new GuiMenuItemCtrl() { Text = "-"; };
  159. new GuiMenuItemCtrl() {
  160. Text = "Bring to Front";
  161. Command = "GuiEditor.BringToFront();";
  162. Accelerator = "Ctrl-Shift Up";
  163. };
  164. new GuiMenuItemCtrl() {
  165. Text = "Push to Back";
  166. Command = "GuiEditor.PushToBack();";
  167. Accelerator = "Ctrl-Shift Down";
  168. };
  169. new GuiMenuItemCtrl() { Text = "-"; };
  170. new GuiMenuItemCtrl() {
  171. Text = "Snap to Grid";
  172. Toggle = "1";
  173. IsOn = "1";
  174. Command = "echo(\"Snap to Grid On!\");";
  175. AltCommand = "echo(\"Snap to Grid Off!\");";
  176. Accelerator = "Ctrl G";
  177. };
  178. new GuiMenuItemCtrl() { Text = "-"; };
  179. new GuiMenuItemCtrl() {
  180. Text = "Radio Test 1";
  181. Radio = "1";
  182. IsOn = "1";
  183. Command = "echo(\"Radio 1 On!\");";
  184. AltCommand = "echo(\"Radio 1 Off!\");";
  185. Accelerator = "Ctrl 1";
  186. };
  187. new GuiMenuItemCtrl() {
  188. Text = "Radio Test 2";
  189. Radio = "1";
  190. IsOn = "0";
  191. Command = "echo(\"Radio 2 On!\");";
  192. AltCommand = "echo(\"Radio 2 Off!\");";
  193. Accelerator = "Ctrl 2";
  194. };
  195. new GuiMenuItemCtrl() {
  196. Text = "Radio Test 3";
  197. Radio = "1";
  198. IsOn = "0";
  199. Command = "echo(\"Radio 3 On!\");";
  200. AltCommand = "echo(\"Radio 3 Off!\");";
  201. Accelerator = "Ctrl 3";
  202. };
  203. new GuiMenuItemCtrl() { Text = "-"; };
  204. new GuiMenuItemCtrl() {
  205. Text = "Example Sub Menu 1";
  206. new GuiMenuItemCtrl() {
  207. Text = "Example Menu Item 1";
  208. Command = "echo(\"Example Menu Item 1!\");";
  209. Accelerator = "Ctrl K";
  210. };
  211. new GuiMenuItemCtrl() {
  212. Text = "Example Menu Item 2";
  213. Command = "echo(\"Example Menu Item 2!\");";
  214. Accelerator = "Ctrl-Alt K";
  215. };
  216. };
  217. new GuiMenuItemCtrl() {
  218. Text = "Example Sub Menu 2";
  219. new GuiMenuItemCtrl() {
  220. Text = "Example Menu Item 3";
  221. Command = "echo(\"Example Menu Item 3!\");";
  222. Accelerator = "Ctrl W";
  223. };
  224. new GuiMenuItemCtrl() {
  225. Text = "Example Menu Item 4";
  226. Command = "echo(\"Example Menu Item 4!\");";
  227. };
  228. new GuiMenuItemCtrl() { Text = "-"; };
  229. new GuiMenuItemCtrl() {
  230. Text = "Example Menu Item 5";
  231. new GuiMenuItemCtrl() {
  232. Text = "Example Menu Item 6";
  233. Command = "echo(\"Example Menu Item 6!\");";
  234. };
  235. };
  236. };
  237. };
  238. new GuiMenuItemCtrl() {
  239. Text = "Move";
  240. new GuiMenuItemCtrl() {
  241. Text = "Nudge Up";
  242. Command = "GuiEditor.moveSelection(0,-1);";
  243. Accelerator = "Up";
  244. };
  245. new GuiMenuItemCtrl() {
  246. Text = "Nudge Down";
  247. Command = "GuiEditor.moveSelection(0,1);";
  248. Accelerator = "Down";
  249. };
  250. new GuiMenuItemCtrl() {
  251. Text = "Nudge Left";
  252. Command = "GuiEditor.moveSelection(-1,0);";
  253. Accelerator = "Left";
  254. };
  255. new GuiMenuItemCtrl() {
  256. Text = "Nudge Right";
  257. Command = "GuiEditor.moveSelection(1,0);";
  258. Accelerator = "Right";
  259. };
  260. };
  261. };
  262. };
  263. };
  264. //--- OBJECT WRITE END ---