📄 alarmview_landscape.luac.lua
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;0;0;0,0,0,6,9,12; 7c9e4c9c_manila.luac
trace("Load AlarmView_ScreenRotation.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
AlarmView_ScreenRotation = class(RotationTemplate)
AlarmView_ScreenRotation.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4)
trace("+++++++[AlarmView_ScreenRotation] : __init")
l_1_0._Camera2D = l_1_1
l_1_0._Mask = l_1_2
l_1_0._ListView = l_1_3
l_1_0._Selector = l_1_4
RotationTemplate.__init(l_1_0)
end
AlarmView_ScreenRotation.OnScreenRotation = function(l_2_0)
trace("+++++++[AlarmView_ScreenRotation] : OnScreenRotation")
l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, screenHeight - SystemTitlebarHeight * 2)
l_2_0._Camera2D.ViewRight.value = screenWidth
l_2_0._Camera2D.ViewButtom.value = -(screenHeight - SystemTitlebarHeight * 2)
l_2_0._Selector.Scale.x = screenWidth / 480
l_2_0._Mask.Rectangle = RectFProperty(RectF(0, ManilaTitleBarHeight, screenWidth, screenHeight - SystemTitlebarHeight * 2))
if _application.Orientation == ScreenOrientation_Portrait then
l_2_0._ListView.Viewport.value = Vector3(screenWidth, 450, 0)
elseif _application.Orientation == ScreenOrientation_Landscape then
l_2_0._ListView.Viewport.value = Vector3(screenWidth, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight, 0)
end
if l_2_0._generator ~= nil then
l_2_0:ResetListviewItemLayout()
end
trace("Start check self._ListView:HasLayout()")
if l_2_0._ListView:HasLayout() then
trace("ItemSize = " .. tostring(l_2_0._ListView:GetLayout().ItemSize.x))
local v3f = Vector3F()
v3f.x = screenWidth
v3f.y = 80
v3f.z = 0
l_2_0._ListView:GetLayout().ItemSize = v3f
trace("ItemSize = " .. tostring(l_2_0._ListView:GetLayout().ItemSize.x))
end
trace("Finish check self._ListView:HasLayout()")
end
AlarmView_ScreenRotation.ResetListviewItemLayout = function(l_3_0)
if l_3_0._generator ~= nil then
trace("+++++++[AlarmView_ScreenRotation] : ResetListviewItemLayout Beginning")
for i = 0, l_3_0._generator:GetCount() - 1 do
l_3_0:AdjustListviewItemLayout(nil, l_3_0._generator:GetItem(i))
end
trace("+++++++[AlarmView_ScreenRotation] : ResetListviewItemLayout Finished")
end
end
AlarmView_ScreenRotation.AdjustListviewItemLayout = function(l_4_0, l_4_1, l_4_2)
if l_4_2 ~= nil then
trace("+++++++[AlarmView_ScreenRotation] : ResetListviewItemLayout Beginning")
local l_4_3 = l_4_2.Namespace
local l_4_4 = l_4_3:FindName("dottedline")
local l_4_5 = l_4_3:FindName("OnOffComponent")
l_4_4.Size.width = screenWidth
l_4_4.TextureCoords.width = screenWidth / 2
l_4_5.Position.x = screenWidth - 145
trace("+++++++[AlarmView_ScreenRotation] : ResetListviewItemLayout Finished")
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -