mirror of
https://github.com/TheRealFayz/SHPlates.git
synced 2026-11-16 04:20:34 +00:00
Settings window - New layout with tabs down the side, the portrait, and a resize grip (right-click the grip to reset the size) - Tabs: General, one tab for each template (Grey Tank, Grey DPS, Neon Tank, Neon DPS), Casts/Tanks/Notes, and Share - Each template tab has the Designer pinned at the top and its settings scrolling underneath - Clicking a piece in the Designer scrolls to that piece's settings and briefly highlights the section Per-template settings - Every setting is now saved per template, so tank and DPS plates can look and behave completely differently - Existing settings are copied into all four templates on first load, so nothing is lost - Old share strings still import and apply to every template Designer - Drag pieces on a sample plate: name, level, health text, spell name, cast bar, spell icon, raid icon, elite star, debuffs, class icon, mob note, threat line, aggro holder name, threat wheel, and tanked icon - Arrow buttons nudge the selected piece, and right-click puts a piece back where it started - The threat line and the aggro holder name now move separately - The sample shows the full threat line so it's easier to center - Boxes hide when their piece is turned off or has no text Size and Style - Width, height, and text size for enemy plates, friendly plates, and cast bars - Debuff icon size, font, health text alignment, aggro holder name size - Custom colors for health text, names, cast bars, and the target box - Back to Theme Sizes button Cast bars - Cast bars work without SuperWoW, read from the combat log with cast times for over 1,200 spells (table from ShaguTweaks, MIT License) - Unknown spells learn their cast time once they land - Option to hide cast bars - Neon's spell icon backing is now its own piece Debuffs - Your own debuffs are always shown first - Hide debuffs option and a debuff timers toggle Plates - Option to hide unit levels - "Show critters" is now "Hide critters", and without SuperWoW critters are learned by name - The elite star can be moved Other addons - ShaguTweaks nameplate tweaks are switched off while SHPlates runs (can be turned off on the General tab) Removed - Separate Threat line section and its setting - Short Debuffs and Debuff Tracker checkboxes (replaced by Hide debuffs) README rewritten with an Installation section and a client mod comparison table
157 lines
4.0 KiB
Lua
157 lines
4.0 KiB
Lua
-------------------------------------------------------------------------------
|
|
-- SHPlates: Default Artwork / Style
|
|
-- Every theme style is merged on top of this table, so a theme only needs to
|
|
-- list what it changes.
|
|
-------------------------------------------------------------------------------
|
|
|
|
local theme = {}
|
|
local defaultArtPath = "Interface\\AddOns\\SHPlates\\Media"
|
|
local font = defaultArtPath .. "\\LiberationSans-Regular.ttf"
|
|
local nameplate_verticalOffset = -5
|
|
local castBar_verticalOffset = -6
|
|
|
|
theme.hitbox = { width = 149, height = 37, }
|
|
|
|
theme.healthborder = {
|
|
texture = defaultArtPath .. "\\RegularBorder",
|
|
glowtexture = defaultArtPath .. "\\Highlight",
|
|
elitetexture = defaultArtPath .. "\\EliteBorder",
|
|
width = 128, height = 64,
|
|
x = 0, y = nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.threatborder = {
|
|
texture = defaultArtPath .. "\\RegularThreat",
|
|
elitetexture = defaultArtPath .. "\\EliteThreat",
|
|
width = 128, height = 64,
|
|
x = 0, y = nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.castborder = {
|
|
texture = defaultArtPath .. "\\CastStoppable",
|
|
width = 128, height = 64,
|
|
x = 0, y = castBar_verticalOffset + nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.castnostop = {
|
|
texture = defaultArtPath .. "\\CastNotStoppable",
|
|
width = 128, height = 64,
|
|
x = 0, y = castBar_verticalOffset + nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.name = {
|
|
typeface = font, size = 9,
|
|
width = 88, height = 10,
|
|
x = 0, y = 6 + nameplate_verticalOffset,
|
|
align = "LEFT", anchor = "LEFT", vertical = "BOTTOM",
|
|
shadow = true, flags = "NONE",
|
|
}
|
|
|
|
theme.level = {
|
|
typeface = font, size = 9,
|
|
width = 25, height = 10,
|
|
x = 36, y = 6 + nameplate_verticalOffset,
|
|
align = "RIGHT", anchor = "CENTER", vertical = "BOTTOM",
|
|
shadow = true, flags = "NONE",
|
|
}
|
|
|
|
theme.healthbar = {
|
|
texture = defaultArtPath .. "\\Statusbar",
|
|
height = 12, width = 101,
|
|
x = 0, y = 15 + nameplate_verticalOffset,
|
|
anchor = "CENTER", orientation = "HORIZONTAL",
|
|
}
|
|
|
|
theme.castbar = {
|
|
texture = defaultArtPath .. "\\Statusbar",
|
|
height = 12, width = 99,
|
|
x = 0, y = -8 + castBar_verticalOffset + nameplate_verticalOffset,
|
|
anchor = "CENTER", orientation = "HORIZONTAL",
|
|
}
|
|
|
|
theme.specialText = {
|
|
typeface = font, size = 9,
|
|
width = 93, height = 10,
|
|
x = 0, y = 16 + nameplate_verticalOffset,
|
|
align = "RIGHT", anchor = "CENTER", vertical = "BOTTOM",
|
|
shadow = true, flags = "NONE",
|
|
}
|
|
|
|
theme.specialText2 = {
|
|
typeface = font, size = 8,
|
|
width = 100, height = 10,
|
|
x = 1, y = castBar_verticalOffset - 8 + nameplate_verticalOffset,
|
|
align = "LEFT", anchor = "CENTER", vertical = "BOTTOM",
|
|
shadow = true, flags = "NONE",
|
|
}
|
|
|
|
theme.specialArt = {
|
|
width = 24, height = 24,
|
|
x = -5, y = 15 + nameplate_verticalOffset,
|
|
anchor = "TOP",
|
|
}
|
|
|
|
theme.spellicon = {
|
|
width = 18, height = 18,
|
|
x = 62, y = -8 + castBar_verticalOffset + nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.raidicon = {
|
|
width = 20, height = 20,
|
|
x = -35, y = 12 + nameplate_verticalOffset,
|
|
anchor = "TOP",
|
|
}
|
|
|
|
theme.dangerskull = {
|
|
width = 14, height = 14,
|
|
x = 44, y = 8 + nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
-- Backing behind the spell icon (themes whose cast bar art had a frame for
|
|
-- the icon set a texture, so the frame moves and hides with the icon)
|
|
theme.spellbacking = {
|
|
width = 32, height = 32,
|
|
x = 0, y = 0,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
-- Separate elite star (themes that cut it out of their border art set a
|
|
-- texture; without one the star stays part of the elite border)
|
|
theme.eliteicon = {
|
|
width = 16, height = 16,
|
|
x = -51, y = 16,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.frame = {
|
|
width = 101, height = 45,
|
|
x = 0, y = 0 + nameplate_verticalOffset,
|
|
anchor = "CENTER",
|
|
}
|
|
|
|
theme.threatcolor = {
|
|
LOW = { r = .75, g = 1, b = 0, a = 1, },
|
|
MEDIUM = { r = 1, g = 1, b = 0, a = 1, },
|
|
HIGH = { r = 1, g = 0, b = 0, a = 1, },
|
|
}
|
|
|
|
theme.options = {
|
|
showLevel = true,
|
|
showName = true,
|
|
showSpecialText = false,
|
|
showSpecialText2 = false,
|
|
showSpecialArt = false,
|
|
showDangerSkull = true,
|
|
showSpellIcon = true,
|
|
showNostopSpell = true,
|
|
showAggroGlow = true,
|
|
}
|
|
|
|
SHPlates.defaultTheme = theme
|