menuButtons.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //-----------------------------------------------------------------------------
  2. // Add buttons to the MainMenu after all other scripts have been exec'ed.
  3. //-----------------------------------------------------------------------------
  4. if (isObject(MainMenuGui))
  5. {
  6. %testBtn = new GuiButtonCtrl() {
  7. text = "Input Event Monitor";
  8. groupNum = "-1";
  9. buttonType = "PushButton";
  10. useMouseEvents = "0";
  11. position = "0 0";
  12. extent = "200 40";
  13. minExtent = "8 8";
  14. horizSizing = "right";
  15. vertSizing = "bottom";
  16. profile = "GuiBlankMenuButtonProfile";
  17. visible = "1";
  18. active = "1";
  19. command = "Canvas.pushDialog(InputMonitorDlg);";
  20. tooltipProfile = "GuiToolTipProfile";
  21. isContainer = "0";
  22. canSave = "0";
  23. canSaveDynamicFields = "0";
  24. };
  25. if (!isObject(MMTestContainer))
  26. {
  27. new GuiDynamicCtrlArrayControl(MMTestContainer) {
  28. colCount = "0";
  29. colSize = "200";
  30. rowCount = "0";
  31. rowSize = "40";
  32. rowSpacing = "2";
  33. colSpacing = "0";
  34. frozen = "0";
  35. autoCellSize = "0";
  36. fillRowFirst = "1";
  37. dynamicSize = "1";
  38. padding = "0 0 0 0";
  39. position = "0 0";
  40. extent = "200 40";
  41. minExtent = "8 2";
  42. horizSizing = "right";
  43. vertSizing = "bottom";
  44. profile = "GuiDefaultProfile";
  45. visible = "1";
  46. active = "1";
  47. tooltipProfile = "GuiToolTipProfile";
  48. hovertime = "1000";
  49. isContainer = "1";
  50. canSave = "0";
  51. canSaveDynamicFields = "0";
  52. };
  53. MainMenuGui.add(MMTestContainer);
  54. }
  55. MMTestContainer.add(%testBtn);
  56. }