music_addto_playlist_landscape.luac.lua
来自「htc manila 2 sourcecode」· LUA 代码 · 共 73 行
LUA
73 行
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;40;0;0,25; 307bf36f_manila.luac
trace("Load MusicAddToPlaylist_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
ResetListViewContent = function()
trace("+++++++[MusicAddToPlaylist_ScreenRotation] : ResetListViewContent")
if not listview:HasLayout() then
return
end
listview.Viewport.x = screenWidth
if _application.Orientation == ScreenOrientation_Portrait then
listview.Viewport.y = screenHeight - 166
elseif _application.Orientation == ScreenOrientation_Landscape then
listview.Viewport.y = screenHeight - 2 * SystemTitlebarHeight - ManilaTitleBarHeight
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_0, l_1_1, l_1_2 = nil, nil
for i = 0, ItemListGenerator:GetCount() - 1, 1 do
l_1_0 = ItemListGenerator:GetItem(i)
if l_1_0 then
l_1_1 = l_1_0.Namespace:FindName("seperator")
l_1_1.TextureCoords:set(0, 0, screenWidth / 2, 1)
l_1_1.Size.width = screenWidth
l_1_2 = l_1_0.Namespace:FindName("title")
l_1_2.Size.width = screenWidth - 130
end
end
end
MusicAddToPlaylist_ScreenRotation = class(RotationTemplate)
MusicAddToPlaylist_ScreenRotation.__init = function(l_2_0)
RotationTemplate.__init(l_2_0)
trace("+++++++[MusicAddToPlaylist_ScreenRotation] : __init")
end
MusicAddToPlaylist_ScreenRotation.OnScreenRotation = function(l_3_0)
trace("+++++++[MusicAddToPlaylist_ScreenRotation] : OnScreenRotation")
if _application.Orientation == ScreenOrientation_Portrait then
trace("+++++++[MusicAddToPlaylist_ScreenRotation] : Portrait mode")
else
if _application.Orientation == ScreenOrientation_Landscape then
trace("+++++++[MusicAddToPlaylist_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))
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 MusicAddToPlaylist_Landscape.lua end")
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?