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

📄 manilatransitions.luac.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 1.0 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l2 ;1,2,3,4,5,6,7,8;;4,15,16;;;;;;;; 224d44ea_manila.luac 

require("transitions")
require("machine_status_svc")
Manila_MachineStatus = MachineStatus()
OnNavigateTransition = function(l_1_0, l_1_1)
   local l_1_2 = 23
   local l_1_3 = 23
   local l_1_4 = 13
   local l_1_5 = 13
   local l_1_6 = 1
   local l_1_7 = 1
   local l_1_8 = -1
   local l_1_9 = -1
   if l_1_0 == NavigateDirection_Right then
      l_1_3 = 21
      l_1_7 = -1
   elseif l_1_0 == NavigateDirection_Left then
      l_1_3 = 25
      l_1_7 = 3
   elseif l_1_0 == NavigateDirection_Back then
      l_1_5 = 9
      l_1_9 = -5
   elseif l_1_0 == NavigateDirection_Front then
      l_1_5 = 17
      l_1_9 = 3
   end
   grid.TextureCoords:Interpolate(RectF(l_1_2, l_1_4, l_1_6, l_1_8), RectF(l_1_3, l_1_5, l_1_7, l_1_9), animationtime, 0, l_1_1)
   previewRoot.Opacity:Interpolate(0, 0, animationtime, l_1_1)
end

AnimatingVisibility = false
ShellOutAnimationComplete = function()
   trace("Animation complete!")
end

OnShellout = function(l_3_0)
   trace("***- SHELLED OUT!!!")
   local l_3_1 = false
   l_3_1 = Manila_MachineStatus.FadeColor.Exists
   if l_3_1 == true then
      trace("Animating out!")
      local l_3_2 = Manila_MachineStatus.FadeColor.Value
      local l_3_3 = 10
      RootGroup.Opacity:Interpolate(100, 0, l_3_3, 0, Interpolate_Linear, ShellOutAnimationComplete)
      PregenImage.Color = l_3_2
      PregenImageGroup.Opacity:Interpolate(0, 100, l_3_3, 0, Interpolate_Linear)
   end
end

OnAppVisibilityChanged = function()
   trace("***- VISIBILITY CHANGED!!! = " .. tostring(_application.Visibility))
   if _application.Visibility == true then
      RootGroup.Opacity:ClearInterpolate()
      RootGroup.Opacity.value = 100
      PregenImageGroup.Opacity:ClearInterpolate()
      PregenImageGroup.Opacity.value = 0
   end
end

_application.OnVisibilityChanged:connect(OnAppVisibilityChanged)
Shell_GetOnNavigateTo():connect(OnShellout)
BGChange = function(l_5_0)
   if l_5_0 == 0 then
      BackGroundLevel0._visible = true
      BackGroundLevel0_bottom._visible = true
      BackGroundLevel1._visible = false
      BackGroundLevel1_bottom._visible = false
      BackGroundLevel1.Opacity:Interpolate(0, animationtime, 0, Interpolate_Linear)
      BackGroundLevel1_bottom.Opacity:Interpolate(0, animationtime, 0, Interpolate_Linear)
      TitleBarLevel1.Opacity:Interpolate(0, animationtime, 0, Interpolate_Linear)
      TitleBarLevel2.Opacity:Interpolate(0, animationtime, 0, Interpolate_Linear)
      TitleText._visible = true
      TitleTextLowLayer._visible = false
   elseif l_5_0 >= 1 then
      BackGroundLevel0._visible = false
      BackGroundLevel0_bottom._visible = false
      BackGroundLevel1._visible = true
      BackGroundLevel1_bottom._visible = true
      BackGroundLevel1.Opacity:Interpolate(100, animationtime, 0, Interpolate_Linear)
      BackGroundLevel1_bottom.Opacity:Interpolate(100, animationtime, 0, Interpolate_Linear)
      TitleBarLevel1.Opacity:Interpolate(100, animationtime, 0, Interpolate_Linear)
      TitleBarLevel2.Opacity:Interpolate(0, animationtime, 0, Interpolate_Linear)
      TitleText._visible = false
      TitleTextLowLayer._visible = true
   end
end

tabBGChange = function(l_6_0)
   if l_6_0 == 0 then
      TabBackgroundGraphicLevel1._visible = false
      TabBackgroundGraphicLevel0._visible = true
   elseif l_6_0 > 0 then
      TabBackgroundGraphicLevel1._visible = true
      TabBackgroundGraphicLevel0._visible = false
   end
end

hideTabs = function(l_7_0, l_7_1)
   trace("hideTabs\n")
   if tabsShown == true then
      tabsShown = false
      tabControl.Opacity.value = 0
      tabControl.Position:Interpolate(Vector3(tabControl.Position.x, 91, tabControl.Position.z), Vector3(tabControl.Position.x, -1, tabControl.Position.z), animationtime / 2, 0, Interpolate_EaseInQuart, l_7_0, l_7_1)
      previewRoot.Opacity.value = 0
   end
end

showTabs = function(l_8_0, l_8_1)
   trace("showTabs\n")
   if tabsShown == false then
      tabsShown = true
      initializeLayout()
      tabControl.Opacity.value = 100
      tabControl.Position:Interpolate(Vector3(tabControl.Position.x, -1, tabControl.Position.z), Vector3(tabControl.Position.x, 91, tabControl.Position.z), animationtime / 2, 0, Interpolate_EaseOutQuart, l_8_0, l_8_1)
   end
end

setTabTrayOpacity = function(l_9_0)
   trace("setting Tab Tray opacity to: " .. l_9_0 .. "\n")
   TabBackgroundGraphicLevel0.Opacity:Interpolate(l_9_0, animationtime, 0, Interpolate_Linear)
   TabBackgroundGraphicLevel1.Opacity:Interpolate(l_9_0, animationtime, 0, Interpolate_Linear)
end

setHomeTitleOpacity = function(l_10_0)
   if l_10_0 == 100 then
      TitleBarLevel0._visible = true
      HomeTitleBar._visible = false
   else
      TitleBarLevel0._visible = false
      HomeTitleBar._visible = true
   end
end


⌨️ 快捷键说明

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