example.gui 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. fonts {
  2. name: "default"
  3. font: "/example/assets/default.font"
  4. }
  5. textures {
  6. name: "example"
  7. texture: "/example/assets/textures/example.atlas"
  8. }
  9. nodes {
  10. position {
  11. x: 350.0
  12. y: 100.0
  13. }
  14. size {
  15. x: 600.0
  16. y: 100.0
  17. }
  18. type: TYPE_BOX
  19. id: "bg"
  20. inherit_alpha: true
  21. size_mode: SIZE_MODE_AUTO
  22. }
  23. nodes {
  24. position {
  25. x: 100.0
  26. y: 100.0
  27. }
  28. scale {
  29. x: 0.7
  30. y: 0.7
  31. }
  32. color {
  33. x: 0.2
  34. y: 0.302
  35. z: 0.702
  36. }
  37. type: TYPE_BOX
  38. texture: "example/larger"
  39. id: "box"
  40. inherit_alpha: true
  41. size_mode: SIZE_MODE_AUTO
  42. }
  43. nodes {
  44. position {
  45. x: 150.0
  46. y: 100.0
  47. }
  48. scale {
  49. x: 0.4
  50. y: 0.4
  51. }
  52. size {
  53. x: 200.0
  54. y: 100.0
  55. }
  56. color {
  57. x: 0.2
  58. y: 0.302
  59. z: 0.702
  60. }
  61. type: TYPE_TEXT
  62. text: "Click to lock in mouse. ESC to unlock.\n"
  63. "Then move mouse around to rotate camera.\n"
  64. "Use WSAD keys to move around."
  65. font: "default"
  66. id: "text"
  67. pivot: PIVOT_W
  68. inherit_alpha: true
  69. }
  70. material: "/builtins/materials/gui.material"
  71. adjust_reference: ADJUST_REFERENCE_PARENT