Changes between Version 4 and Version 5 of UI
- Timestamp:
- 06/03/13 15:33:44 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UI
v4 v5 57 57 {{{#!lua 58 58 -- some_name.style.lua 59 ["default"]= {59 default = { 60 60 text_color = { 0.3, 0.3, 0.3, 1.0 }, 61 61 background_color = { 0.0, 0.0, 0.0, 1.0 }, 62 62 background_image = "source:path/name/file.png", 63 background_stretch = 64 } 63 background_stretch = false, 65 64 66 -- class definition 67 [".redclass"] = { 68 text_color = { 1.0, 0.3, 0.3, 1.0 }, 69 } 65 -- class definition 66 redclass = { 67 text_color = { 1.0, 0.3, 0.3, 1.0 }, 68 border_color = SILVER, -- constant colors 69 -- modifier definition, within type 70 [":hover"] = { 71 border_color = RED, -- constant colors 72 } 73 }, 70 74 71 -- type definition 72 ["button"] = { 73 border_color = SILVER, -- constant colors 74 } 75 76 -- modifier definition, with class 77 ["button:hover"] = { 78 border_color = RED, -- constant colors 79 } 80 81 -- id definition (no need for additional because unique! 82 ["#mybutton"] = { 83 border_width = 3, 75 -- id definition (no need for additional because unique! 76 mybutton = { 77 border_width = 3, 78 } 84 79 } 85 80