0.lua

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

LUA
48
字号
-- Decompiled using luadec 0.7 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;;;3,6;0,5,8; 1acd708f_manila_28C.luac 

OnProgramsPressed = function()
   Shell_NavigateTo(ShellLocation_Camera, "/i")
end

OnPhonePressed = function()
   Shell_NavigateTo(ShellLocation_Dialer)
end

if InitializeSoftkeys == nil then
   InitializeSoftkeys = function()
   _application:SetRightSoftkey(Softkey(Locale:GetString("IDS_CAMERA"), OnProgramsPressed))
   _application:SetLeftSoftkey(Softkey(Locale:GetString("IDS_PHONE"), OnPhonePressed))
end

end
InitializeRegistrySoftkeys = function()
   local l_4_0 = machineStatus.HomeLSKText.Value
   local l_4_1 = machineStatus.HomeRSKText.Value
   if l_4_0 ~= "" then
      _application:SetLeftSoftkey(Softkey(l_4_0, OnRegistrySoftKeyPressed, "Left"))
   end
   if l_4_1 ~= "" then
      _application:SetRightSoftkey(Softkey(l_4_1, OnRegistrySoftKeyPressed, "Right"))
   end
end

OnRegistrySoftKeyPressed = function(l_5_0)
   local l_5_1 = nil
   local l_5_2 = nil
   if l_5_0 == "Left" then
      l_5_1 = machineStatus.HomeLSKPath.Value
      l_5_2 = machineStatus.HomeLSKArguments.Value
   elseif l_5_0 == "Right" then
      l_5_1 = machineStatus.HomeRSKPath.Value
      l_5_2 = machineStatus.HomeRSKArguments.Value
   else
      return 
   end
   if not _application.Navigation:Navigate(URL(l_5_1 .. l_5_2)) then
      Shell_NavigateTo(l_5_1, l_5_2)
   end
end


⌨️ 快捷键说明

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