music_delete_playlist_landscape.luac.lua

来自「htc manila 2 sourcecode」· LUA 代码 · 共 87 行

LUA
87
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;42,52,53;0;0,25; 7f6deb36_manila.luac 

trace("Load MusicDeletePlaylist_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
gSubTitleBar_Height = 51
ResetListViewContent = function()
   trace("+++++++[MusicDeletePlaylist_ScreenRotation] : ResetListViewContent")
   if not listview:HasLayout() then
      return 
   end
   listview.Viewport.x = screenWidth
   if _application.Orientation == ScreenOrientation_Portrait then
      listview.Viewport.y = screenHeight - 217
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         listview.Viewport.y = screenHeight - 2 * SystemTitlebarHeight - ManilaTitleBarHeight - gSubTitleBar_Height
      end
   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
         trace("+++++++[MusicDeletePlaylist_ScreenRotation] : ResetListViewContent item index = " .. i .. "\n")
         l_1_2 = l_1_1.Namespace:FindName("seperator")
         l_1_2.TextureCoords:set(0, 0, screenWidth / 2, 1)
         l_1_2.Size.width = screenWidth
         l_1_3 = l_1_1.Namespace:FindName("title")
         l_1_3.Size.width = screenWidth - 160
         l_1_4 = l_1_1.Namespace:FindName("albumartist")
         l_1_4.Size.width = screenWidth - 160
         l_1_5 = l_1_1.Namespace:FindName("checkbox")
         l_1_5.Position.x = screenWidth - 62
         l_1_6 = l_1_1.Namespace:FindName("removeicon")
         l_1_6.Position.x = screenWidth - 51
      end
   end
end

MusicDeletePlaylist_ScreenRotation = class(RotationTemplate)
MusicDeletePlaylist_ScreenRotation.__init = function(l_2_0)
   RotationTemplate.__init(l_2_0)
   trace("+++++++[MusicDeletePlaylist_ScreenRotation] : __init")
end

MusicDeletePlaylist_ScreenRotation.OnScreenRotation = function(l_3_0)
   trace("+++++++[MusicDeletePlaylist_ScreenRotation] : OnScreenRotation")
   if _application.Orientation == ScreenOrientation_Portrait then
      trace("+++++++[MusicDeletePlaylist_ScreenRotation] : Portrait mode")
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         trace("+++++++[MusicDeletePlaylist_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 MusicDeletePlaylist_Landscape.lua end")

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?