clockpageadd_landscape.luac.lua

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

LUA
112
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;0;0;0,0,0,6,9; 22819f46_manila.luac 

trace("Load ClockPageAdd_ScreenRotation.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
LocationLVHeght = 50
ClockPageAdd_ScreenRotation = class(RotationTemplate)
ClockPageAdd_ScreenRotation.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4, l_1_5, l_1_6, l_1_7, l_1_8, l_1_9)
   trace("+++++++[ClockPageAdd_ScreenRotation] : __init")
   l_1_0._Camera2D = l_1_1
   l_1_0._Mask = l_1_2
   l_1_0._LvCountry = l_1_3
   l_1_0._LvsCountry = l_1_4
   l_1_0._LvCity = l_1_5
   l_1_0._LvsCity = l_1_6
   l_1_0._LetterGroup = l_1_7
   l_1_0._LvLetter = l_1_8
   l_1_0._ChrGroup = l_1_9
   l_1_0._status = _application.Orientation
   RotationTemplate.__init(l_1_0)
end

ClockPageAdd_ScreenRotation.OnScreenRotation = function(l_2_0)
   trace("+++++++[ClockPageAdd_ScreenRotation] : OnScreenRotation")
   l_2_0._status = _application.Orientation
   _application.Navigation.TabVisibility = false
   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._Mask.Rectangle = RectFProperty(RectF(0, ManilaTitleBarHeight + LocationLVHeght, screenWidth, screenHeight - SystemTitlebarHeight * 2))
   l_2_0._LvCountry.Viewport.value = Vector3(screenWidth, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight - LocationLVHeght, 0)
   l_2_0._LvCity.Viewport.value = Vector3(screenWidth, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight - LocationLVHeght, 0)
   l_2_0._LvLetter.Viewport.value = Vector3(50, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight - 50, 0)
   Text_bg.Size.width = screenWidth - 20
   if l_2_0._status == ScreenOrientation_Portrait then
      l_2_0._LvsCountry.Scale = Vector3Property(Vector3(0.98957824707031, 1, 1))
      l_2_0._LvsCity.Scale = Vector3Property(Vector3(0.98957824707031, 1, 1))
      l_2_0._LetterGroup.Position.x = screenWidth - 55
      l_2_0._LetterGroup.Position.y = -108
      if objLetterPicker then
         objLetterPicker:ReSetItem(18, l_2_0._LvLetter.Viewport.y)
      end
      CharacterDialogGroup.Position.value = Vector3(171, -280, 0)
   else
      if l_2_0._status == ScreenOrientation_Landscape then
         l_2_0._LvsCountry.Scale = Vector3Property(Vector3(1.65625, 1, 1))
         l_2_0._LvsCity.Scale = Vector3Property(Vector3(1.65625, 1, 1))
         l_2_0._LetterGroup.Position.x = screenWidth - 55
         l_2_0._LetterGroup.Position.y = -108
         if objLetterPicker then
            objLetterPicker:ReSetItem(11, l_2_0._LvLetter.Viewport.y)
         end
         CharacterDialogGroup.Position.value = Vector3(332, -130, 0)
      end
   end
   if l_2_0._LvCountry._visible then
      l_2_0._generator = l_2_0._LvCountry:GetGenerator()
   end
   if l_2_0._LvCity._visible then
      l_2_0._generator = l_2_0._LvCity:GetGenerator()
   end
   if l_2_0._generator ~= nil then
      l_2_0:ResetListviewItemLayout()
   end
   trace("Start check self._ListView:HasLayout()")
   if l_2_0._LvCountry:HasLayout() then
      trace("ItemSize = " .. tostring(l_2_0._LvCountry:GetLayout().ItemSize.x))
      local vector = Vector3F()
      vector.x = screenWidth
      vector.y = 80
      vector.z = 0
      l_2_0._LvCountry:GetLayout().ItemSize = vector
      trace("ItemSize = " .. tostring(l_2_0._LvCountry:GetLayout().ItemSize.x))
   end
   trace("Finish check self._ListView:HasLayout()")
   trace("Start check self._ListView:HasLayout()")
   if l_2_0._LvCity:HasLayout() then
      trace("ItemSize = " .. tostring(l_2_0._LvCity:GetLayout().ItemSize.x))
      local vector = Vector3F()
      vector.x = screenWidth
      vector.y = 80
      vector.z = 0
      l_2_0._LvCity:GetLayout().ItemSize = vector
      trace("ItemSize = " .. tostring(l_2_0._LvCity:GetLayout().ItemSize.x))
   end
   trace("Finish check self._ListView:HasLayout()")
end

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

ClockPageAdd_ScreenRotation.AdjustListviewItemLayout = function(l_4_0, l_4_1, l_4_2)
   if l_4_2 ~= nil then
      trace("+++++++[ClockPageAdd_ScreenRotation] : ResetListviewItemLayout Beginning")
      local l_4_3 = l_4_2.Namespace
      local l_4_4 = l_4_3:FindName("dottedline")
      l_4_4.Size.width = screenWidth
      l_4_4.TextureCoords.width = screenWidth / 2
      trace("+++++++[ClockPageAdd_ScreenRotation] : ResetListviewItemLayout Finished")
   end
end


⌨️ 快捷键说明

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