AssetImageLayersHeaderRow.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. function AssetImageLayersHeaderRow::onAdd(%this)
  2. {
  3. %this.imageBox = new GuiControl()
  4. {
  5. HorizSizing="width";
  6. VertSizing="height";
  7. Position="20 0";
  8. Extent="200 25";
  9. Text = "Layer Image";
  10. vAlign = "Bottom";
  11. };
  12. ThemeManager.setProfile(%this.imageBox, "LabelProfile");
  13. %this.add(%this.imageBox);
  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.colorBox = new GuiControl()
  39. {
  40. HorizSizing="width";
  41. VertSizing="height";
  42. Position="392 0";
  43. Extent="164 25";
  44. Text = "Color";
  45. Align = "Center";
  46. vAlign = "Bottom";
  47. };
  48. ThemeManager.setProfile(%this.colorBox, "LabelProfile");
  49. %this.add(%this.colorBox);
  50. }