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

📄 26.lua

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

trace("Loading Vibrate Mode Script\n")
LVPositionX = 0
LVPositionY = 0
LVWidth = 480
LVHeight = 636
ItemSizeWidth = 480
ItemSizeHeight = 81
if _config_os == "windowsmobile" then
   require("machine_status_svc")
   VibrateMode_MachineStatus = MachineStatus()
   VibrateMode_RingToneManager = RingToneManager()
   VibrateMode_CurrentlySelected = RingModeType_None
end
VibrateMode_OnVibrateModeChanged = function(l_1_0)
   if _config_os == "windowsmobile" then
      if l_1_0 == 0 then
         VibrateMode_CurrentlySelected = RingModeType_Ring
      elseif l_1_0 == 1 then
         VibrateMode_CurrentlySelected = RingModeType_RingOnce
      elseif l_1_0 == 2 then
         VibrateMode_CurrentlySelected = RingModeType_IncreasingRing
      elseif l_1_0 == 3 then
         VibrateMode_CurrentlySelected = RingModeType_Vibrate
      elseif l_1_0 == 4 then
         VibrateMode_CurrentlySelected = RingModeType_VibrateThenRing
      elseif l_1_0 == 5 then
         VibrateMode_CurrentlySelected = RingModeType_VibrateAndRing
      end
   end
end

VibrateMode_DoneSoftkeyCallback = function()
   VibrateMode_MachineStatus.RingMode.Value = VibrateMode_CurrentlySelected
   trace("Navigate to sounds")
   _application.Navigation:NavigateBack()
end

VibrateMode_CancelSoftkeyCallback = function()
   trace("Navigate to sounds")
   _application.Navigation:NavigateBack()
end

CreateVibrateModeDialog = function()
   Vibrate_Collection = VectorNotifyint()
   for i = 0, 5 do
      Vibrate_Collection:push_back(i)
   end
   Vibrate_Contents = {[0] = "[[IDS_RING]]", [1] = "[[IDS_RINGONCE]]", [2] = "[[IDS_INCREASINGRING]]", [3] = "[[IDS_VIBRATEONLY]]", [4] = "[[IDS_VIBRATETHENRING]]", [5] = "[[IDS_VIBRATEANDRING]]"}
   selected = -1
   if _config_os == "windowsmobile" then
      VibrateMode_CurrentlySelected = VibrateMode_MachineStatus.RingMode.Value
      if VibrateMode_CurrentlySelected == RingModeType_Ring then
         selected = 0
      else
         if VibrateMode_CurrentlySelected == RingModeType_RingOnce then
            selected = 1
         else
            if VibrateMode_CurrentlySelected == RingModeType_IncreasingRing then
               selected = 2
            else
               if VibrateMode_CurrentlySelected == RingModeType_Vibrate then
                  selected = 3
               else
                  if VibrateMode_CurrentlySelected == RingModeType_VibrateThenRing then
                     selected = 4
                  else
                     if VibrateMode_CurrentlySelected == RingModeType_VibrateAndRing then
                        selected = 5
                     end
                  end
               end
            end
         end
      end
   end
   RadioList_Initialize("[[IDS_VIBRATEMODE]]", Vibrate_Collection, selected, VibrateMode_OnVibrateModeChanged, Vibrate_Contents)
   if _config_os == "windowsmobile" then
      _application:SetLeftSoftkey(Softkey(Locale:GetString("IDS_DONE"), VibrateMode_DoneSoftkeyCallback))
      _application:SetRightSoftkey(Softkey(Locale:GetString("IDS_CANCEL"), VibrateMode_CancelSoftkeyCallback))
   end
end

if _application.Store:GetStringValue(Lifetime_Permanent, "EnableLandscape") == "true" then
   trace("[VibrateModeSettings] : EnableLandscape")
   require("Settings\\SettingsPage_Landscape")
   _VibrateModePage_ScreenRotation = SettingsPage_ScreenRotation(RadioListView, Camera_2D, Camera_3D, Mask)
end
CreateVibrateModeDialog()

⌨️ 快捷键说明

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