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

📄 5.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 0.6 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1c684cd8_manila_96A2.luac 

DisableFocus = function()
   DisableFocusTimer:Stop()
   trace("DisableFocusTimer Triggered!\n")
   DummyFocusHolder:Focus()
end

DisableFocusTimer = timer(5)
DisableFocusTimer:Stop()
DisableFocusTimer.OnElapsed:connect(DisableFocus)
HandleClockFocusIn = function(l_2_0)
   trace("Home.m9 HandleClockFocusIn")
   alarmSelected = true
   ClockSelectionOutline._visible = true
   Date.Color = GetDateSelectedColor()
   AlarmTime.Color = GetAlarmSelectedColor()
   AlarmTime.Opacity:Interpolate(100, 0, 0, Interpolate_Linear)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleClockFocusOut = function(l_3_0)
   trace("Home.m9 HandleClockFocusOut")
   alarmSelected = false
   ClockSelectionOutline._visible = false
   Date.Color = GetDateUnselectedColor()
   if AlarmClockOn._visible == true then
      AlarmTime.Color = GetAlarmUnselectedColor()
      AlarmTime.Opacity:Interpolate(100, 0, 0, Interpolate_Linear)
   else
      AlarmTime.Color = GetAlarmOffColor()
      AlarmTime.Opacity:Interpolate(50, 0, 0, Interpolate_Linear)
   end
end

Clock.onFocusIn:connect(HandleClockFocusIn)
Clock.onFocusOut:connect(HandleClockFocusOut)
HandleMissedCallFocusIn = function(l_4_0)
   MissedCallSelectionOutline._visible = true
   MissedCallText.Color = GetNotificationMainSelectedColor(MissedCallText)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleMissedCallFocusOut = function(l_5_0)
   MissedCallSelectionOutline._visible = false
   MissedCallText.Color = GetNotificationMainUnselectedColor(MissedCallText)
end

MissedCall.onFocusIn:connect(HandleMissedCallFocusIn)
MissedCall.onFocusOut:connect(HandleMissedCallFocusOut)
HandleVoicemailFocusIn = function(l_6_0)
   VoicemailSelectionOutline._visible = true
   VoicemailText.Color = GetNotificationMainSelectedColor(VoicemailText)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleVoicemailFocusOut = function(l_7_0)
   VoicemailSelectionOutline._visible = false
   VoicemailText.Color = GetNotificationMainUnselectedColor(VoicemailText)
end

Voicemail.onFocusIn:connect(HandleVoicemailFocusIn)
Voicemail.onFocusOut:connect(HandleVoicemailFocusOut)
HandleAppointment0FocusIn = function(l_8_0)
   Appointment0_SelectionOutline._visible = true
   Appointment0_Time.Color = GetNotificationMainSelectedColor(Appointment0_Time)
   Appointment0_Subject.Color = GetNotificationSubSelectedColor(Appointment0_Subject)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleAppointment0FocusOut = function(l_9_0)
   Appointment0_SelectionOutline._visible = false
   Appointment0_Time.Color = GetNotificationMainUnselectedColor(Appointment0_Time)
   Appointment0_Subject.Color = GetNotificationSubUnselectedColor(Appointment0_Subject)
end

Appointment0.onFocusIn:connect(HandleAppointment0FocusIn)
Appointment0.onFocusOut:connect(HandleAppointment0FocusOut)
HandleAppointment1FocusIn = function(l_10_0)
   Appointment1_SelectionOutline._visible = true
   Appointment1_Time.Color = GetNotificationMainSelectedColor(Appointment1_Time)
   Appointment1_Subject.Color = GetNotificationSubSelectedColor(Appointment1_Subject)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleAppointment1FocusOut = function(l_11_0)
   Appointment1_SelectionOutline._visible = false
   Appointment1_Time.Color = GetNotificationMainUnselectedColor(Appointment1_Time)
   Appointment1_Subject.Color = GetNotificationSubUnselectedColor(Appointment1_Subject)
end

Appointment1.onFocusIn:connect(HandleAppointment1FocusIn)
Appointment1.onFocusOut:connect(HandleAppointment1FocusOut)
HandleAppointment2FocusIn = function(l_12_0)
   Appointment2_SelectionOutline._visible = true
   Appointment2_Time.Color = GetNotificationMainSelectedColor(Appointment2_Time)
   Appointment2_Subject.Color = GetNotificationSubSelectedColor(Appointment2_Subject)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleAppointment2FocusOut = function(l_13_0)
   Appointment2_SelectionOutline._visible = false
   Appointment2_Time.Color = GetNotificationMainUnselectedColor(Appointment2_Time)
   Appointment2_Subject.Color = GetNotificationSubUnselectedColor(Appointment2_Subject)
end

Appointment2.onFocusIn:connect(HandleAppointment2FocusIn)
Appointment2.onFocusOut:connect(HandleAppointment2FocusOut)
HandleAppointment3FocusIn = function(l_14_0)
   Appointment3_SelectionOutline._visible = true
   Appointment3_Time.Color = GetNotificationMainSelectedColor(Appointment3_Time)
   Appointment3_Subject.Color = GetNotificationSubSelectedColor(Appointment3_Subject)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleAppointment3FocusOut = function(l_15_0)
   Appointment3_SelectionOutline._visible = false
   Appointment3_Time.Color = GetNotificationMainUnselectedColor(Appointment3_Time)
   Appointment3_Subject.Color = GetNotificationSubUnselectedColor(Appointment3_Subject)
end

Appointment3.onFocusIn:connect(HandleAppointment3FocusIn)
Appointment3.onFocusOut:connect(HandleAppointment3FocusOut)
HandleAppointment4FocusIn = function(l_16_0)
   Appointment4_SelectionOutline._visible = true
   Appointment4_Time.Color = GetNotificationMainSelectedColor(Appointment4_Time)
   Appointment4_Subject.Color = GetNotificationSubSelectedColor(Appointment4_Subject)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleAppointment4FocusOut = function(l_17_0)
   Appointment4_SelectionOutline._visible = false
   Appointment4_Time.Color = GetNotificationMainUnselectedColor(Appointment4_Time)
   Appointment4_Subject.Color = GetNotificationSubUnselectedColor(Appointment4_Subject)
end

Appointment4.onFocusIn:connect(HandleAppointment4FocusIn)
Appointment4.onFocusOut:connect(HandleAppointment4FocusOut)
HandleNoAppointmentsFocusIn = function(l_18_0)
   NoAppointmentsSelectionOutline._visible = true
   NoAppointmentText.Color = GetNotificationMainSelectedColor(NoAppointmentText)
   DisableFocusTimer:Stop()
   DisableFocusTimer:Start()
end

HandleNoAppointmentsFocusOut = function(l_19_0)
   NoAppointmentsSelectionOutline._visible = false
   NoAppointmentText.Color = GetNotificationMainUnselectedColor(NoAppointmentText)
end

NoAppointments.onFocusIn:connect(HandleNoAppointmentsFocusIn)
NoAppointments.onFocusOut:connect(HandleNoAppointmentsFocusOut)
DummyFocusHolder:Focus()
HandleClockPress = function(l_20_0)
   Clock:Focus()
end

ClockHitRegion.onPress:connect(OnTimePressed)
ClockHitRegion.onRelease:connect(OnTimeReleased)
ClockHitRegion.onReleaseOutside:connect(OnTimeReleasedOutside)
HandleMissedCallPress = function(l_21_0)
   MissedCall:Focus()
end

MissedCallIcon.onPress:connect(HandleMissedCallPress)
MissedCallText.onPress:connect(HandleMissedCallPress)
HandleVoicemailPress = function(l_22_0)
   Voicemail:Focus()
end

VoicemailIcon.onPress:connect(HandleVoicemailPress)
VoicemailText.onPress:connect(HandleVoicemailPress)
Appointment0Press = function(l_23_0)
   Appointment0:Focus()
end

Appointment0_HitArea.onPress:connect(Appointment0Press)
Appointment1Press = function(l_24_0)
   Appointment1:Focus()
end

Appointment1_HitArea.onPress:connect(Appointment1Press)
Appointment2Press = function(l_25_0)
   Appointment2:Focus()
end

Appointment2_HitArea.onPress:connect(Appointment2Press)
Appointment3Press = function(l_26_0)
   Appointment3:Focus()
end

Appointment3_HitArea.onPress:connect(Appointment3Press)
Appointment4Press = function(l_27_0)
   Appointment4:Focus()
end

Appointment4_HitArea.onPress:connect(Appointment4Press)
HandleNoAppointmentsPress = function(l_28_0)
   NoAppointments:Focus()
end

CalendarIcon.onPress:connect(HandleNoAppointmentsPress)
NoAppointmentText.onPress:connect(HandleNoAppointmentsPress)
require("homePageChanged")

⌨️ 快捷键说明

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