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 |
ZO_GAMEPAD_FOOTER_CONTROLS =
{
DATA1 = 1 ,
DATA1HEADER = 2 ,
DATA1LOADINGICON = 3 ,
DATA2 = 4 ,
DATA2HEADER = 5 ,
DATA2LOADINGICON = 6 ,
DATA3 = 7 ,
DATA3HEADER = 8 ,
DATA3LOADINGICON = 9 ,
}
local EMPTY_TABLE = { }
-- Alias the control names to make the code less verbose and more readable.
local DATA1 = ZO_GAMEPAD_FOOTER_CONTROLS . DATA1
local DATA1HEADER = ZO_GAMEPAD_FOOTER_CONTROLS . DATA1HEADER
local DATA1LOADINGICON = ZO_GAMEPAD_FOOTER_CONTROLS . DATA1LOADINGICON
local DATA2 = ZO_GAMEPAD_FOOTER_CONTROLS . DATA2
local DATA2HEADER = ZO_GAMEPAD_FOOTER_CONTROLS . DATA2HEADER
local DATA2LOADINGICON = ZO_GAMEPAD_FOOTER_CONTROLS . DATA2LOADINGICON
local DATA3 = ZO_GAMEPAD_FOOTER_CONTROLS . DATA3
local DATA3HEADER = ZO_GAMEPAD_FOOTER_CONTROLS . DATA3HEADER
local DATA3LOADINGICON = ZO_GAMEPAD_FOOTER_CONTROLS . DATA3LOADINGICON
return object
end
{
}
end
end
local function ProcessData ( control , textData , anchorToBaselineControl , anchorToBaselineOffsetX , overrideColor )
return false
end
end
else
end
if overrideColor then
end
if anchorToBaselineControl then
else
-- This is to make sure there is no gap when a control is missing.
end
end
end
ProcessData ( controls [ DATA1HEADER ] , data . data1HeaderText , controls [ DATA1 ] , - ZO_GAMEPAD_DEFAULT_HEADER_DATA_PADDING - loadingIcon1Offset , data . data1HeaderColor )
ProcessData ( controls [ DATA2 ] , data . data2Text , controls [ DATA1HEADER ] , - ZO_GAMEPAD_CONTENT_INSET_X , data . data2Color )
ProcessData ( controls [ DATA2HEADER ] , data . data2HeaderText , controls [ DATA2 ] , - ZO_GAMEPAD_DEFAULT_HEADER_DATA_PADDING - loadingIcon2Offset , data . data2HeaderColor )
ProcessData ( controls [ DATA3 ] , data . data3Text , controls [ DATA2HEADER ] , - ZO_GAMEPAD_CONTENT_INSET_X , data . data3Color )
ProcessData ( controls [ DATA3HEADER ] , data . data3HeaderText , controls [ DATA3 ] , - ZO_GAMEPAD_DEFAULT_HEADER_DATA_PADDING - loadingIcon3Offset , data . data3HeaderColor )
end
end
end |