-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathActorScroller.lua
150 lines (120 loc) · 4.76 KB
/
ActorScroller.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---@meta
---@class ActorScroller : ActorFrame
ActorScroller = {}
--- Returns the scroller's current item.
---@return float
function ActorScroller:GetCurrentItem() end
--- Returns the item the scroller's going to.
---@return float
function ActorScroller:GetDestinationItem() end
--- Returns how long it will take for the scroller to completely
--- scroll through all its items.
---@return float
function ActorScroller:GetFullScrollLengthSeconds() end
--- Returns the number of items in the ActorScroller.
---@return integer
function ActorScroller:GetNumItems() end
--- Returns the number of seconds the scroller pauses between items.
---@return float
function ActorScroller:GetSecondsPauseBetweenItems() end
--- Returns the number of seconds until the scroller reaches its
--- destination.
---@return float
function ActorScroller:GetSecondsToDestination() end
--- Compatibility alias for `ActorScroller.GetSecondsToDestination()`.
---@see ActorScroller.GetSecondsToDestination
---@return float
function ActorScroller:getsecondstodestination() end
--- Positions the scroller items.
---@return self
function ActorScroller:PositionItems() end
--- Scrolls through all the items in the scroller.
---@return self
function ActorScroller:ScrollThroughAllItems() end
--- Compatibility alias for `ActorScroller.ScrollThroughAllItems()`.
---@see ActorScroller.ScrollThroughAllItems
---@return self
function ActorScroller:scrollthroughallitems() end
--- Scrolls through all the items in the scroller with padding at the
--- beginning and end.
---@param fItemPaddingStart float
---@param fItemPaddingEnd float
---@return self
function ActorScroller:ScrollWithPadding(fItemPaddingStart, fItemPaddingEnd) end
--- Compatibility alias for `ActorScroller.ScrollWithPadding()`.
---@see ActorScroller.ScrollWithPadding
---@param fItemPaddingStart float
---@param fItemPaddingEnd float
---@return self
function ActorScroller:scrollwithpadding(fItemPaddingStart, fItemPaddingEnd) end
--- Sets the item the scroller should scroll to next and makes it the
--- current item.
---@param fItemIndex float
---@return self
function ActorScroller:SetCurrentAndDestinationItem(fItemIndex) end
--- Sets the item the scroller should scroll to next.
---@param fItemIndex float
---@return self
function ActorScroller:SetDestinationItem(fItemIndex) end
--- Sets if the scroller should catch up fast.
---@param bOn boolean
---@return self
function ActorScroller:SetFastCatchup(bOn) end
--- Compatibility alias for `ActorScroller.SetFastCatchup()`.
---@see ActorScroller.SetFastCatchup
---@param bOn boolean
function ActorScroller:setfastcatchup(bOn) end
--- Specifies if the scroller should loop or not.
---@param bLoop boolean
function ActorScroller:SetLoop(bLoop) end
--- Sets the scroller's mask to a Quad that is fWidth by fHeight pixels.
---@param fWidth float
---@param fHeight float
---@return self
function ActorScroller:SetMask(fWidth, fHeight) end
--- Sets the scroller to draw `fNumItems` items.
---@param fNumItems float
---@return self
function ActorScroller:SetNumItemsToDraw(fNumItems) end
--- Sets the number of subdivisions in the scroller.
---@param iNumSubdivisions integer
---@return self
function ActorScroller:SetNumSubdivisions(iNumSubdivisions) end
--- Compatibility alias for `ActorScroller.SetNumSubdivisions()`.
---@see ActorScroller.SetNumSubdivisions
---@param iNumSubdivisions integer
---@return self
function ActorScroller:setnumsubdivisions(iNumSubdivisions) end
--- Sets the scroller's pause countdown to fSecs.
---@param fSecs float
---@return self
function ActorScroller:SetPauseCountdownSeconds(fSecs) end
--- Sets the scroller's pause between items to fSeconds.
---@param fSeconds float
function ActorScroller:SetSecondsPauseBetweenItems(fSeconds) end
--- Sets how many seconds the scroller should spend on each item.
--- A value of 0 means the scroller will not scroll.
---@param fSeconds float
---@return self
function ActorScroller:SetSecondsPerItem(fSeconds) end
--- Compatibility alias for `ActorScroller.SetSecondsPerItem()`.
---@see ActorScroller.SetSecondsPerItem
---@param fSeconds float
---@return self
function ActorScroller:setsecondsperitem(fSeconds) end
--- Sets the scroller's transform function to the specified Lua function.
---@param ScrollerFunction function
---@return self
function ActorScroller:SetTransformFromFunction(ScrollerFunction) end
--- Sets the scroller's transform function from `fItemHeight`.
---@param fItemHeight float
---@return self
function ActorScroller:SetTransformFromHeight(fItemHeight) end
--- Sets the scroller's transform function from `fItemWidth`.
---@param fItemWidth float
---@return self
function ActorScroller:SetTransformFromWidth(fItemWidth) end
--- Specifies if the scroller should wrap or not.
---@param bWrap boolean
---@return self
function ActorScroller:SetWrap(bWrap) end