📄 deletemessage_landscape.luac.lua
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0;0,4;0,0,27,39; 46db841c_manila.luac
trace("Load DeleteMessage_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
DeleteMessage_ScreenRotation = class(RotationTemplate)
DeleteMessage_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)
trace("+++++++[DeleteMessage_ScreenRotation] : __init")
end
DeleteMessage_ScreenRotation.OnScreenRotation = function(l_2_0)
trace("+++++++[DeleteMessage_ScreenRotation] : OnScreenRotation")
local l_2_1 = screenHeight
if l_2_0._Camera2D then
l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, screenHeight)
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 = -screenHeight
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, 560))
LVHeight = 544
LVPositionX = 0
LVPositionY = -60
LVWidth = 480
ItemSizeWidth = 480
ItemSizeHeight = 80
else
if _application.Orientation == ScreenOrientation_Landscape then
LVPositionY = -60
LVHeight = 318
l_2_0._Mask.Rectangle = RectFProperty(RectF(-500, 60, 2000, 2000))
LVPositionX = 0
LVWidth = 800
ItemSizeWidth = 800
ItemSizeHeight = 80
end
end
l_2_0:ResetListViewContent(_application.Orientation)
end
DeleteMessage_ScreenRotation.ResetListViewContent = function(l_3_0, l_3_1)
trace("+++++++[DeleteMessage_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 = l_3_0._Listview:GetLayout()
l_3_3 = l_3_3.SelectionNode
if l_3_3 then
if l_3_0._application.Orientation == ScreenOrientation_Portrait then
l_3_3.Scale = Vector3Property(Vector3(1, 1, 1))
else
if l_3_0._application.Orientation == ScreenOrientation_Landscape then
l_3_3.Scale = Vector3Property(Vector3(1.6999969482422, 1, 1))
end
end
end
local l_3_4 = nil
local l_3_5 = 0
l_3_5 = l_3_0._Listview:GetGenerator():GetCount()
local l_3_6 = l_3_0._Listview:GetGenerator()
for i = 0, l_3_5 - 1 do
l_3_4 = l_3_6:GetItem(i);
if l_3_4 then
_Namespace = l_3_4.Namespace
local something = _Namespace:FindName("msg_seperator")
if something then
something.Size.width = ItemSizeWidth
something.TextureCoords:set(0, 0, ItemSizeWidth / 2, 1)
end
local msg_time = _Namespace:FindName("CheckboxComponent")
if msg_time then
msg_time.Position.x = ItemSizeWidth - 60
end
end
end
end
trace("Load DeleteMessage_Landscape.lua end")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -