peoplemessage_landscape.luac.lua
来自「htc manila 2 sourcecode」· LUA 代码 · 共 84 行
LUA
84 行
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 14;0;0,4,5,6,11; 453968cf_manila.luac
trace("Load PeopleMessage_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
PeopleMessage_ScreenRotation = class(RotationTemplate)
local l_0_0 = PeopleMessage_ScreenRotation
l_0_0.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4, l_1_5)
trace("+++++++[PeopleMessage_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
l_1_0._ContactHeader = l_1_5
RotationTemplate.__init(l_1_0)
end
l_0_0 = PeopleMessage_ScreenRotation
l_0_0.OnScreenRotation = function(l_2_0)
trace("+++++++[PeopleMessage_ScreenRotation] : OnScreenRotation")
local l_2_1 = 80
local l_2_2 = screenHeight
local l_2_3 = SystemTitlebarHeight
l_2_3 = l_2_3 * 2
l_2_2 = l_2_2 - l_2_3
l_2_3 = (l_2_2) / 2
l_2_3 = l_2_3 - l_2_1
local l_2_4 = screenWidth
l_2_4 = -l_2_4
l_2_4 = l_2_4 / 2
if l_2_0._Camera2D ~= nil then
trace("+++++++[PeopleMessage_ScreenRotation] : Adjusting 2D Camera")
l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, l_2_2)
l_2_0._Camera2D.ViewRight.value = screenWidth
l_2_0._Camera2D.ViewButtom.value = -(l_2_2)
end
if l_2_0._Camera3D ~= nil then
trace("+++++++[PeopleMessage_ScreenRotation] : Adjusting 3D Camera")
l_2_0._Camera3D.Viewport.value = RectF(0, 0, screenWidth, l_2_2)
l_2_0._Camera3D.ViewRight.value = screenWidth
l_2_0._Camera3D.ViewButtom.value = l_2_2
l_2_0._Camera3D.CameraPosition.z = l_2_0._Camera3D.Viewport.height / 2
end
ContactPhoto.Position.x = screenWidth - 77
MyFavesContactPhoto.Position.x = screenWidth - 86
TitleBackground.Size.width = screenWidth
TitleBackground.TextureCoords.width = screenWidth / 2
BackgroundSend.Position.x = screenWidth - 88
InputBoxBackground.Size.width = screenWidth
InputBox:SetWindowSize(objMessages.objLvMessages.WindowW - objMessages.InputBoxDX, objMessages.InputBoxDisanableH)
if l_2_0._ListView ~= nil then
l_2_0._ListView.Viewport.x = screenWidth
if _application.Orientation == ScreenOrientation_Portrait then
l_2_0._ListView.Viewport.y = l_2_2 - l_2_1 - ManilaTrayBarHeight - objMessages.InputBoxBackgroundLandscapeH
else
l_2_0._ListView.Viewport.y = l_2_2 - l_2_1 - objMessages.InputBoxBackgroundLandscapeH
end
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_3
l_2_0._ListviewGroup.Position.z = 0
end
l_2_0._ContactHeader.Position.x = l_2_4
l_2_0._ContactHeader.Position.y = (l_2_2) / 2
InputBoxGroup.Position.x = l_2_4
InputBoxGroup.Position.y = (l_2_2) / 2
trace("InputBoxGroup.Position.y=" .. InputBoxGroup.Position.y)
if l_2_0._generator ~= nil and l_2_0._PIDB ~= nil then
l_2_0:ResetListviewItemLayout()
end
if objMessages ~= nil then
if objMessages.objLvMessages ~= nil then
objMessages.objLvMessages:ResetListViewLayout(screenWidth, l_2_2)
objMessages.objLvMessages:PrepareData()
end
objMessages:DisableInput()
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?