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 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
ZO_GROUP_FINDER_ROLES =
{
LFG_ROLE_TANK ,
LFG_ROLE_HEAL ,
LFG_ROLE_DPS ,
LFG_ROLE_INVALID ,
}
-- TODO GroupFinder: Re-evaluate whether or not this table needs LFG_ROLE_INVALID
-- once roles are implemented in Create/Edit
ZO_GROUP_FINDER_MODES =
{
OVERVIEW = 1 ,
SEARCH = 2 ,
CREATE_EDIT = 3 ,
MANAGE = 4 ,
}
ZO_GROUP_LISTING_CHAMPION_ICON_SIZE = 22
local GROUP_ROLES_TO_ICONS =
{
[ LFG_ROLE_INVALID ] =
{
filled = "EsoUI/Art/LFG/LFG_any_down_no_glow_64.dds" ,
unfilled = "EsoUI/Art/LFG/LFG_any_disabled_64.dds" ,
} ,
[ LFG_ROLE_DPS ] =
{
filled = "EsoUI/Art/LFG/LFG_dps_down_no_glow_64.dds" ,
unfilled = "EsoUI/Art/LFG/LFG_dps_disabled_64.dds" ,
} ,
[ LFG_ROLE_TANK ] =
{
filled = "EsoUI/Art/LFG/LFG_tank_down_no_glow_64.dds" ,
unfilled = "EsoUI/Art/LFG/LFG_tank_disabled_64.dds" ,
} ,
[ LFG_ROLE_HEAL ] =
{
filled = "EsoUI/Art/LFG/LFG_healer_down_no_glow_64.dds" ,
unfilled = "EsoUI/Art/LFG/LFG_healer_disabled_64.dds" ,
} ,
}
local groupFinderIsNewApplication = false
groupFinderIsNewApplication = isNew
end
return HasGroupListingForUserType ( GROUP_FINDER_GROUP_LISTING_USER_TYPE_CREATED_GROUP_LISTING ) and groupFinderIsNewApplication
end
--------------------------
-- ZO_GroupFinder_Shared
--------------------------
end
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_FINDER_STATUS_UPDATED , function ( _ , ... ) self : OnGroupFinderStatusUpdated ( ... ) end )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_FINDER_CREATE_GROUP_LISTING_RESULT , function ( _ , ... ) self : OnGroupListingRequestCreateResult ( ... ) end )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_FINDER_UPDATE_GROUP_LISTING_RESULT , function ( _ , ... ) self : OnGroupListingRequestEditResult ( ... ) end )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_FINDER_GROUP_LISTING_ATTAINED_ROLES_CHANGED , function ( _ , ... ) self : OnGroupListingAttainedRolesChanged ( ... ) end )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_FINDER_REMOVE_GROUP_LISTING_RESULT , function ( _ , ... ) self : OnGroupListingRemoved ( ... ) end )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_FINDER_APPLICATION_RECEIVED , function ( ) ZO_SetGroupFinderIsNewApplication ( true ) end )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_VETERAN_DIFFICULTY_CHANGED , OnGroupVeteranDifficultyChanged )
EVENT_MANAGER : RegisterForEvent ( self : GetSystemName ( ) , EVENT_GROUP_VETERAN_DIFFICULTY_CHANGED , OnGroupVeteranDifficultyChanged )
end
-- TODO GroupFinder: OnShowing, OnShown, OnHiding, OnHidden handlers if necessary
end
-- TODO GroupFinder: Any behavior needed that can be shared between keyboard and gamepad
end
-- To be overridden
end
-- To be overridden
end
-- To be overridden
end
-- To be overridden
end
-- To be overridden
end
-- To be overridden
end
end
-- To be overridden
end
function ZO_GroupFinder_Shared . SetUpGroupListingFromData ( control , controlPool , data , horizontalPadding )
horizontalPadding = horizontalPadding or 0
local isListingJoinable = joinabilityResult == GROUP_FINDER_ACTION_RESULT_SUCCESS
or joinabilityResult == GROUP_FINDER_ACTION_RESULT_FAILED_ENTITLEMENT_REQUIREMENT
or joinabilityResult == GROUP_FINDER_ACTION_RESULT_FAILED_QUEUED
or joinabilityResult == nil
local titleColor
if isListingJoinable then
titleColor = ZO_SELECTED_TEXT
else
titleColor = ZO_DISABLED_TEXT
end
if statusIndicatorIcon then
end
if category ~= GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON and category ~= GROUP_FINDER_CATEGORY_CUSTOM then
local firstText = category == GROUP_FINDER_CATEGORY_PVP and data : GetPrimaryOptionText ( ) or data : GetSecondaryOptionText ( )
local secondText = category == GROUP_FINDER_CATEGORY_PVP and data : GetSecondaryOptionText ( ) or data : GetPrimaryOptionText ( )
else
end
else
end
if isListingJoinable then
local previousControl = nil
if attainedCount > 0 then
local iconTexture = GROUP_ROLES_TO_ICONS [ roleType ] . filled
if not previousControl then
else
end
previousControl = roleControl
end
end
else
if joinabilityResult == GROUP_FINDER_ACTION_RESULT_FAILED_APPLICATION_DECLINED then
elseif joinabilityResult == GROUP_FINDER_ACTION_RESULT_FAILED_ALREADY_JOINED_GROUP then
elseif joinabilityResult == GROUP_FINDER_ACTION_RESULT_FAILED_ROLE_REQUIREMENT then
else
end
end
end
end
end
local categoryData = { }
for index = GROUP_FINDER_CATEGORY_ITERATION_BEGIN , GROUP_FINDER_CATEGORY_ITERATION_END do
end
return categoryData
end
--------------------------------------------------------------
-- ZO_GroupFinder_CreateEditGroupListing_Shared
--------------------------------------------------------------
end
SetGroupFinderUserTypeGroupListingSecondaryOptionDefault ( GROUP_FINDER_GROUP_LISTING_USER_TYPE_GROUP_LISTING_DRAFT )
end
local IS_EDITABLE = true
else
end
if currentUserType == GROUP_FINDER_GROUP_LISTING_USER_TYPE_CREATED_GROUP_LISTING then
end
end
end
local titleViolationsString = ZO_GroupFinder_GetGroupTitleViolationString ( self . groupTitleEditControl : GetText ( ) )
return titleViolationsString
end
if self . userTypeData : GetUserType ( ) == GROUP_FINDER_GROUP_LISTING_USER_TYPE_CREATED_GROUP_LISTING then
else
end
end
end
function ZO_GroupFinder_CreateEditGroupListing_Shared : OnCategorySelection ( comboBox , selectedDataName , selectedData , selectionChanged , oldData )
-- This function should not be able to be called when editing so the userTypeData should be fine here
end
function ZO_GroupFinder_CreateEditGroupListing_Shared : OnPrimarySelection ( dropdown , selectedDataName , selectedData , selectionChanged , oldData )
if category == GROUP_FINDER_CATEGORY_DUNGEON or category == GROUP_FINDER_CATEGORY_ARENA or category == GROUP_FINDER_CATEGORY_TRIAL then
end
end
end
function ZO_GroupFinder_CreateEditGroupListing_Shared : OnSecondarySelection ( dropdown , selectedDataName , selectedData , selectionChanged , oldData )
end
end
function ZO_GroupFinder_CreateEditGroupListing_Shared : OnSizeSelection ( comboBox , selectedDataName , selectedData , selectionChanged , oldData )
-- This function should not be able to be called when editing so the userTypeData should be fine here
end
function ZO_GroupFinder_CreateEditGroupListing_Shared : OnPlaystyleSelection ( comboBox , selectedDataName , selectedData , selectionChanged , oldData )
end
end
end
local startIndex = GROUP_FINDER_CATEGORY_ITERATION_BEGIN
local endIndex = GROUP_FINDER_CATEGORY_ITERATION_END
local textPrefix = "SI_GROUPFINDERCATEGORY"
{
}
end
ZO_GroupFinder_PopulateEnumDropdown ( self . categoryDropdown , startIndex , endIndex , textPrefix , OnCategorySelection , data )
end
end
end
ZO_GroupFinder_PopulateUserTypePrimaryOptionsDropdown ( self . primaryOptionDropdown , self . userTypeData , OnPrimarySelection )
end
end
end
ZO_GroupFinder_PopulateUserTypeSecondaryOptionsDropdown ( self . secondaryOptionDropdown , self . userTypeData , OnSecondarySelection )
end
end
local textPrefix = "SI_GROUPFINDERGROUPSIZE"
{
}
end
ZO_GroupFinder_PopulateFlagDropdown ( self . sizeDropdown , startIndex , endIndex , textPrefix , OnSizeSelection , data , defaultText )
end
end
end
end
local startIndex = GROUP_FINDER_PLAYSTYLE_ITERATION_BEGIN
local endIndex = GROUP_FINDER_PLAYSTYLE_ITERATION_END
local textPrefix = "SI_GROUPFINDERPLAYSTYLE"
{
}
end
ZO_GroupFinder_PopulateFlagDropdown ( self . playstyleDropdown , startIndex , endIndex , textPrefix , OnPlaystyleSelection , data , defaultText )
end
end
end
end
if championPoints == 0 then
self . championPointsEditBoxControl : SetDefaultText ( GetString ( SI_GROUP_FINDER_FILTERS_CHAMPION_POINTS_DEFAULT_TEXT ) )
else
end
end
end
end
end
ZO_CheckButton_SetCheckState ( self . inviteCodeCheckbox , self . userTypeData : DoesGroupRequireInviteCode ( ) )
end
end
if inviteCode == 0 then
self . inviteCodeEditBoxControl : SetDefaultText ( GetString ( SI_GROUP_FINDER_CREATE_INVITE_CODE_DEFAULT_TEXT ) )
else
end
end
end
ZO_CheckButton_SetCheckState ( self . autoAcceptCheckbox , self . userTypeData : DoesGroupAutoAcceptRequests ( ) )
end
end
end
end
do
local ROLE_ICON_DIMENSION = 32
local roleText
if roleType == LFG_ROLE_INVALID then
else
end
return string . format ( "%s %s" , zo_iconFormat ( GROUP_ROLES_TO_ICONS [ roleType ] . filled , ROLE_ICON_DIMENSION , ROLE_ICON_DIMENSION ) , roleText )
end
end
--------------------------------------------------------------
-- ZO_GroupFinder_AdditionalFilters_Shared
--------------------------------------------------------------
ZO_GroupFinder_AdditionalFilters_Shared . Refresh = ZO_GroupFinder_AdditionalFilters_Shared : MUST_IMPLEMENT ( )
if category == GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON or category == GROUP_FINDER_CATEGORY_ZONE or category == GROUP_FINDER_CATEGORY_CUSTOM then
else
end
end
function ZO_GroupFinder_AdditionalFilters_Shared : OnCategorySelection ( comboBox , selectedDataName , selectedData , selectionChanged , oldData )
local IS_CANCELABLE = true
end
function ZO_GroupFinder_AdditionalFilters_Shared : OnPrimarySelectionSingleSelect ( dropdown , selectedDataName , selectedData )
end
function ZO_GroupFinder_AdditionalFilters_Shared : OnPrimarySelection ( dropdown , selectedDataName , selectedData )
end
function ZO_GroupFinder_AdditionalFilters_Shared : OnSecondarySelection ( dropdown , selectedDataName , selectedData )
SetGroupFinderFilterSecondaryOptionByIndex ( selectedData . value , dropdown : IsItemSelected ( selectedData ) )
end
function ZO_GroupFinder_AdditionalFilters_Shared : OnSizeSelection ( comboBox , selectedDataName , selectedData , selectionChanged , oldData )
else
end
end
function ZO_GroupFinder_AdditionalFilters_Shared : OnPlaystyleSelection ( comboBox , selectedDataName , selectedData , selectionChanged , oldData )
else
end
end
local startIndex = GROUP_FINDER_CATEGORY_ITERATION_BEGIN
local endIndex = GROUP_FINDER_CATEGORY_ITERATION_END
local textPrefix = "SI_GROUPFINDERCATEGORY"
{
}
end
ZO_GroupFinder_PopulateEnumDropdown ( self . categoryDropdown , startIndex , endIndex , textPrefix , OnCategorySelection , data )
end
end
if self . primaryOptionDropdownSingleSelect and not ( category == GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON or category == GROUP_FINDER_CATEGORY_ZONE or category == GROUP_FINDER_CATEGORY_CUSTOM ) then
local defaultText = ""
end
end
ZO_GroupFinder_PopulateOptionsDropdown ( self . primaryOptionDropdownSingleSelect , GetNumPrimaryOptions , GetGroupFinderFilterPrimaryOptionByIndex , OnPrimarySelection , defaultText )
end
end
if self . primaryOptionDropdown and ( category == GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON or category == GROUP_FINDER_CATEGORY_ZONE or category == GROUP_FINDER_CATEGORY_CUSTOM ) then
end
ZO_GroupFinder_PopulateFiltersPrimaryOptionsDropdown ( self . primaryOptionDropdown , OnPrimarySelection )
end
end
end
ZO_GroupFinder_PopulateFiltersSecondaryOptionsDropdown ( self . secondaryOptionDropdown , OnSecondarySelection )
if self . secondaryOptionDropdown : IsInstanceOf ( ZO_MultiSelection_ComboBox_Gamepad ) and self . secondaryOptionDropdown . dropDownData then
end
end
end
local startIndex = GROUP_FINDER_SIZE_ITERATION_BEGIN
local textPrefix = "SI_GROUPFINDERGROUPSIZE"
{
}
end
ZO_GroupFinder_PopulateFlagDropdown ( self . sizeDropdown , startIndex , endIndex , textPrefix , OnSizeSelection , data , defaultText , multiSelectionText )
end
end
local startIndex = GROUP_FINDER_PLAYSTYLE_ITERATION_BEGIN
local endIndex = GROUP_FINDER_PLAYSTYLE_ITERATION_END
local textPrefix = "SI_GROUPFINDERPLAYSTYLE"
{
}
end
ZO_GroupFinder_PopulateFlagDropdown ( self . playstyleDropdown , startIndex , endIndex , textPrefix , OnPlaystyleSelection , data , defaultText , multiSelectionText )
end
end
if championPoints == 0 then
self . championTextBoxControl : SetDefaultText ( GetString ( SI_GROUP_FINDER_FILTERS_CHAMPION_POINTS_DEFAULT_TEXT ) )
else
end
end
end
end
end
end
end
end
end
end
end
end
end
---------------------------------
-- Global Helper Functions
---------------------------------
end
local HIDE_UNVIOLATED_RULES = true
return ZO_ValidNameInstructions_GetViolationString ( groupTitleText , violations , HIDE_UNVIOLATED_RULES )
end
elseif statusResult == GROUP_FINDER_ACTION_RESULT_FAILED_ACCOUNT_TYPE_BLOCKS_CREATION then
elseif userTypeData then
return false , GetString ( "SI_GROUPFINDERACTIONRESULT" , GROUP_FINDER_ACTION_RESULT_FAILED_APPLICATION_PENDING )
end
end
local createEditErrors = { }
end
if groupTitleEditControl then
if # violations > 0 then
end
end
end
end
if # createEditErrors > 0 then
return false , errorString
end
end
return true
end
return activityFinderStatus == ACTIVITY_FINDER_STATUS_QUEUED or activityFinderStatus == ACTIVITY_FINDER_STATUS_READY_CHECK
end
function ZO_GroupFinder_PopulateDropdown ( dropDownObject , iterBegin , iterEnd , getStringFunction , selectionFunction , isCurrentValueFunction , extraValues , omittedIndex , defaultText , iteratorFunction , multiSelectionText )
-- Order matters; we must set these text options before we start selecting entries in a multiselect dropdown.
if multiSelectionText then
end
end
local selectedEntryIndex
local currentIndex = 1
local isGamepadMultiSelectComboBox = dropDownObject : IsInstanceOf ( ZO_MultiSelection_ComboBox_Gamepad )
if isGamepadMultiSelectComboBox then
else
end
if isCurrentValue then
if multiSelectionText then
if isGamepadMultiSelectComboBox then
else
end
else
selectedEntryIndex = currentIndex
end
end
currentIndex = currentIndex + 1
end
end
end
if multiSelectionText and isGamepadMultiSelectComboBox then
end
else
end
end
if extraValues then
end
end
local IGNORE_CALLBACK = true
if selectedEntryIndex then
elseif multiSelectionText then
else
end
end
function ZO_GroupFinder_PopulateEnumDropdown ( dropDownObject , iterBegin , iterEnd , stringBase , selectionFunction , data , omittedIndex , defaultText )
end
end
ZO_GroupFinder_PopulateDropdown ( dropDownObject , iterBegin , iterEnd , getStringFunction , selectionFunction , isCurrentValueFunction , data . extraValues , omittedIndex , defaultText )
end
function ZO_GroupFinder_PopulateFlagDropdown ( dropDownObject , iterBegin , iterEnd , stringBase , selectionFunction , data , defaultText , multiSelectionText )
end
if multiSelectionText then
else
end
end
end
end
local NO_OMITTED_INDEX = nil
ZO_GroupFinder_PopulateDropdown ( dropDownObject , iterBegin , iterEnd , GetStringFunction , selectionFunction , IsCurrentValueFunction , data . extraValues , NO_OMITTED_INDEX , defaultText , IterationFunction , multiSelectionText )
end
function ZO_GroupFinder_PopulateOptionsDropdown ( dropDownObject , maxNum , getInfoFunction , selectionFunction , defaultText , multiSelectionText )
end
return isSet
end
local NO_EXTRA_VALUES = nil
local NO_OMITTED_INDEX = nil
local NO_ITERATION_FUNCTION = nil
ZO_GroupFinder_PopulateDropdown ( dropDownObject , 1 , maxNum , GetStringFunction , selectionFunction , IsCurrentValueFunction , NO_EXTRA_VALUES , NO_OMITTED_INDEX , defaultText , NO_ITERATION_FUNCTION , multiSelectionText )
end
function ZO_GroupFinder_PopulateUserTypePrimaryOptionsDropdown ( primaryOptionsDropdown , userTypeData , OnPrimarySelectionFunction )
local defaultText = ""
end
end
end
ZO_GroupFinder_PopulateOptionsDropdown ( primaryOptionsDropdown , GetNumPrimaryOptions , GetPrimaryOptionByIndex , OnPrimarySelectionFunction , defaultText )
end
function ZO_GroupFinder_PopulateFiltersPrimaryOptionsDropdown ( primaryOptionsDropdown , OnPrimarySelectionFunction )
local defaultText = ""
local multiSelectionText
if category == GROUP_FINDER_CATEGORY_DUNGEON or category == GROUP_FINDER_CATEGORY_TRIAL or category == GROUP_FINDER_CATEGORY_ARENA then
multiSelectionText = SI_GROUP_FINDER_FILTERS_DIFFICULTY_DROPDOWN_TEXT
elseif category == GROUP_FINDER_CATEGORY_ZONE then
multiSelectionText = SI_GROUP_FINDER_FILTERS_ACTIVITY_DROPDOWN_TEXT
elseif category == GROUP_FINDER_CATEGORY_PVP then
-- TODO GroupFinder: Implement this along with implementing the single-select PvP filter dropdown.
elseif category == GROUP_FINDER_CATEGORY_CUSTOM then
-- This state should disable the dropdown so no value is necessary.
end
end
ZO_GroupFinder_PopulateOptionsDropdown ( primaryOptionsDropdown , GetNumPrimaryOptions , GetGroupFinderFilterPrimaryOptionByIndex , OnPrimarySelectionFunction , defaultText , multiSelectionText )
end
function ZO_GroupFinder_PopulateUserTypeSecondaryOptionsDropdown ( secondaryOptionDropdown , userTypeData , OnSecondarySelectionFunction , primaryOptionDropdown )
local defaultText = ""
if category == GROUP_FINDER_CATEGORY_PVP then
local lastPrimaryName , isLastPrimarySelected = GetGroupFinderFilterPrimaryOptionByIndex ( numPrimaryItems )
-- The last item in a pvp primary options dropdown will always be battlegrounds.
if not isLastPrimarySelected then
else
end
elseif category == GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON or category == GROUP_FINDER_CATEGORY_CUSTOM then
-- ENDLESS_DUNGEON and CUSTOM should disable the dropdown so no value is necessary
else
end
end
end
ZO_GroupFinder_PopulateOptionsDropdown ( secondaryOptionDropdown , GetNumSecondaryOptions , GetSecondaryOptionByIndex , OnSecondarySelectionFunction , defaultText )
end
function ZO_GroupFinder_PopulateFiltersSecondaryOptionsDropdown ( secondaryOptionDropdown , OnSecondarySelectionFunction )
local defaultText = ""
local multiSelectionText
if category == GROUP_FINDER_CATEGORY_PVP then
local lastPrimaryName , isLastPrimarySelected = GetGroupFinderFilterPrimaryOptionByIndex ( numPrimaryItems )
-- The last item in a pvp primary options dropdown will always be battlegrounds.
if not isLastPrimarySelected then
else
end
elseif category == GROUP_FINDER_CATEGORY_ENDLESS_DUNGEON or category == GROUP_FINDER_CATEGORY_CUSTOM then
-- ENDLESS_DUNGEON and CUSTOM should disable the dropdown so no value is necessary
else
end
end
ZO_GroupFinder_PopulateOptionsDropdown ( secondaryOptionDropdown , GetNumSecondaryOptions , GetGroupFinderFilterSecondaryOptionByIndex , OnSecondarySelectionFunction , defaultText , multiSelectionText )
end
-- Helper function for tooltips; data should be a ZO_GroupListingData_Base
local roleTable = { }
local roleNarrations = { }
local numCurrentMembers = 0
if roleType ~= LFG_ROLE_INVALID then
local iconTexture
if attainedCount > 0 then
numCurrentMembers = numCurrentMembers + attainedCount
iconTexture = GROUP_ROLES_TO_ICONS [ roleType ] . filled
table . insert ( roleTable , string . format ( "%d %s" , attainedCount , zo_iconFormat ( iconTexture , iconDimension , iconDimension ) ) )
table . insert ( roleNarrations , string . format ( "%d %s" , attainedCount , GetString ( "SI_LFGROLE" , roleType ) ) )
end
end
end
local playerCountString = zo_strformat ( SI_GROUP_FINDER_TOOLTIP_PLAYER_COUNT_FORMATTER , numCurrentMembers , numRoles )
return playerCountString , roleString , roleNarrations
end
-- Helper function for tooltips; data should be a ZO_GroupListingData_Base
local desiredRolesTable = { }
local desiredRolesNarrations = { }
local totalDesiredRoles = 0
if roleType ~= LFG_ROLE_INVALID then
local iconTexture
if desiredCount > 0 then
totalDesiredRoles = totalDesiredRoles + desiredCount
end
end
end
if roleType ~= LFG_ROLE_INVALID then
local iconTexture
if desiredCount > attainedCount or anyRoleDesired then
iconTexture = GROUP_ROLES_TO_ICONS [ roleType ] . filled
end
end
end
end
-- Global XML
end |