1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 |
ZO_POWER_BAR_GRADIENT_COLORS =
{
[ POWERTYPE_HEALTH ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_START , POWERTYPE_HEALTH ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_END , POWERTYPE_HEALTH ) ) , } ,
[ POWERTYPE_MAGICKA ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_START , POWERTYPE_MAGICKA ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_END , POWERTYPE_MAGICKA ) ) , } ,
[ POWERTYPE_WEREWOLF ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_START , POWERTYPE_WEREWOLF ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_END , POWERTYPE_WEREWOLF ) ) , } ,
[ POWERTYPE_STAMINA ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_START , POWERTYPE_STAMINA ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_END , POWERTYPE_STAMINA ) ) , } ,
[ POWERTYPE_MOUNT_STAMINA ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_START , POWERTYPE_MOUNT_STAMINA ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_POWER_END , POWERTYPE_MOUNT_STAMINA ) ) , } ,
}
ZO_CAST_STATE_BEGIN = 0
ZO_CAST_STATE_BEGIN_CHARGE_UP = 1
ZO_CAST_STATE_BEGIN_MAGIC = 2
ZO_CAST_STATE_BEGIN_MELEE = 3
ZO_CAST_STATE_COMPLETE = 4
ZO_CAST_STATE_INTERRUPT = 5
ZO_CAST_BAR_COLORS =
{
[ ZO_CAST_STATE_BEGIN ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_START , CAST_BAR_DEFAULT ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_END , CAST_BAR_DEFAULT ) ) , } ,
[ ZO_CAST_STATE_BEGIN_CHARGE_UP ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_START , CAST_BAR_DEFAULT ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_END , CAST_BAR_DEFAULT ) ) , } ,
[ ZO_CAST_STATE_BEGIN_MAGIC ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_START , CAST_BAR_BEGIN_MAGIC ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_END , CAST_BAR_END_MAGIC ) ) , } ,
[ ZO_CAST_STATE_BEGIN_MELEE ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_START , CAST_BAR_BEGIN_MELEE ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_CAST_BAR_END , CAST_BAR_END_MELEE ) ) , } ,
}
ZO_XP_BAR_GLOW_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_XP_GLOW ) )
ZO_XP_BAR_GRADIENT_COLORS = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_XP_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_XP_END ) ) }
ZO_VP_BAR_GLOW_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_VP_GLOW ) )
ZO_VP_BAR_GRADIENT_COLORS = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_VP_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_VP_END ) ) }
ZO_SKILL_XP_BAR_GLOW_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_SKILL_XP_GLOW ) )
ZO_SKILL_XP_BAR_GRADIENT_COLORS = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_SKILL_XP_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_SKILL_XP_END ) ) }
ZO_AVA_RANK_GRADIENT_COLORS = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_AVA_RANK_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_AVA_RANK_END ) ) }
ZO_CP_BAR_GRADIENT_COLORS = {
[ CHAMPION_DISCIPLINE_TYPE_WORLD ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_STAMINA_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_STAMINA_END ) ) } ,
[ CHAMPION_DISCIPLINE_TYPE_COMBAT ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_MAGICKA_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_MAGICKA_END ) ) } ,
[ CHAMPION_DISCIPLINE_TYPE_CONDITIONING ] = { ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_HEALTH_START ) ) , ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_HEALTH_END ) ) } ,
}
ZO_CP_BAR_GLOW_COLORS = {
[ CHAMPION_DISCIPLINE_TYPE_WORLD ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_STAMINA_END ) ) ,
[ CHAMPION_DISCIPLINE_TYPE_COMBAT ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_MAGICKA_END ) ) ,
[ CHAMPION_DISCIPLINE_TYPE_CONDITIONING ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_CP_HEALTH_END ) ) ,
}
end
end
local ZO_COLOR_DEF_FOR_CON = { }
local colorDef = ZO_COLOR_DEF_FOR_CON [ con ]
if not colorDef then
ZO_COLOR_DEF_FOR_CON [ con ] = colorDef
end
return colorDef
end
local NO_ALLIANCE_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ALLIANCE , ALLIANCE_NONE ) )
local COLORED_ALLIANCE_NAMES = { } -- will be filled out as these names are asked for
local COLORED_BATTLEGROUND_ALLIANCE_NAMES = { } -- will be filled out as these names are asked for
local COLORED_BATTLEGROUND_YOUR_TEAM_TEXT = { }
local COLORED_BATTLEGROUND_ENEMY_TEAM_TEXT = { }
local ALLIANCE_COLORS =
{
[ ALLIANCE_ALDMERI_DOMINION ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ALLIANCE , ALLIANCE_ALDMERI_DOMINION ) ) ,
[ ALLIANCE_EBONHEART_PACT ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ALLIANCE , ALLIANCE_EBONHEART_PACT ) ) ,
[ ALLIANCE_DAGGERFALL_COVENANT ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ALLIANCE , ALLIANCE_DAGGERFALL_COVENANT ) ) ,
}
local BATTLEGROUND_ALLIANCE_COLORS =
{
[ BATTLEGROUND_ALLIANCE_FIRE_DRAKES ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_BATTLEGROUND_ALLIANCE , BATTLEGROUND_ALLIANCE_FIRE_DRAKES ) ) ,
[ BATTLEGROUND_ALLIANCE_PIT_DAEMONS ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_BATTLEGROUND_ALLIANCE , BATTLEGROUND_ALLIANCE_PIT_DAEMONS ) ) ,
[ BATTLEGROUND_ALLIANCE_STORM_LORDS ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_BATTLEGROUND_ALLIANCE , BATTLEGROUND_ALLIANCE_STORM_LORDS ) ) ,
}
return ALLIANCE_COLORS [ alliance ] or NO_ALLIANCE_COLOR
end
return BATTLEGROUND_ALLIANCE_COLORS [ battlegroundAlliance ] or NO_ALLIANCE_COLOR
end
local coloredName = COLORED_ALLIANCE_NAMES [ alliance ]
return COLORED_ALLIANCE_NAMES [ alliance ]
end
return coloredName
end
local coloredName = COLORED_BATTLEGROUND_ALLIANCE_NAMES [ battlegroundAlliance ]
if coloredName == nil then
COLORED_BATTLEGROUND_ALLIANCE_NAMES [ battlegroundAlliance ] = color : Colorize ( GetBattlegroundAllianceName ( battlegroundAlliance ) )
return COLORED_BATTLEGROUND_ALLIANCE_NAMES [ battlegroundAlliance ]
end
return coloredName
end
local coloredName = COLORED_BATTLEGROUND_YOUR_TEAM_TEXT [ battlegroundAlliance ]
if coloredName == nil then
COLORED_BATTLEGROUND_YOUR_TEAM_TEXT [ battlegroundAlliance ] = color : Colorize ( GetString ( SI_BATTLEGROUND_YOUR_TEAM ) )
return COLORED_BATTLEGROUND_YOUR_TEAM_TEXT [ battlegroundAlliance ]
end
return coloredName
end
local coloredName = COLORED_BATTLEGROUND_ENEMY_TEAM_TEXT [ battlegroundAlliance ]
if coloredName == nil then
COLORED_BATTLEGROUND_ENEMY_TEAM_TEXT [ battlegroundAlliance ] = color : Colorize ( GetString ( SI_BATTLEGROUND_ENEMY_TEAM ) )
return COLORED_BATTLEGROUND_ENEMY_TEAM_TEXT [ battlegroundAlliance ]
end
return coloredName
end
do
local CLASS_COLORS
if CLASS_COLORS then return end
CLASS_COLORS = { }
end
end
end
return CLASS_COLORS [ classId ] or NO_CLASS_COLOR
end
end
ZO_BUFF_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_BUFF_TYPE , BUFF_TYPE_COLOR_BUFF ) )
ZO_DEBUFF_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_BUFF_TYPE , BUFF_TYPE_COLOR_DEBUFF ) )
if effectType == BUFF_EFFECT_TYPE_DEBUFF then
return ZO_DEBUFF_COLOR
end
return ZO_BUFF_COLOR
end
if baseValue > currentValue then
return STAT_LOWER_COLOR
elseif currentValue > baseValue then
return STAT_HIGHER_COLOR
end
return defaultOverride or ZO_DEFAULT_ENABLED_COLOR
end
do
local itemColors = { }
local INCREASE_AMOUNT = 0.15
if not itemColors [ quality ] then
r , g , b = zo_saturate ( r + INCREASE_AMOUNT ) , zo_saturate ( g + INCREASE_AMOUNT ) , zo_saturate ( b + INCREASE_AMOUNT )
end
return itemColors [ quality ]
end
end
do
local itemColors = { }
if not itemColors [ displayQuality ] then
itemColors [ displayQuality ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ITEM_QUALITY_COLORS , displayQuality ) )
end
return itemColors [ displayQuality ]
end
end
do
local itemColors = { }
local REDUCE_AMOUNT = 0.25
if not itemColors [ quality ] then
r , g , b = zo_saturate ( r - REDUCE_AMOUNT ) , zo_saturate ( g - REDUCE_AMOUNT ) , zo_saturate ( b - REDUCE_AMOUNT )
end
return itemColors [ quality ]
end
end
do
local antiquityQualityColors = { }
if not antiquityQualityColors [ quality ] then
antiquityQualityColors [ quality ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ANTIQUITY_QUALITY_COLORS , quality ) )
end
return antiquityQualityColors [ quality ]
end
end
do
local antiquityQualityColors = { }
local REDUCE_AMOUNT = 0.25
if not antiquityQualityColors [ quality ] then
r , g , b = zo_saturate ( r - REDUCE_AMOUNT ) , zo_saturate ( g - REDUCE_AMOUNT ) , zo_saturate ( b - REDUCE_AMOUNT )
end
return antiquityQualityColors [ quality ]
end
end
ZO_CHARGE_GRADIENT_COLORS = {
ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ITEM_TOOLTIP , ITEM_TOOLTIP_COLOR_CHARGE_BAR_GRADIENT_START ) ) ,
ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ITEM_TOOLTIP , ITEM_TOOLTIP_COLOR_CHARGE_BAR_GRADIENT_END ) ) ,
}
ZO_CONDITION_GRADIENT_COLORS = {
ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ITEM_TOOLTIP , ITEM_TOOLTIP_COLOR_CONDITION_BAR_GRADIENT_START ) ) ,
ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ITEM_TOOLTIP , ITEM_TOOLTIP_COLOR_CONDITION_BAR_GRADIENT_END ) ) ,
}
ZO_BATTLEGROUND_ALLIANCE_STATUS_BAR_GRADIENTS =
{
[ BATTLEGROUND_ALLIANCE_PIT_DAEMONS ] = { ZO_ColorDef : New ( 0.161 , 0.306 , 0.047 ) , ZO_ColorDef : New ( 0.345 , 0.592 , 0.149 ) } ,
[ BATTLEGROUND_ALLIANCE_STORM_LORDS ] = { ZO_ColorDef : New ( 0.314 , 0.125 , 0.416 ) , ZO_ColorDef : New ( 0.475 , 0.286 , 0.576 ) } ,
[ BATTLEGROUND_ALLIANCE_FIRE_DRAKES ] = { ZO_ColorDef : New ( 0.451 , 0.153 , 0.035 ) , ZO_ColorDef : New ( 0.757 , 0.341 , 0.176 ) } ,
}
-- Lua doesn't need entries for every status effect color, this is just a quick lookup for the commonly used ones.
-- Don't use the table directly, use the API that checks for nil entries.
local statusEffectColors =
{
[ STATUS_EFFECT_TYPE_POISON ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STATUS_EFFECT , STATUS_EFFECT_TYPE_POISON ) ) ,
[ STATUS_EFFECT_TYPE_DISEASE ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STATUS_EFFECT , STATUS_EFFECT_TYPE_DISEASE ) ) ,
[ STATUS_EFFECT_TYPE_WOUND ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STATUS_EFFECT , STATUS_EFFECT_TYPE_WOUND ) ) ,
[ STATUS_EFFECT_TYPE_MAGIC ] = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STATUS_EFFECT , STATUS_EFFECT_TYPE_MAGIC ) ) ,
}
return statusEffectColors [ statusEffectType ] or defaultStatusEffectColor
end
ZO_HIGHLIGHT_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_HIGHLIGHT ) )
ZO_NORMAL_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_NORMAL ) )
ZO_DISABLED_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_DISABLED ) )
ZO_SELECTED_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_SELECTED ) )
ZO_HINT_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_HINT ) )
ZO_CONTRAST_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_CONTRAST ) )
ZO_SECOND_CONTRAST_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_SECOND_CONTRAST ) )
ZO_GAME_REPRESENTATIVE_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_GAME_REPRESENTATIVE ) )
ZO_BLADE_HIGHLIGHT_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_BLADE_HIGHLIGHT ) )
ZO_BLADE_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_BLADE ) )
ZO_DEFAULT_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_DEFAULT_TEXT ) )
ZO_SUCCEEDED_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_SUCCEEDED ) )
STAT_LOWER_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STAT_VALUE , STAT_VALUE_COLOR_LOWER ) )
STAT_HIGHER_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STAT_VALUE , STAT_VALUE_COLOR_HIGHER ) )
STAT_BATTLE_LEVEL_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_STAT_VALUE , STAT_VALUE_COLOR_BATTLE_LEVELED ) )
ZO_TOOLTIP_DEFAULT_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_TOOLTIP_DEFAULT ) )
ZO_TOOLTIP_INSTRUCTIONAL_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_TOOLTIP_INSTRUCTIONAL ) )
ZO_ERROR_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_GENERAL , INTERFACE_GENERAL_COLOR_ERROR ) )
ZO_BLACK = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_GENERAL , INTERFACE_GENERAL_COLOR_BLACK ) )
PURCHASED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_PURCHASED ) )
PURCHASED_UNSELECTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_PURCHASED_UNSELECTED ) ) --Gamepad only dimmer white
UNPURCHASED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_UNPURCHASED ) )
LOCKED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_PROGRESSION , PROGRESSION_COLOR_LOCKED ) )
ZO_CURRENCY_HIGHLIGHT_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_CURRENCY_HIGHLIGHT ) )
ZO_PERSONALITY_EMOTES_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_PERSONALITY_EMOTES ) )
ZO_BATTLEGROUND_WINNER_TEXT = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_BATTLEGROUND_WINNER ) )
ZO_TRADE_BOP_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_ITEM_TOOLTIP , ITEM_TOOLTIP_COLOR_TRADE_BOP ) )
ZO_SKILLS_ADVISOR_ADVISED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_SKILLS_ADVISOR , SKILLS_ADVISOR_COLOR_ADVISED ) )
ZO_SKILLS_ADVISOR_NOT_ADVISED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_SKILLS_ADVISOR , SKILLS_ADVISOR_COLOR_NOT_ADVISED ) )
ZO_SILHOUETTE_ICON_SAMPLE_PROCESSING_WEIGHT_TABLE =
{
[ TEX_SAMPLE_PROCESSING_RGB ] = 0.3 ,
[ TEX_SAMPLE_PROCESSING_ALPHA_AS_RGB ] = 1 ,
}
ZO_SILHOUETTE_ICON_ATTRIBUTES =
{
iconColor = ZO_SILHOUETTE_ICON_COLOR ,
iconDesaturation = 1 ,
iconSamplingTable = ZO_SILHOUETTE_ICON_SAMPLE_PROCESSING_WEIGHT_TABLE ,
}
ZO_NO_SILHOUETTE_ICON_SAMPLE_PROCESSING_WEIGHT_TABLE =
{
[ TEX_SAMPLE_PROCESSING_RGB ] = 1 ,
[ TEX_SAMPLE_PROCESSING_ALPHA_AS_RGB ] = 0 ,
}
ZO_NO_SILHOUETTE_ICON_ATTRIBUTES =
{
iconColor = ZO_NO_SILHOUETTE_ICON_COLOR ,
iconDesaturation = 0 ,
iconSamplingTable = ZO_NO_SILHOUETTE_ICON_SAMPLE_PROCESSING_WEIGHT_TABLE ,
}
local attributes = isSilhouette and ZO_SILHOUETTE_ICON_ATTRIBUTES or ZO_NO_SILHOUETTE_ICON_ATTRIBUTES
end
if attributes . iconColor then
end
if attributes . iconDesaturation then
end
if attributes . iconSamplingTable then
end
end
end
--------------------------------------
--Gamepad Colors
--------------------------------------
ZO_GAMEPAD_ICON_SELECTED_ALPHA = 1
ZO_GAMEPAD_ICON_UNSELECTED_ALPHA = 0.4
ZO_GAMEPAD_TEXT_SELECTED_ALPHA = 1
ZO_GAMEPAD_TEXT_UNSELECTED_ALPHA = 0.4
ZO_GAMEPAD_SELECTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_SELECTED ) )
ZO_GAMEPAD_UNSELECTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_DISABLED ) )
ZO_GAMEPAD_DISABLED_SELECTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_NORMAL ) )
ZO_GAMEPAD_DISABLED_UNSELECTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_GAMEPAD_TERTIARY ) )
------------------------------------
-- Market Colors
------------------------------------
ZO_MARKET_DIMMED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_DIMMED ) )
ZO_MARKET_SELECTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_SELECTED ) )
ZO_MARKET_PRODUCT_ON_SALE_DIMMED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_ON_SALE_DIMMED ) )
ZO_MARKET_PRODUCT_ON_SALE_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_ON_SALE ) )
ZO_MARKET_PRODUCT_NEW_DIMMED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_NEW_DIMMED ) )
ZO_MARKET_PRODUCT_NEW_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_NEW ) )
ZO_MARKET_PRODUCT_BACKGROUND_BRIGHTNESS_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_PRODUCT_BACKGROUND_BRIGHTNESS ) )
ZO_MARKET_PRODUCT_PURCHASED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_PURCHASED ) )
ZO_COLOR_UNIVERSAL_ITEM = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_UNIVERSAL_ITEM ) )
ZO_COLOR_UNIVERSAL_ITEM_SELECTED = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_UNIVERSAL_ITEM_SELECTED ) )
ZO_MARKET_PRODUCT_ESO_PLUS_DIMMED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_ESO_PLUS_DIMMED ) )
ZO_MARKET_PRODUCT_ESO_PLUS_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_ESO_PLUS ) )
ZO_MARKET_PRODUCT_ESO_PLUS_PURCHASED_DIMMED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_ESO_PLUS_PURCHASED_DIMMED ) )
ZO_MARKET_PRODUCT_ESO_PLUS_PURCHASED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MARKET_COLORS , MARKET_COLORS_ESO_PLUS_PURCHASED ) )
------------------------------------
-- Gamepad Component State Colors
------------------------------------
ZO_GAMEPAD_COMPONENT_COLORS =
{
SELECTED_INACTIVE = ZO_MARKET_DIMMED_COLOR , -- Nobel Grey
UNSELECTED_INACTIVE = ZO_GAMEPAD_UNSELECTED_COLOR , -- Grey
SELECTED_ACTIVE = ZO_MARKET_SELECTED_COLOR , -- White
UNSELECTED_ACTIVE = ZO_MARKET_DIMMED_COLOR , -- Nobel Grey
SELECTED_ACTIVE_DISABLED = ZO_NORMAL_TEXT ,
UNSELECTED_ACTIVE_DISABLED = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_TEXT_COLORS , INTERFACE_TEXT_COLOR_GAMEPAD_CATEGORY_HEADER ) ) ,
}
------------------------------------
-- Map Pin Colors
------------------------------------
ZO_MAP_PIN_NORMAL_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MAP_PIN , MAP_PIN_COLOR_NORMAL ) )
ZO_MAP_PIN_ASSISTED_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MAP_PIN , MAP_PIN_COLOR_ASSISTED ) )
ZO_MAP_PIN_DIG_SITE_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MAP_PIN , MAP_PIN_COLOR_DIG_SITE ) )
ZO_MAP_PIN_TRACKED_DIG_SITE_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MAP_PIN , MAP_PIN_COLOR_TRACKED_DIG_SITE ) )
ZO_MAP_PIN_DIG_SITE_BORDER_COLOR = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_MAP_PIN , MAP_PIN_COLOR_DIG_SITE_BORDER ) ) |