|
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 |
---------------------------------------------------------------- ZO_GroupFinder_AdditionalFilters_Keyboard--------------------------------------------------------------end self.primaryOptionDropdownSingleSelectControl = self.control:GetNamedChild("PrimaryFilterSelectorSingleSelect") self.primaryOptionDropdownSingleSelect = ZO_ComboBox_ObjectFromContainer(self.primaryOptionDropdownSingleSelectControl) SetGroupFinderFilterSecondaryOptionByIndex(item.value, self.secondaryOptionDropdown:IsItemSelected(item)) return true end return false end { } end if buttonControl == newButton.m_clickedButton then if newButton ~= previousButton then if key == DUNGEON_DIFFICULTY_NORMAL then else end end end end else end end -- Set up check button labels ZO_CheckButton_SetLabelText(self.championCheckbox, zo_strformat(SI_GROUP_FINDER_CHAMPION_REQUIRED_TEXT, ZO_GetChampionIconMarkupString(ZO_GROUP_LISTING_CHAMPION_ICON_SIZE))) end ZO_CheckButton_SetToggleFunction(self.voipCheckbox, function(button, checked) SetGroupFinderFilterRequiresVOIP(checked) end) ZO_CheckButton_SetLabelText(self.inviteCodeCheckbox, GetString(SI_GROUP_FINDER_FILTERS_INVITE_CODE)) ZO_CheckButton_SetToggleFunction(self.inviteCodeCheckbox, function(button, checked) SetGroupFinderFilterRequiresInviteCode(checked) end) ZO_CheckButton_SetLabelText(self.autoAcceptCheckbox, GetString(SI_GROUP_FINDER_FILTERS_AUTO_ACCEPT)) ZO_CheckButton_SetToggleFunction(self.autoAcceptCheckbox, function(button, checked) SetGroupFinderFilterAutoAcceptRequests(checked) end) ZO_CheckButton_SetToggleFunction(self.ownRoleOnlyCheckbox, function(button, checked) SetGroupFinderFilterEnforceRoles(checked) end)endfunction ZO_GroupFinder_AdditionalFilters_Keyboard:OnSecondarySelection(dropdown, selectedDataName, selectedData) ZO_GroupFinder_AdditionalFilters_Shared.OnSecondarySelection(self, dropdown, selectedDataName, selectedData) local IGNORE_CALLBACK = true if isSet then end endend { canQueue = true, title = { }, end, end, buttons = { { keybind = "DIALOG_NEGATIVE", end, }, { keybind = "DIALOG_PRIMARY", end, }, { keybind = "DIALOG_RESET", noReleaseOnClick = true, -- TODO GroupFinder: Check to see if filters are already default return true end, end, }, }, })end local IGNORE_CALLBACK = true local secondaryOptionAnchorParent local categoryIndex = category + 1 -- Category Enum starts at 0 so index will always be one greater than value. local showDifficultyAsPrimaryOption = category == GROUP_FINDER_CATEGORY_DUNGEON or category == GROUP_FINDER_CATEGORY_ARENA or category == GROUP_FINDER_CATEGORY_TRIAL local showSingleSelectAsPrimaryOption = category == GROUP_FINDER_CATEGORY_PVP local dontShowPrimaryOrSecondary = category == GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON or category == GROUP_FINDER_CATEGORY_ADVENTURE_ZONE or category == GROUP_FINDER_CATEGORY_CUSTOM -- TODO GroupFinder: Consider using a single dropdown that switches between multi-select and single select self.primaryOptionDropdownControl:SetHidden(showDifficultyAsPrimaryOption or showSingleSelectAsPrimaryOption or dontShowPrimaryOrSecondary) self.primaryOptionDropdownSingleSelectControl:SetHidden(not showSingleSelectAsPrimaryOption or dontShowPrimaryOrSecondary) if showDifficultyAsPrimaryOption then for i = 1, totalDifficulties do if i <= availableDifficulties then if isSet then local IGNORE_CALLBACK = true end else end end else end if showDifficultyAsPrimaryOption then else endend--Overridden from baseend----------------------------------- Global .xml---------------------------------endendend |