layoutinfo.luac.lua

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

LUA
33
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 20;0;; 5c6d4dc9_manila.luac 

require("Common\\RotationTemplate")
screenWidth = 0
screenHeight = 0
ManilaTitleBarHeight = 60
SystemTitlebarHeight = 52
ManilaTrayBarHeight = 77
Common_ListViewItemHeight = 80
LayoutInfo = class(RotationTemplate)
local l_0_0 = LayoutInfo
l_0_0.__init = function(l_1_0)
   RotationTemplate.__init(l_1_0)
   trace("+++++++[LayoutInfo] : __init")
end

l_0_0 = LayoutInfo
l_0_0.OnScreenRotation = function(l_2_0)
   trace("+++++++[LayoutInfo] : OnScreenRotation")
   if l_2_0._application.Orientation == ScreenOrientation_Portrait then
      screenWidth = 480
      screenHeight = 800
   else
      if l_2_0._application.Orientation == ScreenOrientation_Landscape then
         screenWidth = 800
         screenHeight = 480
      end
   end
end


⌨️ 快捷键说明

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