📄 google_search_listview_controller.luac.lua
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0;0,5,7;0,2,7,9;0,0,0,7,11;0,0,11;; 4ebea3fc_manila.luac
require("scrollphysics")
google_search_listview_controller = class()
google_search_listview_controller.__init = function(l_1_0, l_1_1, l_1_2, l_1_3)
trace("[google_search_listview] : __init")
l_1_0.listview = l_1_1
l_1_0.selector = l_1_2
l_1_0.callbackInstance = l_1_3
l_1_0:setlayout()
end
google_search_listview_controller.setlayout = function(l_2_0)
trace("[google_search_listview] : setlayout")
local l_2_1 = TileLayout()
local l_2_2 = Vector3F()
l_2_2.x = 480
l_2_2.y = 80
l_2_2.z = 0
l_2_1.SelectionNode = l_2_0.selector
l_2_1.ItemSize = l_2_2
trace(type(l_2_0.listview.SetLayout))
l_2_0.listview:SetLayout(l_2_1)
end
google_search_listview_controller.generate = function(l_3_0, l_3_1)
l_3_0.collection = l_3_1
trace("[google_search_listview] : generate new")
local l_3_2 = VectorNotifyint()
local l_3_3 = l_3_1:GetCount()
for i = 0, l_3_3 - 1 do
l_3_2:push_back(i)
end
if l_3_0.listview:HasGenerator() then
trace("[google_search_listview] : generate update")
l_3_0.listview:GetGenerator().Collection = l_3_2
end
local lgi = LibraryGeneratorint(l_3_2, l_3_0.listview:GetMovie(), l_3_0.listview.ComponentLibraryName, l_3_0.listview.ComponentLibraryID)
lgi.RecycleItems = true
lgi.ItemCreated:connect(l_3_0.HandleItemCreated, l_3_0)
lgi.SelectedIndexChanged:connect(l_3_0.listviewIndexChanged, l_3_0)
l_3_0.listview:SetGenerator(lgi)
if l_3_0._ScrollPhysics then
l_3_0._ScrollPhysics:DisconnectMouseEvents()
l_3_0._ScrollPhysics = nil
end
l_3_0._ScrollPhysics = ScrollPhysics(l_3_0.listview, l_3_0.listview, function(l_1_0)
l_3_0:HandleListSelection(l_1_0)
end)
l_3_0._ScrollPhysics:ConnectMouseEvents()
l_3_0.listview.onPress:connect(l_3_0.OnlistviewPress, l_3_0)
l_3_0.listview.onRelease:connect(l_3_0.OnlistviewRelease, l_3_0)
l_3_0.listview.onReleaseOutside:connect(l_3_0.OnlistviewRelease, l_3_0)
l_3_0.listview:ForceLayout()
end
google_search_listview_controller.HandleItemCreated = function(l_4_0, l_4_1, l_4_2)
trace("[google_search_listview] : HandleItemCreated")
local l_4_3 = l_4_2.Namespace:FindName("Text")
local l_4_4 = l_4_0.collection:GetItem(l_4_1)
l_4_3.String = l_4_4
trace("[google_search_listview] : HandleItemCreated " .. l_4_4)
l_4_2.Focusable = true
l_4_2.onKeyDown:connect(l_4_0.HandleKeyDown, l_4_0)
l_4_2.Tag = l_4_4
end
google_search_listview_controller.HandleListSelection = function(l_5_0, l_5_1)
trace("[google_search_listview] : HandleListSelection index = " .. tostring(l_5_1))
local l_5_2 = l_5_0.collection:GetItem(l_5_1)
l_5_0.callbackInstance:Searching(l_5_2, 0)
end
google_search_listview_controller.Reset = function(l_6_0)
trace("[google_search_listview] : Reset")
if l_6_0.listview:GetGenerator() then
-- Warning: missing end command somewhere! Added here
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -