📄 peopledetailselectnumber_landscape.luac.lua
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0;0,4;0,0,27,35,38; 169f43e6_manila.luac
trace("Load ContactPicker_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
DetailSelectNumber_ScreenRotation = class(RotationTemplate)
DetailSelectNumber_ScreenRotation.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4)
l_1_0._Listview = l_1_1
l_1_0._Camera3D = l_1_3
l_1_0._Camera2D = l_1_2
l_1_0._Mask = l_1_4
RotationTemplate.__init(l_1_0)
l_1_0.LetterPickerObj = nil
l_1_0.SearchObj = nil
trace("+++++++[DetailSelectNumber_ScreenRotation] : __init")
end
DetailSelectNumber_ScreenRotation.OnScreenRotation = function(l_2_0)
trace("+++++++[DetailSelectNumber_ScreenRotation] : OnScreenRotation")
local l_2_1 = screenHeight
l_2_1 = l_2_1 - 2 * SystemTitlebarHeight
if l_2_0._Camera2D then
l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
l_2_0._Camera2D.ViewLeft.value = 0
l_2_0._Camera2D.ViewRight.value = screenWidth
l_2_0._Camera2D.ViewTop.value = 0
l_2_0._Camera2D.ViewButtom.value = -(l_2_1)
end
if l_2_0._Camera3D then
l_2_0._Camera3D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
l_2_0._Camera3D.ViewLeft.value = 0
l_2_0._Camera3D.ViewRight.value = screenWidth
l_2_0._Camera3D.ViewTop.value = 0
l_2_0._Camera3D.ViewButtom.value = l_2_1
l_2_0._Camera3D.CameraPosition.value = Vector3(0, 0, (l_2_1) / 2)
end
if _application.Orientation == ScreenOrientation_Portrait then
l_2_0._Mask.Rectangle = RectFProperty(RectF(0, 60, 480, 636))
LVHeight = 636
LVPositionX = -240
LVPositionY = 288
LVWidth = 480
ItemSizeWidth = 480
ItemSizeHeight = 80
else
if _application.Orientation == ScreenOrientation_Landscape then
LVPositionY = 0
LVHeight = 318
l_2_0._Mask.Rectangle = RectFProperty(RectF(-500, 60, 2000, 2000))
LVPositionX = -400
LVPositionY = 127
LVWidth = 800
ItemSizeWidth = 800
ItemSizeHeight = 80
end
end
l_2_0:ResetListViewContent(_application.Orientation)
end
DetailSelectNumber_ScreenRotation.ResetListViewContent = function(l_3_0, l_3_1)
trace("+++++++[DetailSelectNumber_ScreenRotation] : ResetListViewContent")
if not l_3_0._Listview:HasLayout() then
return
end
l_3_0._Listview.Position.x = LVPositionX
l_3_0._Listview.Position.y = LVPositionY
l_3_0._Listview.Viewport.x = LVWidth
l_3_0._Listview.Viewport.y = LVHeight
local l_3_2 = Vector3F()
l_3_2.x = ItemSizeWidth
l_3_2.y = ItemSizeHeight
l_3_2.z = 0
l_3_0._Listview:GetLayout().ItemSize = l_3_2
local l_3_3 = nil
local l_3_4 = 0
l_3_4 = l_3_0._Listview:GetGenerator():GetCount()
local l_3_5 = l_3_0._Listview:GetGenerator()
for i = 0, l_3_4 - 1 do
l_3_3 = l_3_5:GetItem(i)
if l_3_3 then
_Namespace = l_3_3.Namespace
local something = _Namespace:FindName("Select")
if something then
if l_3_1 == ScreenOrientation_Portrait then
something.Position.x = 420
elseif l_3_1 == ScreenOrientation_Landscape then
something.Position.x = 730
end
end
local something = _Namespace:FindName("Line")
if something then
something.Size.width = ItemSizeWidth
something.TextureCoords:set(0, 0, ItemSizeWidth / 2, 1)
end
end
end
end
trace("Load DetailSelectNumber_Landscape.lua end")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -