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 |
---------------------------
--Guild Rank Icon Picker --
---------------------------
ZO_GUILD_RANK_RANK_ICON_PICKER_PICK_GAMEPAD_SIZE = 75
ZO_GUILD_RANK_RANK_ICON_PICKER_PICK_GAMEPAD_OFFSET = 30
ZO_GUILD_RANK_RANK_ICON_PICKER_ICON_GAMEPAD_SIZE = 64
ZO_GUILD_RANK_RANK_ICON_PICKER_ICON_GAMEPAD_OFFSET = 5
end
local templateData =
{
gridListClass = ZO_GridScrollList_Gamepad ,
entryTemplate = "ZO_GuildRank_RankIconPickerIcon_Gamepad_Control" ,
entryWidth = ZO_GUILD_RANK_RANK_ICON_PICKER_PICK_GAMEPAD_SIZE ,
entryHeight = ZO_GUILD_RANK_RANK_ICON_PICKER_PICK_GAMEPAD_SIZE ,
entryPaddingX = ZO_GUILD_RANK_RANK_ICON_PICKER_PICK_GAMEPAD_OFFSET ,
entryPaddingY = ZO_GUILD_RANK_RANK_ICON_PICKER_PICK_GAMEPAD_OFFSET ,
}
end
self . rankIconPickerGridList : SetOnSelectedDataChangedCallback ( function ( ... ) self : OnRankIconPickerGridSelectionChanged ( ... ) end )
end
function ZO_GuildRankIconPicker_Gamepad : OnRankIconPickerGridSelectionChanged ( oldSelectedData , selectedData )
-- Deselect previous tile
if oldSelectedData and oldSelectedData . dataEntry then
oldSelectedData . isSelected = false
end
-- Select newly selected tile.
if selectedData and selectedData . dataEntry then
selectedData . isSelected = true
end
end
end
end
end
end
end
end |