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 |
ZO_MOUSE_INPUT_GROUP_MOUSE_OVER = "mouseOver"
return object
end
self . over = false
self . inputTypeGroups = { }
self . rootControl = rootControl
end
end
local inputTypeGroup = self . inputTypeGroups [ inputType ]
if not inputTypeGroup then
inputTypeGroup = { }
self . inputTypeGroups [ inputType ] = inputTypeGroup
end
return inputTypeGroup
end
return true
end
end
end
return false
end
if inputType == ZO_MOUSE_INPUT_GROUP_MOUSE_OVER then
control : SetHandler ( "OnMouseEnter" , self . refreshMouseOverFunction , inputType , CONTROL_HANDLER_ORDER_BEFORE )
control : SetHandler ( "OnMouseExit" , self . refreshMouseOverFunction , inputType , CONTROL_HANDLER_ORDER_BEFORE )
end
end
end
end
end
-- Optional exclusion of a single control, or a numerically indexed table
-- of controls, from this remove operation.
excludedControls = { excludedControls }
end
for controlIndex = # groupControls , 1 , - 1 do
-- Remove all controls in the group except the root control.
if not excludedControls or not ZO_IsElementInNumericallyIndexedTable ( excludedControls , control ) then
end
end
end
end
return true
end
end
return false
end
local currentMouseOverControlInGroup = false
--there seems to be a weird case where 3D controls can be mouse entered when exiting UI mode. So we prevent this from registering enters when not in UI mode
currentMouseOverControlInGroup = self : IsControlInGroup ( WINDOW_MANAGER : GetMouseOverControl ( ) , ZO_MOUSE_INPUT_GROUP_MOUSE_OVER )
end
if currentMouseOverControlInGroup ~= self . over then
self . over = currentMouseOverControlInGroup
if self . over then
else
end
end
end
--XML Handlers
end |