📄 cofigrearrange.luac.lua
字号:
-- Decompiled using luadec 1.0 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l2 ;1,10,10,10,10,16,17;;1,2,3,4;;;; 563ec579_manila.luac
trace("CofigRearrange is loading.")
require("SettingReArrangeListView")
require("common")
TimeRolling = 0.099990844726563
DeltaDownY = 20
DeltaUpY = -20
OnLSKDone = function()
local l_1_0 = objConfigList
for i = 0, l_1_0.ListView:GetGenerator():GetCount() - 1 do
local l_1_5 = (l_1_0.ListView:GetGenerator():GetData(i))
local l_1_6 = nil
l_1_6 = string.gsub(l_1_5.strPageName, "Manila://", "")
if l_1_0.CheckBoxArray[i] ~= l_1_5.nEnable then
g_bRearrangeFlag = true
end
end
if g_bRearrangeFlag == false then
OnRSKCancel()
return
end
if objConfiguredManager ~= nil then
objConfiguredManager:Commit()
end
end
OnRSKCancel = function()
_application.Navigation:NavigateBack()
end
OnUpdatingTimer = function()
local l_3_0 = objConfigList
local l_3_1 = l_3_0.CurrentOffset
local l_3_2 = l_3_0.MaxOffset
local l_3_3 = delta
trace("current=" .. l_3_1)
if l_3_3 > 0 then
if l_3_1 + l_3_3 <= l_3_2 then
ConfigListView:ApplyScrollDelta(Vector3F(0, l_3_3, 0))
l_3_0.CurrentOffset = l_3_1 + l_3_3
elseif l_3_1 < l_3_2 then
ConfigListView:ApplyScrollDelta(Vector3F(0, l_3_2 - l_3_1, 0))
l_3_0.CurrentOffset = l_3_2
end
else
if l_3_1 + l_3_3 >= 0 then
ConfigListView:ApplyScrollDelta(Vector3F(0, l_3_3, 0))
l_3_0.CurrentOffset = l_3_1 + l_3_3
elseif l_3_1 > 0 then
ConfigListView:ApplyScrollDelta(Vector3F(0, -l_3_1, 0))
l_3_0.CurrentOffset = 0
end
end
trace("Delta = " .. l_3_3 .. " CurrentOffset = " .. l_3_0.CurrentOffset .. " MaxOffset = " .. l_3_0.MaxOffset)
end
RollOver_UPFast = function()
trace("[CofigRearrange] OnPress_UPFast")
delta = DeltaUpY
OnUpdatingTimer()
if gTimer == nil then
gTimer = timer(TimeRolling)
gTimer.OnElapsed:connect(OnUpdatingTimer)
else
gTimer:Start()
end
end
RollOut = function()
if gTimer ~= nil then
gTimer:Stop()
end
end
RollOver_DownFast = function()
trace("[CofigRearrange] OnPress_DownFast")
delta = DeltaDownY
OnUpdatingTimer()
if gTimer == nil then
gTimer = timer(TimeRolling)
gTimer.OnElapsed:connect(OnUpdatingTimer)
else
gTimer:Start()
end
end
if _application.Store:GetStringValue(Lifetime_Permanent, "EnableLandscape") == "true" then
trace("[CofigRearrange] : EnableLandscape")
require("Settings\\ConfigurationPage_Landscape")
_ConfigListView_ScreenRotation = ConfigListView_ScreenRotation()
end
objConfiguredManager = ConfiguredManager_Instance()
objConfigList = ReArrangePages(ConfigListView, objConfiguredManager, nil, FakeMovingObjHitArea)
_application:SetLeftSoftkey(Softkey(Locale:GetString("IDS_Done"), OnLSKDone))
_application:SetRightSoftkey(Softkey(Locale:GetString("IDS_Cancel"), OnRSKCancel))
MoveUpArea.onRollOver:connect(RollOver_UPFast)
MoveUpArea.onRollOut:connect(RollOut)
MoveUpArea.onRelease:connect(RollOut)
MoveUpArea.onMouseUp:connect(RollOut)
MoveDownArea.onRollOver:connect(RollOver_DownFast)
MoveDownArea.onRollOut:connect(RollOut)
MoveDownArea.onRelease:connect(RollOut)
MoveDownArea.onMouseUp:connect(RollOut)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -