📄 music_addsongs_landscape.luac.lua
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;48,58,59;0;0,25; 2021d505_manila.luac
trace("Load Music_AddSongs_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
gSubTitleHeight = 51
ResetListViewContent = function()
trace("+++++++[Music_AddSongs_ScreenRotation] : ResetListViewContent")
if not listview:HasLayout() then
return
end
gManilaTrayBarHeight = ManilaTitleBarHeight
listview.Viewport.x = screenWidth
listview.Viewport.y = screenHeight - 2 * SystemTitlebarHeight - ManilaTitleBarHeight - gSubTitleHeight
if _application.Orientation == ScreenOrientation_Portrait and (gOrder == "4" or gOrder == "7") then
listview.Viewport.y = listview.Viewport.y - ManilaTrayBarHeight - 18
end
local l_1_0 = Vector3F()
l_1_0.x = screenWidth
l_1_0.y = gListView_Height
l_1_0.z = 0
listview:GetLayout().ItemSize = l_1_0
local l_1_1 = nil
local l_1_2 = nil
local l_1_3 = nil
local l_1_4 = nil
local l_1_5 = nil
local l_1_6 = nil
for i = 0, ItemListGenerator:GetCount() - 1 do
l_1_1 = ItemListGenerator:GetItem(i)
if l_1_1 then
l_1_2 = l_1_1.Namespace:FindName("Background_level")
l_1_2.Size.width = screenWidth
l_1_3 = l_1_1.Namespace:FindName("seperator")
l_1_3.TextureCoords:set(0, 0, screenWidth / 2, 1)
l_1_3.Size.width = screenWidth
l_1_4 = l_1_1.Namespace:FindName("title")
l_1_4.Size.width = screenWidth - 160
l_1_5 = l_1_1.Namespace:FindName("albumartist")
l_1_5.Size.width = screenWidth - 160
l_1_6 = l_1_1.Namespace:FindName("CheckboxIcon")
l_1_6.Position.x = screenWidth - 62
end
end
end
Music_AddSongs_ScreenRotation = class(RotationTemplate)
Music_AddSongs_ScreenRotation.__init = function(l_2_0)
RotationTemplate.__init(l_2_0)
trace("+++++++[Music_AddSongs_ScreenRotation] : __init")
end
Music_AddSongs_ScreenRotation.OnScreenRotation = function(l_3_0)
trace("+++++++[Music_AddSongs_ScreenRotation] : OnScreenRotation")
if _application.Orientation == ScreenOrientation_Portrait then
trace("+++++++[Music_AddSongs_ScreenRotation] : Portrait mode")
else
if _application.Orientation == ScreenOrientation_Landscape then
trace("+++++++[Music_AddSongs_ScreenRotation] : Landscape mode")
end
end
gScreenWidth = screenWidth
gScreenHeight = screenHeight
local l_3_1 = screenHeight
l_3_1 = l_3_1 - 2 * SystemTitlebarHeight
camera.Viewport.value = RectF(0, 0, screenWidth, l_3_1)
camera.ViewRight.value = screenWidth
camera.ViewButtom.value = -(l_3_1)
Mask.Rectangle = RectFProperty(RectF(0, 60, screenWidth, screenHeight))
SubTitleBg.Size.width = screenWidth
SubTitleText.Size.width = screenWidth
SelectorRight.Position.x = screenWidth
SelectorMain.Size.width = screenWidth - 8
SelectorHightRight.Size.width = screenWidth / 2 - 8
SelectorHightLeft.Size.width = screenWidth / 2 - 8
SelectorHightLeft.Position.x = screenWidth - 8
highlightRight.Position.x = screenWidth
ResetListViewContent()
end
trace("Load Music_AddSongs_Landscape.lua end")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -