AssetImageFrameHeaderRow.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. function AssetImageFrameHeaderRow::onAdd(%this)
  2. {
  3. %this.nameBox = new GuiControl()
  4. {
  5. HorizSizing="width";
  6. VertSizing="height";
  7. Position="20 0";
  8. Extent="200 25";
  9. Text = "Cell Name";
  10. vAlign = "Bottom";
  11. };
  12. ThemeManager.setProfile(%this.nameBox, "LabelProfile");
  13. %this.add(%this.nameBox);
  14. %this.offsetXBox = new GuiControl()
  15. {
  16. HorizSizing="width";
  17. VertSizing="height";
  18. Position="224 0";
  19. Extent="80 25";
  20. Text = "X";
  21. Align = "Center";
  22. vAlign = "Bottom";
  23. };
  24. ThemeManager.setProfile(%this.offsetXBox, "LabelProfile");
  25. %this.add(%this.offsetXBox);
  26. %this.offsetYBox = new GuiControl()
  27. {
  28. HorizSizing="width";
  29. VertSizing="height";
  30. Position="308 0";
  31. Extent="80 25";
  32. Text = "Y";
  33. Align = "Center";
  34. vAlign = "Bottom";
  35. };
  36. ThemeManager.setProfile(%this.offsetYBox, "LabelProfile");
  37. %this.add(%this.offsetYBox);
  38. %this.widthBox = new GuiControl()
  39. {
  40. HorizSizing="width";
  41. VertSizing="height";
  42. Position="392 0";
  43. Extent="80 25";
  44. Text = "Width";
  45. Align = "Center";
  46. vAlign = "Bottom";
  47. };
  48. ThemeManager.setProfile(%this.widthBox, "LabelProfile");
  49. %this.add(%this.widthBox);
  50. %this.heightBox = new GuiControl()
  51. {
  52. HorizSizing="width";
  53. VertSizing="height";
  54. Position="476 0";
  55. Extent="80 25";
  56. Text = "Height";
  57. Align = "Center";
  58. vAlign = "Bottom";
  59. };
  60. ThemeManager.setProfile(%this.heightBox, "LabelProfile");
  61. %this.add(%this.heightBox);
  62. }