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 |
ZO_MAP_ANTIQUITY_KEYBOARD_ENTRY_HEIGHT = 60
ZO_MAP_ANTIQUITY_KEYBOARD_CATEGORY_HEIGHT = 32
local ANTIQUITY_ENTRY = 1
local ANTIQUITY_HEADER = 2
end
end
local antiquityData = entryData . antiquityData
entryControl . antiquityData = antiquityData
if not entryControl . progressIconMetaPool then
end
local previousIcon
for goalIndex = 1 , totalNumGoals do
if numGoalsAchieved >= goalIndex then
else
end
if previousIcon then
else
end
previousIcon = iconControl
end
end
entryControl . antiquityData = nil
end
local NO_HIDE_CALLBACK = nil
local NO_SELECT_SOUND = nil
ZO_ScrollList_AddDataType ( self . list , ANTIQUITY_ENTRY , "ZO_AntiquityMapEntry_Keyboard" , ZO_MAP_ANTIQUITY_KEYBOARD_ENTRY_HEIGHT , SetupAntiquity , NO_HIDE_CALLBACK , NO_SELECT_SOUND , ResetAntiquity )
end
ZO_ScrollList_AddDataType ( self . list , ANTIQUITY_HEADER , "ZO_AntiquityMapHeader_Keyboard" , ZO_MAP_ANTIQUITY_KEYBOARD_CATEGORY_HEIGHT , SetupHeader )
end
end
local lastAntiquityCategory
if lastAntiquityCategory ~= antiquityEntry . antiquityCategory then
local dataEntry = ZO_ScrollList_CreateDataEntry ( ANTIQUITY_HEADER , { text = GetString ( ZO_MAP_ANTIQUITY_CATEGORY_TO_HEADER_STRING [ antiquityEntry . antiquityCategory ] ) } )
lastAntiquityCategory = antiquityEntry . antiquityCategory
end
end
end
return
end
-- primary action is to track the selected antiquity and secondry is to scry
-- If you left-click on an antiquity that isn't in progress, show the right-click
-- context menu so it's easy to see what options there are
if not antiquityIsTracked then
end
elseif button == MOUSE_BUTTON_INDEX_RIGHT or ( button == MOUSE_BUTTON_INDEX_LEFT and not antiquityIsInProgress ) then
local canTrackAntiquity = antiquityIsInProgress and not antiquityIsTracked
if canTrackAntiquity then
end )
end
end )
end
if antiquityIsInProgress then
ZO_Dialogs_ShowDialog ( "CONFIRM_ABANDON_ANTIQUITY_SCRYING_PROGRESS" , { antiquityId = antiquityData : GetId ( ) , } )
end )
end
end
end
end
end
-- Global XML functions
if upInside then
end
end
end
end
end |