📄 configurationpage_landscape.luac.lua
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0;0,4;0,27; 07fd6666_manila.luac
trace("Load ConfigurationPage_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
ConfigListView_ScreenRotation = class(RotationTemplate)
ConfigListView_ScreenRotation.__init = function(l_1_0)
RotationTemplate.__init(l_1_0)
trace("+++++++[ConfigListView_ScreenRotation] : __init")
end
ConfigListView_ScreenRotation.OnScreenRotation = function(l_2_0)
trace("+++++++[ConfigListView_ScreenRotation] : OnScreenRotation")
local l_2_1 = screenHeight
l_2_1 = l_2_1 - 2 * SystemTitlebarHeight
Camera_2D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
Camera_2D.ViewLeft.value = 0
Camera_2D.ViewRight.value = screenWidth
Camera_2D.ViewTop.value = 0
Camera_2D.ViewButtom.value = -(l_2_1)
Program_Cam.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
Program_Cam.ViewLeft.value = 0
Program_Cam.ViewRight.value = screenWidth
Program_Cam.ViewTop.value = 0
Program_Cam.ViewButtom.value = l_2_1
FakeMovingBground.Size.width = screenWidth
if _application.Orientation == ScreenOrientation_Portrait then
Program_Cam.CameraPosition.value = Vector3(0, 0, (l_2_1) / 2)
Mask.Rectangle = RectFProperty(RectF(0, 60, 480, 636))
ItemSizeWidth = 480
ItemSizeHeight = Common_ListViewItemHeight + 1
LVPositionX = -Program_Cam.Viewport.width / 2
LVPositionY = Program_Cam.Viewport.height / 2 - ManilaTitleBarHeight
LVWidth = 480
LVHeight = 636
HeightTitleArea = 60
CenterY = 400
FakeMovingCheckbox.Position.x = 420
MoveUpArea.Position.x = -240
MoveUpArea.Position.y = 288
MoveDownArea.Position.x = -240
MoveDownArea.Position.y = -328
NumItemsInOnePage = 8
UpLimit = 80
DownLimit = 720
else
if _application.Orientation == ScreenOrientation_Landscape then
Program_Cam.CameraPosition.value = Vector3(0, 0, (l_2_1) / 2)
Mask.Rectangle = RectFProperty(RectF(-500, 60, 2000, 2000))
ItemSizeWidth = 800
ItemSizeHeight = Common_ListViewItemHeight + 1
LVPositionX = -Program_Cam.Viewport.width / 2
LVPositionY = Program_Cam.Viewport.height / 2 - ManilaTitleBarHeight
LVWidth = 800
LVHeight = 318
HeightTitleArea = 0
CenterY = 240
FakeMovingCheckbox.Position.x = 740
MoveUpArea.Position.x = -400
MoveUpArea.Position.y = 188
MoveDownArea.Position.x = -400
MoveDownArea.Position.y = -168
NumItemsInOnePage = 5
UpLimit = 20
DownLimit = 400
end
end
l_2_0:ResetListViewContent()
end
ConfigListView_ScreenRotation.ResetListViewContent = function(l_3_0)
trace("+++++++[ConfigListView_ScreenRotation] : ResetListViewContent")
if not ConfigListView:HasLayout() then
return
end
ConfigListView.Position.x = LVPositionX
ConfigListView.Position.y = LVPositionY
ConfigListView.Viewport.x = LVWidth
ConfigListView.Viewport.y = LVHeight
local l_3_1 = Vector3F()
l_3_1.x = ItemSizeWidth
l_3_1.y = ItemSizeHeight
l_3_1.z = 0
ConfigListView:GetLayout().ItemSize = l_3_1
local l_3_2 = nil
local l_3_3 = nil
local l_3_4 = nil
local l_3_5 = nil
for i = 0, ConfigListView:GetGenerator():GetCount() - 1 do
l_3_2 = ConfigListView:GetGenerator():GetItem(i)
if l_3_2 then
l_3_3 = l_3_2.Namespace:FindName("TabLine")
l_3_3.Size.width = ItemSizeWidth
l_3_3.TextureCoords:set(0, 0, ItemSizeWidth / 2, 1)
l_3_4 = l_3_2.Namespace:FindName("CheckboxComponent")
l_3_4.Position.x = ItemSizeWidth - 60
l_3_5 = l_3_2.Namespace:FindName("CheckboxHitArea")
l_3_5.Position.x = ItemSizeWidth - 78
end
end
end
trace("Load ConfigurationPage_Landscape.lua end")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -