Changes between Version 4 and Version 5 of UI


Ignore:
Timestamp:
06/03/13 15:33:44 (12 years ago)
Author:
epyon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UI

    v4 v5  
    5757{{{#!lua
    5858-- some_name.style.lua
    59 ["default"] = {
     59default = {
    6060  text_color         = { 0.3, 0.3, 0.3, 1.0 },
    6161  background_color   = { 0.0, 0.0, 0.0, 1.0 },
    6262  background_image   = "source:path/name/file.png",
    63   background_stretch =
    64 }
     63  background_stretch = false,
    6564
    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  },
    7074
    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  }
    8479}
    8580