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

📄 2.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;1;0,0,9,25,36,45,56;; 252e3f90_manila_188C.luac 

EndMarquee = function()
   TitleScroll._visible = false
   title._visible = true
end

OnMarqueeTimer = function(l_2_0, l_2_1)
   l_2_0:Stop()
   title._visible = false
   TitleScroll._visible = true
   local l_2_2 = tonumber(l_2_1.width)
   if l_2_2 == nil then
      l_2_2 = 0
   end
   TitleScroll._visible = true
   title._visible = false
   local l_2_3 = Vector3(l_2_1.title1.Position.x, l_2_1.title1.Position.y, 0)
   local l_2_4 = Vector3(l_2_1.title1.Position.x - l_2_2 - 60, l_2_1.title1.Position.y, 0)
   local l_2_5 = Vector3(l_2_1.title2.Position.x, l_2_1.title2.Position.y, 0)
   local l_2_6 = Vector3(l_2_1.title2.Position.x - l_2_2 - 60, l_2_1.title2.Position.y, 0)
   l_2_1.title1.Position:Interpolate(l_2_3, l_2_4, 200, 0, Interpolate_Linear)
   l_2_1.title2.Position:Interpolate(l_2_5, l_2_6, 200, 0, Interpolate_Linear, EndMarquee)
end

EnableMarquee = function(l_3_0, l_3_1)
   gMarquee = l_3_0
   if l_3_1 > 900 then
      l_3_1 = 900
   end
   if l_3_0 == true then
      TitleScroll1.Position.x = 67
      TitleScroll1.Size.width = l_3_1
      TitleScroll2.Position.x = 67 + l_3_1 + 60
      TitleScroll2.Size.width = l_3_1
      TitleScroll1.String = title.String
      TitleScroll2.String = title.String
   end
   TitleScroll1.Position:ClearInterpolate()
   TitleScroll2.Position:ClearInterpolate()
   if l_3_0 == false then
      TitleScroll._visible = false
      title._visible = true
      if gMarqueeTimer ~= nil then
        gMarqueeTimer:Stop()
      end
   elseif gMarqueeTimer == nil then
     gMarqueeTimer = timer(3)
     local con = {title1 = TitleScroll1, title2 = TitleScroll2, width = l_3_1}
     gMarqueeTimer.context = con
     gMarqueeTimer.OnElapsed:connect(OnMarqueeTimer)
   else
     gMarqueeTimer:Stop()
     local con = {title1 = TitleScroll1, title2 = TitleScroll2, width = l_3_1}
     gMarqueeTimer.context = con
     gMarqueeTimer:Start()
   end
end


⌨️ 快捷键说明

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