|
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 |
ZO_INTERACTIVE_WHEEL_TYPE_UTILITY = 1ZO_INTERACTIVE_WHEEL_TYPE_FISHING = 2ZO_INTERACTIVE_WHEEL_TYPE_TARGET_MARKER = 3--Interactive Wheel Manager EVENT_MANAGER:RegisterForEvent("InteractiveWheelManager", EVENT_GAMEPAD_PREFERRED_MODE_CHANGED, function() end) end)end if interactiveWheelType == ZO_INTERACTIVE_WHEEL_TYPE_UTILITY then elseif interactiveWheelType == ZO_INTERACTIVE_WHEEL_TYPE_FISHING then elseif interactiveWheelType == ZO_INTERACTIVE_WHEEL_TYPE_TARGET_MARKER then else endend --Order matters, set this first if interactionStarted then --If we're starting a new interaction, stop any interactions already happening local CLEAR_SELECTION = true end end SHARED_INFORMATION_AREA:SetCategoriesSuppressed(true, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HIDDEN_BY_INTERACTIVE_WHEEL, "InteractiveWheel") return interactionStartedend SHARED_INFORMATION_AREA:SetCategoriesSuppressed(false, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HIDDEN_BY_INTERACTIVE_WHEEL, "InteractiveWheel")end --Treat the up action differently for togglable wheels --Cancel the interaction if we get here before the wheel is done coming up if self.currentWheelType == interactiveWheelType and not self:IsInteracting(interactiveWheelType) then end --If the wheel is already up, we do not want to close it by releasing the hold, so just do nothing and treat the bind as handled return true else endend--Cancels the current interaction if there is one --Since we're cancelling, we don't want to retain our selection local CLEAR_SELECTION = true else return false endend return true end end return falseenddo local TIME_TO_HOLD_KEY_MS = 250 if beginHold then --If we were not holding the hotkey long enough to leave the wheel open, we need to close it --Re-select the correct ordinal entry here in case it happened to change after we initially pressed the keybind end end end return false endend --If self.gamepad has never been set, it is impossible for us to be interacting return false end if interactiveWheelType then --If no interactive wheel type was specified just use whatever the current wheel type is else return false endend--Currently only supports ZO_INTERACTIVE_WHEEL_TYPE_UTILITY --Only allow cycling if the wheel in question is already visible end return falseend--Currently only supports ZO_INTERACTIVE_WHEEL_TYPE_UTILITY --Only allow cycling if the wheel in question is already visible end return falseend |