1.lua

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

LUA
52
字号
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;0,7,9; 22bb3b19_manila_71C.luac 

OnRemoveItemPress = function(l_1_0)
   trace("OnRemoveItemPress")
   local l_1_1 = CompositeManager_Instance():GetLaunchItems()
   local l_1_2 = l_1_1:GetCount()
   l_1_2 = l_1_2 - 1
   if IsRmovePage then
      _application:SetRightSoftkey(Softkey(Locale:GetString("IDS_REMOVE"), RSKfunction))
      _application:SetLeftSoftkey(Softkey(Locale:GetString("IDS_ALLPROGRAMS"), LSKfunction))
      IsRmovePage = false
   else
      _application:SetRightSoftkey(Softkey(Locale:GetString("IDS_DONE"), RSKfunction))
      _application:SetLeftSoftkey(Softkey((Locale:GetString("")), nil))
      IsRmovePage = true
   end
   for i = 0, l_1_2 do
     local plvitem = PageListView:GetGenerator():GetItem(i)
     local item = l_1_1:GetItem(i)
     if IsRmovePage then
       if item:GetName() ~= "" then
         if plvitem then
           plvitem.Namespace:FindName("SpriteX")._visible = true
         end
       else
         if plvitem then
           local stuff = plvitem.Namespace:FindName("PageBackground")
           stuff:SetTextureRef("bt_UserLauncher_rest")
         end
       end
     else
       if item:GetName() ~= "" then
         if plvitem then
           plvitem.Namespace:FindName("SpriteX")._visible = false
         end
       else
         if plvitem then
            local stuff = plvitem.Namespace:FindName("PageBackground")
            if item:GetName() ~= "" then
              stuff:SetTextureRef("bt_UserLauncher_rest")
            else
              stuff:SetTextureRef("bt_UserLauncher_pluses_rest")
            end          
         end
       end
     end
   end
end


⌨️ 快捷键说明

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