peoplemessageselector_landscape.luac.lua
来自「htc manila 2 sourcecode」· LUA 代码 · 共 55 行
LUA
55 行
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 14;0;0,9; 73551670_manila.luac
trace("Load peopleMessage_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
PeopleMessageSelector_ScreenRotation = class(RotationTemplate)
local l_0_0 = PeopleMessageSelector_ScreenRotation
l_0_0.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4)
trace("+++++++[PeopleMessageSelector_ScreenRotation] : __init")
l_1_0._Camera2D = l_1_1
l_1_0._Camera3D = l_1_2
l_1_0._ListView = l_1_3
l_1_0._ListviewGroup = l_1_4
RotationTemplate.__init(l_1_0)
end
l_0_0 = PeopleMessageSelector_ScreenRotation
l_0_0.OnScreenRotation = function(l_2_0)
trace("+++++++[PeopleMessageSelector_ScreenRotation] : OnScreenRotation")
if l_2_0._ResetLayoutCallback ~= nil then
l_2_0._ResetLayoutCallback()
end
local l_2_1 = screenHeight
l_2_1 = l_2_1 - SystemTitlebarHeight * 2
if l_2_0._Camera2D ~= nil then
trace("+++++++[PeopleMessageSelector_ScreenRotation] : Adjusting 2D Camera")
l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
l_2_0._Camera2D.ViewRight.value = screenWidth
l_2_0._Camera2D.ViewButtom.value = -(l_2_1)
end
if l_2_0._Camera3D ~= nil then
l_2_0._Camera3D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
l_2_0._Camera3D.ViewRight.value = screenWidth
l_2_0._Camera3D.ViewButtom.value = l_2_1
l_2_0._Camera3D.CameraPosition.z = l_2_0._Camera3D.Viewport.height / 2
end
if l_2_0._ListView ~= nil then
l_2_0._ListView.Viewport.x = screenWidth
l_2_0._ListView.Viewport.y = l_2_1 - ManilaTitleBarHeight
l_2_0._ListView.Viewport.z = 0
end
if l_2_0._ListviewGroup ~= nil then
l_2_0._ListviewGroup.Position.x = -screenWidth / 2
l_2_0._ListviewGroup.Position.y = (l_2_1) / 2 - ManilaTitleBarHeight
l_2_0._ListviewGroup.Position.z = 0
end
if objMessages ~= nil and objMessages.objLvMessages ~= nil then
objMessages.objLvMessages:ResetListViewLayout(screenWidth, l_2_1)
objMessages.objLvMessages:PrepareData()
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?