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

📄 clockpageedit_landscape.luac.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 14;0;0;0;0,0,0,6,9,10,13,19,25; 038a6163_manila.luac 

trace("Load ClockPageEdit_ScreenRotation.lua begin")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
ClockPageEdit_ScreenRotation = class(RotationTemplate)
local l_0_0 = ClockPageEdit_ScreenRotation
l_0_0.__init = function(l_1_0, l_1_1, l_1_2, l_1_3, l_1_4)
   trace("+++++++[ClockPageView_ScreenRotation] : __init")
   l_1_0._Camera2D = l_1_1
   l_1_0._Mask = l_1_2
   l_1_0._ListView = l_1_3
   l_1_0._status = _application.Orientation
   l_1_0._physicalscroll = l_1_4
   if _application.Orientation == ScreenOrientation_Portrait and PhysicalScrollConnected then
      l_1_0._physicalscroll:DisconnectMouseEvents()
      PhysicalScrollConnected = false
   else
      if _application.Orientation == ScreenOrientation_Landscape and not PhysicalScrollConnected then
         l_1_0._physicalscroll:ConnectMouseEvents()
         PhysicalScrollConnected = true
      end
   end
   RotationTemplate.__init(l_1_0)
end

l_0_0 = ClockPageEdit_ScreenRotation
l_0_0.OnScreenRotation = function(l_2_0)
   trace("+++++++[ClockPageView_ScreenRotation] : OnScreenRotation")
   if _application.Orientation == ScreenOrientation_Portrait and PhysicalScrollConnected then
      l_2_0._physicalscroll:DisconnectMouseEvents()
      PhysicalScrollConnected = false
   else
      if _application.Orientation == ScreenOrientation_Landscape and not PhysicalScrollConnected then
         l_2_0._physicalscroll:ConnectMouseEvents()
         PhysicalScrollConnected = true
      end
   end
   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)
   if l_2_0._ListView:HasLayout() then
      l_2_0._ListView:GetLayout():SetItemSize(screenWidth, 600, 0)
   end
   l_2_0._Mask.Rectangle = RectFProperty(RectF(0, ManilaTitleBarHeight, screenWidth, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight))
   l_2_0._status = _application.Orientation
   if l_2_0._status == ScreenOrientation_Portrait then
      l_2_0._ListView.Viewport.value = Vector3(screenWidth, 450, 0)
   else
      if l_2_0._status == ScreenOrientation_Landscape then
         l_2_0._ListView.Viewport.value = Vector3(screenWidth, screenHeight - SystemTitlebarHeight * 2 - ManilaTitleBarHeight - 90, 0)
      end
   end
   if l_2_0._generator ~= nil then
      l_2_0:ResetListviewItemLayout()
   end
end

l_0_0 = ClockPageEdit_ScreenRotation
l_0_0.ResetListviewItemLayout = function(l_3_0)
   if l_3_0._generator ~= nil then
      trace("+++++++[ClockPageEdit_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("+++++++[ClockPageEdit_ScreenRotation] : ResetListviewItemLayout Finished")
   end
end

l_0_0 = ClockPageEdit_ScreenRotation
l_0_0.AdjustListviewItemLayout = function(l_4_0, l_4_1, l_4_2)
   if l_4_2 ~= nil then
      trace("+++++++[ClockPageView_ScreenRotation] : ResetListviewItemLayout Beginning")
      local l_4_3 = l_4_2.Namespace
      local l_4_4 = l_4_3:FindName("PageEdit_TimePicker")
      local l_4_5 = 0
      local l_4_6 = l_4_3:FindName("SprSeparator1")
      l_4_6.Size.width = screenWidth
      local l_4_7 = l_4_3:FindName("SprSeparator2")
      l_4_7.Size.width = screenWidth
      local l_4_8 = l_4_3:FindName("SprSeparator3")
      l_4_8.Size.width = screenWidth
      if not AMPMGroup._visible then
         l_4_5 = 38
      end
      if l_4_0._status == ScreenOrientation_Portrait then
         TimeUIGroup.Position.x = 10 + l_4_5
         AMPMGroup.Position.x = 401 + l_4_5
      else
         if l_4_0._status == ScreenOrientation_Landscape then
            TimeUIGroup.Position.x = 175 + l_4_5
            AMPMGroup.Position.x = 566 + l_4_5
         end
      end
      trace("+++++++[ClockPageView_ScreenRotation] : ResetListviewItemLayout Finished")
   end
end


⌨️ 快捷键说明

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