peoplecallhistory_landscape.luac.lua

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

LUA
71
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0;0;;0,0,0,8,12,15,18; 7d2c8558_manila.luac 

trace("Load peopleCallHistory_ScreenRotation.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
peopleCallHistory_ScreenRotation = class(RotationTemplate)
peopleCallHistory_ScreenRotation.__init = function(l_1_0, l_1_1, l_1_2)
   trace("+++++++[peopleCallHistory_ScreenRotation] : __init")
   l_1_0._Camera2D = l_1_1
   l_1_0._Camera3D = l_1_2
   RotationTemplate.__init(l_1_0)
end

peopleCallHistory_ScreenRotation.OnScreenRotation = function(l_2_0)
   trace("+++++++[peopleCallHistory_ScreenRotation] : OnScreenRotation")
   l_2_0._Camera2D.Viewport.value = RectF(0, 0, screenWidth, screenHeight - SystemTitlebarHeight * 2)
   l_2_0._Camera2D.ViewRight.value = screenWidth
   l_2_0._Camera2D.ViewButtom.value = -(screenHeight - SystemTitlebarHeight * 2)
   l_2_0._Camera3D.Viewport.value = RectF(0, 0, screenWidth, screenHeight - SystemTitlebarHeight * 2)
   l_2_0._Camera3D.ViewRight.value = screenWidth
   l_2_0._Camera3D.ViewButtom.value = screenHeight - SystemTitlebarHeight * 2
   l_2_0._Camera3D.CameraPosition.z = l_2_0._Camera3D.Viewport.height / 2
   if CallHistoryListview:HasLayout() then
      CallHistoryListview:GetLayout():SetItemSize(screenWidth, 80, 0)
   end
   if _application.Orientation == ScreenOrientation_Portrait then
      peopleCallHistory_Mask.Rectangle = RectFProperty(RectF(0, ManilaTitleBarHeight, screenWidth, screenHeight - SystemTitlebarHeight * 2))
      CallHistoryListview.Viewport.value = Vector3(screenWidth, 555, 0)
      CallHistoryGroup.Position.value = Vector3(-240, 288, 0)
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         peopleCallHistory_Mask.Rectangle = RectFProperty(RectF(0, ManilaTitleBarHeight, screenWidth, screenHeight - SystemTitlebarHeight * 2))
         CallHistoryListview.Viewport.value = Vector3(screenWidth, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight, 0)
         CallHistoryGroup.Position.value = Vector3(-400, 127, 0)
      end
   end
   if l_2_0._generator ~= nil and l_2_0._PIDB ~= nil then
      l_2_0:ResetListviewItemLayout()
   end
end

peopleCallHistory_ScreenRotation.ResetListviewItemLayout = function(l_3_0)
   trace("+++++++[PeopleMessageSelector_ScreenRotation] : ResetListviewItemLayout Beginning")
   if l_3_0._generator ~= nil then
      for i = 0, l_3_0._generator:GetCount() - 1 do
         l_3_0:AdjustListviewItemLayout(l_3_0._PIDB:GetMailMessagingInstance(l_3_0._Collection:GetItem(i)), l_3_0._generator:GetItem(i))
      end
   end
   trace("+++++++[PeopleMessageSelector_ScreenRotation] : ResetListviewItemLayout Finished")
end

peopleCallHistory_ScreenRotation.AdjustListviewItemLayout = function(l_4_0, l_4_1, l_4_2)
   trace("+++++++[peopleCallHistory_ScreenRotation] : ResetListviewItemLayout Beginning")
   if l_4_2 ~= nil and l_4_1 ~= nil then
      local l_4_3 = l_4_2.Namespace
      local l_4_4 = l_4_3:FindName("ContactItemDotLine")
      local l_4_5 = l_4_3:FindName("Time")
      local l_4_6 = l_4_3:FindName("DirectionIcon")
      local l_4_7 = l_4_3:FindName("Selector")
      l_4_7.Scale.x = screenWidth / 480
      l_4_4.Size.width = screenWidth
      l_4_4.TextureCoords.width = screenWidth / 2
      l_4_5.Position.x = screenWidth - 143
      l_4_6.Position.x = screenWidth - 51
   end
   trace("+++++++[peopleCallHistory_ScreenRotation] : ResetListviewItemLayout Finished")
end


⌨️ 快捷键说明

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