-
Notifications
You must be signed in to change notification settings - Fork 1
/
Banner.lua
82 lines (67 loc) · 2.29 KB
/
Banner.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
---@meta
---@class Banner : Actor
---@field [string] fun(self: Banner)
---@overload fun(self: Banner) : Banner
--- Initial command. Call as soon as the screen begins construction.
---@field InitCommand? fun(self: Banner)
--- On command. Called after screen construction is done.
---@field OnCommand? fun(self: Banner)
---@field BeginCommand? fun(self: Banner)
---@operator call:Banner
---@diagnostic disable: redundant-parameter
Banner = {}
--- Returns `true` if the Banner is currently scrolling.
---@return boolean
function Banner:GetScrolling() end
--- <!-- todo -->
---@return number
function Banner:GetPercentScrolling() end
--- Loads the background from an UnlockEntry.
---@param pUE UnlockEntry
---@return self
function Banner:LoadBackgroundFromUnlockEntry(pUE) end
--- Loads the banner from an UnlockEntry.
---@param pUE UnlockEntry
---@return self
function Banner:LoadBannerFromUnlockEntry(pUE) end
--- Loads the card image from the specified Character.
---@param pCharacter Character
---@return self
function Banner:LoadCardFromCharacter(pCharacter) end
--- Loads the banner from the cache based on `sPath` (typically <Link class='Song' function='GetBannerPath' /> or <Link class='Course' function='GetBannerPath' />).
---@param sPath string
---@return self
function Banner:LoadFromCachedBanner(sPath) end
--- Loads a Banner from a specified Course.
---@param c Course
---@return self
function Banner:LoadFromCourse(c) end
--- Loads a Banner from a specified Song.
---@param s SongObject
---@return self
function Banner:LoadFromSong(s) end
--- Loads a Banner from a specified Song Group.
---@param s string
---@return self
function Banner:LoadFromSongGroup(s) end
--- Loads a Banner from a specified SortOrder.
---@param so SortOrder
---@return self
function Banner:LoadFromSortOrder(so) end
--- Loads an icon from the specified Character.
---@param pCharacter Character
---@return self
function Banner:LoadIconFromCharacter(pCharacter) end
---@param fWidth number
---@param fHeight number
---@see Sprite.scaletoclipped
---@return self
function Banner:scaletoclipped(fWidth, fHeight) end
---@param fWidth number
---@param fHeight number
---@see Sprite.scaletoclipped
---@return self
function Banner:ScaleToClipped(fWidth, fHeight) end
---@param bScroll boolean
---@return self
function Banner:SetScrolling(bScroll) end