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 |
ZO_TextSearch_Header_Gamepad = ZO_InitializingCallbackObject : Subclass ( )
self . headerTextFilterEditBox = self . headerTextFilterControl : GetNamedChild ( "SearchEdit" )
self . headerTextFilterHighlight = self . headerTextFilterControl : GetNamedChild ( "Highlight" )
self . headerTextFilterIcon = self . headerTextFilterControl : GetNamedChild ( "Icon" )
self . headerBGTexture = self . headerTextFilterControl : GetNamedChild ( "BG" )
self . active = false
self . headerTextFilterEditBox : SetHandler ( "OnTextChanged" , onTextChangedCallback )
end
function ZO_TextSearch_Header_Gamepad : IsActive ( )
return self . active
end
function ZO_TextSearch_Header_Gamepad : Activate ( )
self . active = true
end
function ZO_TextSearch_Header_Gamepad : Deactivate ( )
self . active = false
end
function ZO_TextSearch_Header_Gamepad : Update ( )
self . headerTextFilterHighlight : SetHidden ( not self . active )
self . headerBGTexture : SetHidden ( not self . active )
if self . active then
else
if self . headerTextFilterEditBox : HasFocus ( ) then
end
end
end
function ZO_TextSearch_Header_Gamepad : IsActive ( )
return self . active
end
function ZO_TextSearch_Header_Gamepad : SetFocused ( isFocused )
if isFocused then
elseif self . headerTextFilterEditBox : HasFocus ( ) then
end
end
end
function ZO_TextSearch_Header_Gamepad : GetText ( )
return self . headerTextFilterEditBox : GetText ( )
end
|