button_map.egg 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <Comment> {
  2. "egg-texture-cards -o button_map.egg -p 768,192 -g -1.0,1.0,-0.25,0.25 -wm clamp ready.png click.png hover.png disabled.png"
  3. }
  4. <Texture> ready {
  5. ready.png
  6. <Scalar> wrap { clamp }
  7. }
  8. <Texture> hover {
  9. hover.png
  10. <Scalar> wrap { clamp }
  11. }
  12. <Texture> disabled {
  13. disabled.png
  14. <Scalar> wrap { clamp }
  15. }
  16. <Texture> click {
  17. click.png
  18. <Scalar> wrap { clamp }
  19. }
  20. <Group> {
  21. <Switch> { 1 }
  22. <Scalar> fps { 2 }
  23. <VertexPool> vpool {
  24. <Vertex> 0 {
  25. -1 0.25 0
  26. <UV> { 0 1 }
  27. }
  28. <Vertex> 1 {
  29. -1 -0.25 0
  30. <UV> { 0 0 }
  31. }
  32. <Vertex> 2 {
  33. 1 -0.25 0
  34. <UV> { 1 0 }
  35. }
  36. <Vertex> 3 {
  37. 1 0.25 0
  38. <UV> { 1 1 }
  39. }
  40. <Vertex> 4 {
  41. -1 0.25 0
  42. <UV> { 0 1 }
  43. }
  44. <Vertex> 5 {
  45. -1 -0.25 0
  46. <UV> { 0 0 }
  47. }
  48. <Vertex> 6 {
  49. 1 -0.25 0
  50. <UV> { 1 0 }
  51. }
  52. <Vertex> 7 {
  53. 1 0.25 0
  54. <UV> { 1 1 }
  55. }
  56. <Vertex> 8 {
  57. -1 0.25 0
  58. <UV> { 0 1 }
  59. }
  60. <Vertex> 9 {
  61. -1 -0.25 0
  62. <UV> { 0 0 }
  63. }
  64. <Vertex> 10 {
  65. 1 -0.25 0
  66. <UV> { 1 0 }
  67. }
  68. <Vertex> 11 {
  69. 1 0.25 0
  70. <UV> { 1 1 }
  71. }
  72. <Vertex> 12 {
  73. -1 0.25 0
  74. <UV> { 0 1 }
  75. }
  76. <Vertex> 13 {
  77. -1 -0.25 0
  78. <UV> { 0 0 }
  79. }
  80. <Vertex> 14 {
  81. 1 -0.25 0
  82. <UV> { 1 0 }
  83. }
  84. <Vertex> 15 {
  85. 1 0.25 0
  86. <UV> { 1 1 }
  87. }
  88. }
  89. <Group> ready {
  90. <Polygon> {
  91. <RGBA> { 1 1 1 1 }
  92. <TRef> { ready }
  93. <VertexRef> { 0 1 2 3 <Ref> { vpool } }
  94. }
  95. }
  96. <Group> click {
  97. <Polygon> {
  98. <RGBA> { 1 1 1 1 }
  99. <TRef> { click }
  100. <VertexRef> { 4 5 6 7 <Ref> { vpool } }
  101. }
  102. }
  103. <Group> hover {
  104. <Polygon> {
  105. <RGBA> { 1 1 1 1 }
  106. <TRef> { hover }
  107. <VertexRef> { 8 9 10 11 <Ref> { vpool } }
  108. }
  109. }
  110. <Group> disabled {
  111. <Polygon> {
  112. <RGBA> { 1 1 1 1 }
  113. <TRef> { disabled }
  114. <VertexRef> { 12 13 14 15 <Ref> { vpool } }
  115. }
  116. }
  117. }