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 |
ZO_CHROMA_UNDERLAY_ALPHA = . 5
return object
end
for alliance = ALLIANCE_NONE , ALLIANCE_DAGGERFALL_COVENANT do
local allianceColor
if alliance == ALLIANCE_NONE then
allianceColor = FALLBACK_CANVAS_COLOR
else
end
local NO_ANIMATION_TIMER = nil
{
[ CHROMA_DEVICE_TYPE_KEYBOARD ] = ZO_ChromaCStyleCustomSingleColorEffect : New ( CHROMA_DEVICE_TYPE_KEYBOARD , ZO_CHROMA_EFFECT_DRAW_LEVEL . FALLBACK , CHROMA_CUSTOM_EFFECT_GRID_STYLE_FULL , NO_ANIMATION_TIMER , allianceColor , CHROMA_BLEND_MODE_NORMAL ) ,
[ CHROMA_DEVICE_TYPE_KEYPAD ] = ZO_ChromaCStyleCustomSingleColorEffect : New ( CHROMA_DEVICE_TYPE_KEYPAD , ZO_CHROMA_EFFECT_DRAW_LEVEL . FALLBACK , CHROMA_CUSTOM_EFFECT_GRID_STYLE_FULL , NO_ANIMATION_TIMER , allianceColor , CHROMA_BLEND_MODE_NORMAL ) ,
[ CHROMA_DEVICE_TYPE_MOUSE ] = ZO_ChromaCStyleCustomSingleColorEffect : New ( CHROMA_DEVICE_TYPE_MOUSE , ZO_CHROMA_EFFECT_DRAW_LEVEL . FALLBACK , CHROMA_CUSTOM_EFFECT_GRID_STYLE_FULL , NO_ANIMATION_TIMER , allianceColor , CHROMA_BLEND_MODE_NORMAL ) ,
[ CHROMA_DEVICE_TYPE_MOUSEPAD ] = ZO_ChromaCStyleCustomSingleColorEffect : New ( CHROMA_DEVICE_TYPE_MOUSEPAD , ZO_CHROMA_EFFECT_DRAW_LEVEL . FALLBACK , CHROMA_CUSTOM_EFFECT_GRID_STYLE_FULL , NO_ANIMATION_TIMER , allianceColor , CHROMA_BLEND_MODE_NORMAL ) ,
[ CHROMA_DEVICE_TYPE_HEADSET ] = ZO_ChromaPredefinedEffect : New ( CHROMA_DEVICE_TYPE_HEADSET , ZO_CHROMA_EFFECT_DRAW_LEVEL . FALLBACK , ChromaCreateHeadsetStaticEffect , r , g , b ) ,
}
end
end
--To be overriden
end
local previousEffect = previousActiveAllianceEffects [ deviceType ]
end
local newEffect = newActiveAllianceEffects [ deviceType ]
end
end
end
function ZO_RzChroma_Effects : SetVisualDataForKeybindAction ( actionName , animationTimerData , color , blendMode )
self . keybindActionVisualData [ actionName ] = { animationTimerData = animationTimerData , color = color , blendMode = blendMode }
end
if row and column then
if visualData then
local effect = ZO_ChromaCStyleCustomSingleColorFadingEffect : New ( CHROMA_DEVICE_TYPE_KEYBOARD , ZO_CHROMA_EFFECT_DRAW_LEVEL . ACTIVE_KEY , CHROMA_CUSTOM_EFFECT_GRID_STYLE_STATIC , visualData . animationTimerData , visualData . color , visualData . blendMode )
end
end
end
if effect then
end
end
local guiKey , mod1 , mod2 , mod3 , mod4 = GetActionBindingInfo ( layerIndex , categoryIndex , actionIndex , bindingIndex )
if guiKey ~= KEY_INVALID then
-- Get the first non-gamepad, non-choord key
if chromaKey ~= CHROMA_KEYBOARD_KEY_INVALID then
end
end
end
end
end |