albumlandscape.luac.lua

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

LUA
73
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 14;0;; 35a10783_manila.luac 

trace("Album Landscape")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
Album_ScreenRotation = class(RotationTemplate)
local l_0_0 = Album_ScreenRotation
l_0_0.__init = function(l_1_0, l_1_1)
   l_1_0._ResetLayoutCallback = l_1_1
   trace("Album_ScreenRotation:__init later")
   RotationTemplate.__init(l_1_0)
end

l_0_0 = Album_ScreenRotation
l_0_0.OnScreenRotation = function(l_2_0)
   Camera2DBegin.Viewport.value = RectF(0, 0, screenWidth, screenHeight - 2 * SystemTitlebarHeight)
   Camera2DBegin.ViewLeft.value = 0
   Camera2DBegin.ViewRight.value = screenWidth
   Camera2DBegin.ViewTop.value = 0
   Camera2DBegin.ViewButtom.value = -(screenHeight - 2 * SystemTitlebarHeight)
   Listview3DCamera.Viewport.value = RectF(0, 0, screenWidth, screenHeight - 2 * SystemTitlebarHeight)
   Listview3DCamera.ViewLeft.value = 0
   Listview3DCamera.ViewRight.value = screenWidth
   Listview3DCamera.ViewTop.value = 0
   Listview3DCamera.ViewButtom.value = screenHeight - 2 * SystemTitlebarHeight
   if _application.Orientation == ScreenOrientation_Portrait then
      trace("Album_ScreenRotation_Portrait")
      Listview3DCamera.CameraPosition.value = Vector3(0, 50, 415)
      ControlPanel2D.Position.x = 0
      ControlPanel2D.Position.y = 0
      ArrowGroups.Position.y = -322
      KeyUpSprit.Position.y = 60
      KeyUpSprit.Size.height = 130
      InitPortraitConstant()
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         trace("Album_ScreenRotation_Landscape")
         Listview3DCamera.CameraPosition.value = Vector3(0, 50, 224)
         ControlPanel2D.Position.x = 307
         ControlPanel2D.Position.y = SystemTitlebarHeight
         ArrowGroups.Position.y = -272
         KeyUpSprit.Position.y = 10
         KeyUpSprit.Size.height = 80
         RightBound = 674
         PanoramaWidth = 344
         PanoramaHeight = 120
         PanoramaVWidth = 108
         PanoramaVHeight = 176
         PortraitWidth = 132
         PortraitHeight = 176
         LandscapeWidth = 200
         LandscapeHeight = 150
         WideLandscapeWidth = 250
         WideLandscapeHeight = 150
         ParaOff = 0
         LOff = -5
         WLOff = 0
         POff = -7
         VParaOff = -7
         PhotoHitTarget.Position.x = 212
         PhotoHitTarget.Position.y = -36
         PhotoHitTarget.Size.width = 360
         PhotoHitTarget.Size.height = 300
      end
   end
   if l_2_0._ResetLayoutCallback then
      l_2_0._ResetLayoutCallback()
   end
end


⌨️ 快捷键说明

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