📄 stock_rearrange.luac.lua
字号:
-- Decompiled using luadec 0.6 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;;1,2,3,4;;;;;; 3a9ff5f4_manila.luac
require("stock_svc")
require("InforStockListView")
require("common")
LVPositionX = 0
LVPositionY = -58
LVWidth = 480
LVHeight = 643
ItemSizeWidth = 480
ItemSizeHeight = 80
_StockRearrangePage_ScreenRotation = nil
if _application.Store:GetStringValue(Lifetime_Permanent, "EnableLandscape") == "true" then
trace("[StockDeletePage] : EnableLandscape")
require("Stock\\StockRearrangePage_Landscape")
_StockRearrangePage_ScreenRotation = StockRearrangePage_ScreenRotation(StockListView, Camera_2D, Camera_3D, Mask, FakeMovingObj, mask)
end
Stockmanager = CStockManager(_application.Store)
StockListViewObj = StockListViewClass(StockListView, nil, "rearrange", Stockmanager, FakeMovingObjHitArea, _StockRearrangePage_ScreenRotation)
if _request.URL.Parameters:GetParameter("page") == "Market" then
StockListViewObj:ShowStockList(StockType_MarketSummary)
else
StockListViewObj:ShowStockList(StockType_MyPortfolio)
end
OnMenuDone = function()
StockListViewObj:Commit()
_application.Navigation:NavigateBack()
end
OnMenuCancel = function()
_application.Navigation:NavigateBack()
end
_application.Navigation.TabVisibility = false
_application:SetLeftSoftkey(Softkey(Locale:GetString("IDS_INFOR_DONE"), OnMenuDone))
_application:SetRightSoftkey(Softkey(Locale:GetString("IDS_INFOR_CANCEL"), OnMenuCancel))
OnUpdatingTimer = function()
local l_3_0 = StockListViewObj
local l_3_1 = l_3_0.CurrentOffset
local l_3_2 = l_3_0.MaxOffset
local l_3_3 = delta
if l_3_3 > 0 then
if l_3_1 + l_3_3 <= l_3_2 then
StockListView: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
StockListView: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
StockListView:ApplyScrollDelta(Vector3F(0, l_3_3, 0))
l_3_0.CurrentOffset = l_3_1 + l_3_3
elseif l_3_1 > 0 then
StockListView: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("OnPress_UPFast")
delta = -20
if gTimer == nil then
gTimer = timer(0.099990844726563)
gTimer.OnElapsed:connect(OnUpdatingTimer)
else
gTimer:Start()
end
end
RollOut = function()
if gTimer ~= nil then
gTimer:Stop()
end
end
RollOver_UPSlow = function()
trace("OnPress_UP")
delta = -10
if gTimer == nil then
gTimer = timer(0.099990844726563)
gTimer.OnElapsed:connect(OnUpdatingTimer)
else
gTimer:Start()
end
end
RollOver_DownFast = function()
trace("OnPress_DownFast")
delta = 20
if gTimer == nil then
gTimer = timer(0.099990844726563)
gTimer.OnElapsed:connect(OnUpdatingTimer)
else
gTimer:Start()
end
end
RollOver_DownSlow = function()
trace("OnPress_UP")
delta = 10
if gTimer == nil then
gTimer = timer(0.099990844726563)
gTimer.OnElapsed:connect(OnUpdatingTimer)
else
gTimer:Start()
end
end
StockListView.Position.x = LVPositionX
StockListView.Position.y = LVPositionY
StockListView.Viewport.x = LVWidth
StockListView.Viewport.y = LVHeight
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 + -