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 |
--------------------------------------
--Preferred Roles Manager
--------------------------------------
PREFERRED_ROLES = nil
return manager
end
[ LFG_ROLE_DPS ] = {
isSelected = isDPS ,
} ,
[ LFG_ROLE_HEAL ] = {
isSelected = isHeal ,
} ,
[ LFG_ROLE_TANK ] = {
isSelected = isTank ,
} ,
}
if roleData . isSelected then
end
end
end
end
--Force buttons only half selected (mouse down only) to be unselected before disabling
if not roleData . isSelected then
end
--Force mouse to be enabled on disabled buttons so tooltips still work
end
end
if roleData . isSelected then
end
end
end
---- XML Callbacks ----
end
end
if currentState == BSTATE_DISABLED or currentState == BSTATE_DISABLED_PRESSED then
InformationTooltip : AddLine ( zo_strformat ( SI_GROUP_LIST_PANEL_DISABLED_ROLE_TOOLTIP , tooltipText ) , "" , ZO_ColorDef : New ( "ff0000" ) : UnpackRGB ( ) )
end
end
end
local role = buttonControl . role
if buttonState == BSTATE_NORMAL then
elseif buttonState == BSTATE_PRESSED and PREFERRED_ROLES : GetSelectedRoleCount ( ) > 1 then --enforce having at least one role selected
end
end
end |