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

📄 modaldialog_landscape.luac.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 8;0;0,37;; 7c9ded1a_manila.luac 

trace("Load modaldialog_Landscape.lua begin")
require("class")
local l_0_0 = class()
ModalDlg_Rotation = l_0_0
l_0_0 = ModalDlg_Rotation
l_0_0.__init = function(l_1_0, l_1_1)
   trace("+++++++[ModalDlg_Rotation] : __init")
   l_1_0._DlgGroup = l_1_1
   l_1_0._application = _application
   l_1_0._request = _request
   l_1_0._application.OnOrientationChanged:connect(l_1_0.OnScreenRotation, l_1_0)
   l_1_0._application.DialogManager.OnDialogOut:connect(l_1_0.Destory, l_1_0)
   l_1_0:OnScreenRotation()
end

l_0_0 = ModalDlg_Rotation
l_0_0.OnScreenRotation = function(l_2_0)
   trace("+++++++++[ModalDlg_Rotation] : OnScreenRotation")
   if _application.Orientation == ScreenOrientation_Portrait then
      screenWidth = 480
      screenHeight = 800
      l_2_0._DlgGroup.Position.x = 20
      l_2_0._DlgGroup.Position.y = -80
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         screenWidth = 800
         screenHeight = 480
         l_2_0._DlgGroup.Position.x = 180
         l_2_0._DlgGroup.Position.y = -5
      end
   end
   SystemTitlebarHeight = 52
   local l_2_1 = screenHeight
   l_2_1 = l_2_1 - 2 * SystemTitlebarHeight
   Camera_2D.Viewport.value = RectF(0, 0, screenWidth, l_2_1)
   Camera_2D.ViewLeft.value = 0
   Camera_2D.ViewRight.value = screenWidth
   Camera_2D.ViewTop.value = 0
   Camera_2D.ViewButtom.value = -(l_2_1)
end

l_0_0 = ModalDlg_Rotation
l_0_0.Destory = function(l_3_0)
   trace("+++++++++[ModalDlg_Rotation] : Destory")
   l_3_0._application.OnOrientationChanged:disconnect(l_3_0.OnScreenRotation, l_3_0)
   l_3_0._application.DialogManager.OnDialogOut:disconnect(l_3_0.Destory, l_3_0)
end


⌨️ 快捷键说明

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