music_rearrange_landscape.luac.lua

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

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

trace("Load Music_Rearrange_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
gSubTitleBar_Height = 51
ResetListViewContent = function()
   trace("+++++++[Music_Rearrange_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
   local l_1_7 = 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("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("TabMoveIcon")
         l_1_5.Position.x = screenWidth - 62
         l_1_6 = l_1_1.Namespace:FindName("TargetLine")
         l_1_6.Size.width = screenWidth
         l_1_7 = l_1_1.Namespace:FindName("HitArea")
         l_1_7.Size.width = screenWidth
      end
   end
end

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

Music_Rearrange_ScreenRotation.OnScreenRotation = function(l_3_0)
   trace("+++++++[Music_Rearrange_ScreenRotation] : OnScreenRotation")
   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))
   FakeMovingObj.Size.width = screenWidth
   Faketitle.Size.width = screenWidth - 160
   Fakealbumartist.Size.width = screenWidth - 160
   MoveUpArea.Size.width = screenWidth
   MoveDownArea.Size.width = screenWidth
   SubTitleBg.Size.width = screenWidth
   SubTitleText.Size.width = screenWidth
   if _application.Orientation == ScreenOrientation_Portrait then
      trace("+++++++[Music_Rearrange_ScreenRotation] : Portrait mode")
      MoveDownArea.Position.y = -670
      glistview_item_count_per_page = 7
      gDragMax_Y = 700
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         trace("+++++++[Music_Rearrange_ScreenRotation] : Landscape mode")
         MoveDownArea.Position.y = -350
         glistview_item_count_per_page = 3
         gDragMax_Y = 380
      end
   end
   ResetListViewContent()
end

trace("Load Music_Rearrange_Landscape.lua end")

⌨️ 快捷键说明

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