peoplealldialog.luac.lua

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

LUA
68
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;8;0,1;0;0;0,0,14,21,49; 32e06309_manila.luac 

trace("Loaded people all dialog Script\n")
require("contacts_database_svc")
DynamicData = {}
ExternalData = {}
PeopleFrom = {All = 1, Device = 2, SIM = 3, Updated = 4}
InitialData = function()
   local l_1_0 = tonumber(_dialog.URL.Parameters:GetParameter("Count"))
   ExternalData.ContactCount = l_1_0
   l_1_0 = tonumber(_dialog.URL.Parameters:GetParameter("CategoryCount"))
   ExternalData.Categorycount = l_1_0
end

IsDialogItemEnable = function(l_2_0)
   if l_2_0.Name == "Delete Contact" then
     if ExternalData.ContactCount <= 0 then
      return false
    end
   else
      if l_2_0.Name == "Filter" and ExternalData.Categorycount <= 0 then
         return false
      end
   end
   return true
end

IsDynamicItem = function(l_3_0)
   return false
end

GetDynamicCollection = function()
   return 
end

SetRadioBox = function(l_5_0, l_5_1)
   if l_5_0.Name ~= "All" and l_5_0.Name ~= "Contacts" and l_5_0.Name ~= "SIM" then
      return 
   end
   local l_5_2 = l_5_1.Namespace:FindName("radioBtn_on")
   l_5_2._visible = false
   local l_5_3 = _application.Store:GetIntValue(Lifetime_Permanent, "PeopleBrowserSource")
   if l_5_3 == PeopleFrom.All and l_5_0.Name == "All" then
      l_5_2._visible = true
   else
      if l_5_3 == PeopleFrom.Device and l_5_0.Name == "Contacts" then
         l_5_2._visible = true
      else
         if l_5_3 == PeopleFrom.SIM and l_5_0.Name == "SIM" then
            l_5_2._visible = true
         else
            local l_5_4 = PeopleFrom
            l_5_4 = l_5_4.Updated
            if l_5_3 == l_5_4 then
               l_5_4 = l_5_0.Name
            if l_5_4 == "Updated" then
               end
            end
         end
      end
   end
end

InitialData()
require("people\\peopleDialogBase")

⌨️ 快捷键说明

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