creator.tscript 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. function UI::loadModuleCreatorClasses(%this)
  2. {
  3. AssetBrowser.beginCreatorGroup( "BaseUI", "GuiEditor" );
  4. AssetBrowser.addCreatorClass("GuiContainer", "UINavigation Container", "UINavContainer" );
  5. AssetBrowser.addCreatorClass("GuiContainer", "Menu List", "GUIMenuList" );
  6. AssetBrowser.addCreatorClass("GuiStackControl", "Stack Menu List", "GuiStackMenuList" );
  7. AssetBrowser.addCreatorClass("GuiContainer", "Menu Input Button Handler", "MenuInputBtnHandler" );
  8. AssetBrowser.addCreatorClass("GuiIconButtonCtrl", "Menu Input Button", "MenuInputBtn" );
  9. AssetBrowser.endCreatorGroup();
  10. }
  11. function ObjectBuilderGui::buildUINavContainer(%this)
  12. {
  13. %ctrl = new GuiContainer()
  14. {
  15. superClass = "UINavigation";
  16. };
  17. return %ctrl;
  18. }
  19. function ObjectBuilderGui::buildGUIMenuList(%this)
  20. {
  21. %ctrl = new GuiContainer()
  22. {
  23. superClass = "MenuList";
  24. };
  25. return %ctrl;
  26. }
  27. function ObjectBuilderGui::builduiStackMenuList(%this)
  28. {
  29. %ctrl = new GuiStackControl()
  30. {
  31. superClass = "MenuList";
  32. };
  33. return %ctrl;
  34. }
  35. function ObjectBuilderGui::buildMenuInputBtnHandler(%this)
  36. {
  37. %ctrl = new GuiContainer()
  38. {
  39. class = "MenuInputButtonContainer";
  40. };
  41. return %ctrl;
  42. }
  43. function ObjectBuilderGui::buildMenuInputBtn(%this)
  44. {
  45. %ctrl = new GuiIconButtonCtrl()
  46. {
  47. class = "MenuInputButton";
  48. };
  49. return %ctrl;
  50. }