peoplesearchgroup.luac.lua
来自「htc manila 2 sourcecode」· LUA 代码 · 共 178 行
LUA
178 行
-- Decompiled using luadec 0.7 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;;;;;;;;;;;;;;;;; 259ef8c3_manila.luac
trace("Input box script")
SearchObject = class()
SearchObject.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4, l_1_5, l_1_6, l_1_7, l_1_8, l_1_9, l_1_10)
l_1_0.ContactObject = l_1_1
l_1_0.InputBox = l_1_2
l_1_0.SearchGroup = l_1_3
l_1_0.AllGroup = l_1_4
l_1_0.LetterGroup = l_1_5
l_1_0.SearchIcon = l_1_6
l_1_0.SelectorFull = l_1_8
l_1_0.Selector = l_1_9
l_1_0.HitArea = l_1_7
l_1_0.TitleChangeFunc = nil
l_1_0.ConnectInputEvent = false
l_1_0.HitArea.onRelease:connect(l_1_0.SearchIconOnRelease, l_1_0)
l_1_0.ConnectHitArea = true
if l_1_10 ~= nil then
l_1_0.LetterPickerObj = l_1_10
else
l_1_0.LetterPickerObj = nil
end
l_1_0.ViewPortHigh = 636
l_1_0.ViewPortLow = 576
l_1_0.LetterViewPortHigh = l_1_0.ViewPortHigh
l_1_0.LetterViewPortLow = l_1_0.ViewPortLow
l_1_0.FontSizeHigh = 20
l_1_0.FontSizeLow = 18
end
SearchObject.EnableSearchContacts = function(l_2_0)
if l_2_0.ContactObject.Savedoffset ~= nil and l_2_0.ContactObject.Savedoffset ~= 0 then
l_2_0.ContactObject:SetOffset(0)
l_2_0.InputBox.WindowText = ""
l_2_0:HandleInputedTextChanged()
end
l_2_0.SearchGroup._visible = true
_application:ShowInputPanel(0)
l_2_0.InputBox:SetShowWindowFlag(true)
l_2_0.AllGroup.Position.y = l_2_0.ContactObject.ListViewLowPosY
l_2_0:SetListViewPort(l_2_0.FontSizeLow, l_2_0.ViewPortLow, l_2_0.LetterViewPortLow)
l_2_0.SearchIcon:SetTextureRef("SearchIconPre")
if not l_2_0.ConnectInputEvent then
l_2_0.InputBox.onRelease:connect(l_2_0.InputBoxOnPress, l_2_0)
l_2_0.InputBox.onFocusOut:connect(l_2_0.FocusOutInputBox, l_2_0)
l_2_0.InputBox.OnTextChanged:connect(l_2_0.HandleInputedTextChanged, l_2_0)
l_2_0.ConnectInputEvent = true
end
l_2_0.InputBox:SetWindowSize(440, 41)
if l_2_0.TitleChangeFunc ~= nil then
_application.Navigation.Title = Locale:GetString("IDS_SEARCHCONTACT_TITLE")
end
end
SearchObject.DisableSearchContacts = function(l_3_0)
if l_3_0.ContactObject.Savedoffset ~= nil and l_3_0.ContactObject.Savedoffset ~= 0 then
l_3_0.ContactObject:SetOffset(l_3_0.ContactObject.Savedoffset)
end
l_3_0.SearchGroup._visible = false
l_3_0.InputBox.WindowText = ""
l_3_0.InputBox:SetShowWindowFlag(false)
_application:HideInputPanel()
l_3_0.AllGroup.Position.y = l_3_0.ContactObject.ListViewHighPosY
l_3_0:SetListViewPort(l_3_0.FontSizeHigh, l_3_0.ViewPortHigh, l_3_0.LetterViewPortHigh)
l_3_0.SearchIcon:SetTextureRef("SearchIconNext")
if l_3_0.ConnectInputEvent then
l_3_0.InputBox.onRelease:disconnect(l_3_0.InputBoxOnPress, l_3_0)
l_3_0.InputBox.onFocusOut:disconnect(l_3_0.FocusOutInputBox, l_3_0)
l_3_0.InputBox.OnTextChanged:disconnect(l_3_0.HandleInputedTextChanged, l_3_0)
l_3_0.ConnectInputEvent = false
end
l_3_0.InputBox:SetWindowSize(1, 1)
if l_3_0.TitleChangeFunc ~= nil then
l_3_0.TitleChangeFunc()
end
end
SearchObject.EnableInputBox = function(l_4_0)
if not l_4_0.ConnectInputEvent then
l_4_0.InputBox.onRelease:connect(l_4_0.InputBoxOnPress, l_4_0)
l_4_0.InputBox.onFocusOut:connect(l_4_0.FocusOutInputBox, l_4_0)
l_4_0.InputBox.OnTextChanged:connect(l_4_0.HandleInputedTextChanged, l_4_0)
l_4_0.ConnectInputEvent = true
end
l_4_0.InputBox:SetWindowSize(440, 41)
end
SearchObject.DisableInputBox = function(l_5_0)
l_5_0.InputBox:SetShowWindowFlag(false)
_application:HideInputPanel()
if l_5_0.ConnectInputEvent then
l_5_0.InputBox.onRelease:disconnect(l_5_0.InputBoxOnPress, l_5_0)
l_5_0.InputBox.onFocusOut:disconnect(l_5_0.FocusOutInputBox, l_5_0)
l_5_0.InputBox.OnTextChanged:disconnect(l_5_0.HandleInputedTextChanged, l_5_0)
l_5_0.ConnectInputEvent = false
end
l_5_0.InputBox.WindowText = ""
l_5_0.InputBox:SetWindowSize(1, 1)
end
SearchObject.InputBoxOnPress = function(l_6_0, l_6_1, l_6_2)
trace("InputBoxOnPress+++++")
if l_6_0.SearchGroup._visible then
_application:ShowInputPanel(0)
l_6_0.InputBox:SetShowWindowFlag(true)
l_6_0.InputBox:Focus()
end
end
SearchObject.FocusOutInputBox = function(l_7_0)
_application:HideInputPanel()
end
SearchObject.SearchIconOnRelease = function(l_8_0, l_8_1, l_8_2)
if l_8_0.SearchGroup._visible then
l_8_0:DisableSearchContacts()
else
l_8_0:EnableSearchContacts()
end
end
SearchObject.HandleInputedTextChanged = function(l_9_0)
ContactObj.strSearchContact = InputBox.WindowText
ContactObj:FilterContactsFormSource(true)
collectgarbage("collect")
end
SearchObject.SetLetterGroupVisibility = function(l_10_0, l_10_1)
l_10_0.LetterGroup._visible = l_10_1
end
SearchObject.SetHitIconVisibility = function(l_11_0, l_11_1)
l_11_0.SearchIcon._visible = l_11_1
if l_11_1 == true then
if not l_11_0.ConnectHitArea then
l_11_0.HitArea.onRelease:connect(l_11_0.SearchIconOnRelease, l_11_0)
l_11_0.ConnectHitArea = true
end
elseif l_11_0.ConnectHitArea then
l_11_0.HitArea.onRelease:disconnect(l_11_0.SearchIconOnRelease, l_11_0)
l_11_0.ConnectHitArea = false
end
end
SearchObject.SetListViewPort = function(l_12_0, l_12_1, l_12_2, l_12_3)
if l_12_0.LetterPickerObj then
l_12_0.LetterPickerObj:ReSetItem(l_12_1, l_12_3)
l_12_0.LetterPickerObj:Generate()
end
l_12_0.ContactObject:SetViewPort(480, l_12_2, 0)
end
SearchObject.SetListViewPortHigh = function(l_13_0, l_13_1)
l_13_0.ViewPortHigh = l_13_1
l_13_0.LetterViewPortHigh = l_13_1
end
SearchObject.SetListViewPortLow = function(l_14_0, l_14_1)
l_14_0.ViewPortLow = l_14_1
l_14_0.LetterViewPortLow = l_14_1
end
SearchObject.SetLetterListViewPortHigh = function(l_15_0, l_15_1)
l_15_0.LetterViewPortHigh = l_15_1
end
SearchObject.SetLetterListViewPortLow = function(l_16_0, l_16_1)
l_16_0.LetterViewPortLow = l_16_1
end
SearchObject.SetTitleChangeFunction = function(l_17_0, l_17_1)
l_17_0.TitleChangeFunc = l_17_1
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?