Here's another example of what could go into Custom.lua, based on
changing parts of the 'name' element.
[CODE]
local ThemeName = "Neon/|cFFFF4400Damage"
local Theme = TidyPlatesThemeList[ThemeName]
local Style = Theme["Default"]
Style.name.y = 0
[/CODE]
The first three lines are basically just grabbing a reference to the
existing data table. Because the references are defined as 'local',
we can use simple names like, 'Theme'.
Neon uses the 'multi-style' feature of Tidy Plates, which is like
allowing multiple themes within the same file. A special function
controls which one gets shown. As a consequence, there's that extra
line of code, which grabs that 'Style' table. With single-style
themes (Grey and Quatre), you don't need to do the 'Style' thing, you
can edit the 'Theme' itself.
If you want to change both themes at the same time, you could do
something like this:
[CODE]
local ThemeName = "Neon/|cFFFF4400Damage"
local Theme = TidyPlatesThemeList[ThemeName]
local Style = Theme["Default"]
Style.name.y = 0
ThemeName = "Neon/|cFF3782D1Tank"
Theme = TidyPlatesThemeList[ThemeName]
Style = Theme["Default"]
Style.name.y = 0
[/CODE]
Why this works: We've defined local variables, which we fill with
references to the actual theme tables. After making the changes to
the 'Damage' theme, we can reuse those variables to get the next
reference for the 'Tank' theme.
You could also overwrite all properties of an element by doing this:
[CODE]
local font = "Interface\\Addons\\CustomFonts\\Font.ttf"
local ThemeName = "Neon/|cFFFF4400Damage"
local Theme = TidyPlatesThemeList[ThemeName]
local Style = Theme["Default"]
Style.name = {
typeface = font,
size = 12,
width = 200,
height = 11,
x = 0,
y = 1,
align = "CENTER",
anchor = "CENTER",
vertical = "CENTER",
shadow = true,
}
[/CODE]
The "Style.name = {}" means that we're creating a new array of data
for 'name', and replacing the old table. You can see how I've defined
the 'font' variable, which I've used within the 'typeface' definition.