1.lua

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

LUA
38
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0;0;; 190f7f60_manila_ADC.luac 

pressLaunchCameraOnRelease = function(l_1_0, l_1_1)
   if gnViewType == 1 then
      gLaunchCamera()
      l_1_1 = true
   end
end

ConnectPortraitLaunchCamera = function(l_2_0)
   if l_2_0 == true then
      pressLauncgCameraText_P.onRelease:connect(pressLaunchCameraOnRelease)
      noImageSprit_P.onRelease:connect(pressLaunchCameraOnRelease)
   else
      pressLauncgCameraText_P.onRelease:disconnect(pressLaunchCameraOnRelease)
      noImageSprit_P.onRelease:disconnect(pressLaunchCameraOnRelease)
   end
end

ConnectLandscapeLaunchCamera = function(l_3_0)
   if l_3_0 == true then
      pressLauncgCameraText_L.onRelease:connect(pressLaunchCameraOnRelease)
      noImageSprit_L.onRelease:connect(pressLaunchCameraOnRelease)
   else
      pressLauncgCameraText_L.onRelease:disconnect(pressLaunchCameraOnRelease)
      noImageSprit_L.onRelease:disconnect(pressLaunchCameraOnRelease)
   end
end


if _application.Store:GetStringValue(Lifetime_Permanent, "EnableLandscape") == "true" and
  _application.Orientation == ScreenOrientation_Landscape then
  ConnectLandscapeLaunchCamera(true)
else
  ConnectPortraitLaunchCamera(true)
end

⌨️ 快捷键说明

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