⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 peopledetail_landscape.luac.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 1.0 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l2 ;;4;27,40,70,80,80,80,81; 79b91c3d_manila.luac 

trace("Load SettingsPage_Landscape.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
peopleDetail_ScreenRotation = class(RotationTemplate)
peopleDetail_ScreenRotation.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4)
   l_1_0._Listview = l_1_1
   l_1_0._Camera3D = l_1_3
   l_1_0._Camera2D = l_1_2
   l_1_0._Mask = l_1_4
   RotationTemplate.__init(l_1_0)
   trace("+++++++[ConfigListView_ScreenRotation] : __init")
end

peopleDetail_ScreenRotation.OnScreenRotation = function(l_2_0)
   trace("+++++++[ConfigListView_ScreenRotation] : OnScreenRotation")
   local l_2_1 = screenHeight
   l_2_1 = l_2_1 - 2 * SystemTitlebarHeight
   if l_2_0._Camera2D then
      l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
      l_2_0._Camera2D.ViewLeft.value = 0
      l_2_0._Camera2D.ViewRight.value = screenWidth
      l_2_0._Camera2D.ViewTop.value = 0
      l_2_0._Camera2D.ViewButtom.value = -(l_2_1)
   end
   trace("+++++++[ConfigListView_ScreenRotation] : Setting Camera2D")
   if l_2_0._Camera3D then
      l_2_0._Camera3D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
      l_2_0._Camera3D.ViewLeft.value = 0
      l_2_0._Camera3D.ViewRight.value = screenWidth
      l_2_0._Camera3D.ViewTop.value = 0
      l_2_0._Camera3D.ViewButtom.value = l_2_1
      l_2_0._Camera3D.CameraPosition.value = Vector3(0, 0, (l_2_1) / 2)
   end
   trace("+++++++[ConfigListView_ScreenRotation] : Setting Camera3D")
   ContactPhoto.Position.x = screenWidth - 76
   ContactPhotoFrame.Position.x = screenWidth - 85
   MyFavesContactPhoto.Position.x = screenWidth - 85
   TitleBackground.Size.width = screenWidth
   TitleBackground.TextureCoords.width = screenWidth / 2
   if _application.Orientation == ScreenOrientation_Portrait then
      if _application.Navigation.TabVisibility then
         l_2_0._Mask.Rectangle = RectFProperty(RectF(0, 60, 480, 560))
         LVHeight = 524
      else
         l_2_0._Mask.Rectangle = RectFProperty(RectF(0, 60, 480, 636))
         LVHeight = 636
      end
      Group2D._visible = true
      AllPeopleGroup.Position.value = Vector3(-240, 268, 0)
      LVPositionX = 0
      LVPositionY = 0
      LVWidth = 480
      ItemSizeWidth = 480
      ItemSizeHeight = 81
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         if _application.Navigation.CurrentRequest.PageGroup.Level == 0 then
            LVPositionY = 61
            LVHeight = 356
            l_2_0._Mask.Rectangle = RectFProperty(RectF(-500, 0, 2000, 2000))
         else
            LVPositionY = 0
            LVHeight = 295
            l_2_0._Mask.Rectangle = RectFProperty(RectF(-500, 60, 2000, 2000))
         end
         Group2D._visible = true
         AllPeopleGroup.Position.value = Vector3(-400, 107, 0)
         LVPositionX = 0
         LVWidth = 800
         ItemSizeWidth = 800
         ItemSizeHeight = 81
      end
   end
   trace("+++++++[ConfigListView_ScreenRotation] : Setting Layout")
   l_2_0:ResetListViewContent(_application.Orientation)
end

peopleDetail_ScreenRotation.ResetListViewContent = function(l_3_0, l_3_1)
   trace("+++++++[ConfigListView_ScreenRotation] : ResetListViewContent")
   if not l_3_0._Listview:HasLayout() then
      return 
   end
   l_3_0._Listview.Position.x = LVPositionX
   l_3_0._Listview.Position.y = LVPositionY
   l_3_0._Listview.Viewport.x = LVWidth
   l_3_0._Listview.Viewport.y = LVHeight
   local l_3_2 = Vector3F()
   l_3_2.x = ItemSizeWidth
   l_3_2.y = ItemSizeHeight
   l_3_2.z = 0
   l_3_0._Listview:GetLayout().ItemSize = l_3_2
   local l_3_3 = l_3_0._Listview:GetLayout().SelectionNode
   if l_3_3 then
      if l_3_0._application.Orientation == ScreenOrientation_Portrait then
         l_3_3.Scale = Vector3Property(Vector3(1, 1, 1))
      else
         if l_3_0._application.Orientation == ScreenOrientation_Landscape then
            l_3_3.Scale = Vector3Property(Vector3(1.6999969482422, 1, 1))
         end
      end
   end
   local l_3_4 = nil
   if l_3_0._Listview:TypeOf("SequentialListView") then
      l_3_4 = true
   else
      l_3_4 = false
   end
   local l_3_5, l_3_6, l_3_7 = nil, nil, nil
   local l_3_8 = 0
   if l_3_4 then
      l_3_8 = l_3_0._Listview:GetGenerator():GetRealizedItemCount()
   else
      l_3_8 = l_3_0._Listview:GetGenerator():GetCount()
   end
   local l_3_9 = l_3_0._Listview:GetGenerator()
   for i = 0, l_3_8 - 1 do
      l_3_5 = l_3_9:GetItem(i)
      if l_3_5 then
         _Namespace = l_3_5.Namespace
         if l_3_4 and l_3_9:IsRealizedItemAHeader(i) then
            HeaderBackground = _Namespace:FindName("HeaderBackground")
            if HeaderBackground then
               HeaderBackground.Size.width = ItemSizeWidth
               HeaderBackground.TextureCoords:set(0, 0, ItemSizeWidth / 2, 0.8125)
            end
         else
            Selector = _Namespace:FindName("Selector")
            if Selector then
               if l_3_1 == ScreenOrientation_Portrait then
                  Selector.Scale = Vector3Property(Vector3(1, 1, 1))
               elseif l_3_1 == ScreenOrientation_Landscape then
                  Selector.Scale = Vector3Property(Vector3(1.6999969482422, 1, 1))
               end
            end
            l_3_6 = _Namespace:FindName("dottedline")
            if l_3_6 then
               l_3_6.Size.width = ItemSizeWidth
               l_3_6.TextureCoords:set(0, 0, ItemSizeWidth / 2, 1)
            end
            l_3_7 = _Namespace:FindName("MyFavesIcon")
            if l_3_7 then
               l_3_7.Position.x = screenWidth - 55
            end
         end
      end
   end
end

trace("Load ConfigurationPage_Landscape.lua end")

⌨️ 快捷键说明

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