-
Notifications
You must be signed in to change notification settings - Fork 289
Expand file tree
/
Copy pathText.lua
More file actions
71 lines (55 loc) · 1.57 KB
/
Copy pathText.lua
File metadata and controls
71 lines (55 loc) · 1.57 KB
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
---@meta
---@enum TextHorizontalAlignment
TextHorizontalAlignment = {
LEFT = 0,
CENTER = 1,
RIGHT = 2
}
---@enum TextVerticalAlignment
TextVerticalAlignment = {
TOP = 0,
CENTER = 1,
BOTTOM = 2
}
--- Represents a renderable user interface text
---@class Text : Component
Text = {}
--- Returns the actor that owns this component
---@return Actor
function Text:GetOwner() end
--- Returns the text content
---@return string
function Text:GetText() end
--- Defines the text content
---@param text string
function Text:SetText(text) end
--- Returns the font resource path
---@return string
function Text:GetFontPath() end
--- Defines the font resource path
---@param fontPath string
function Text:SetFontPath(fontPath) end
--- Returns the font size in canvas pixels
---@return number
function Text:GetFontSize() end
--- Defines the font size in canvas pixels
---@param fontSize number
function Text:SetFontSize(fontSize) end
--- Returns the text color
---@return Vector4
function Text:GetColor() end
--- Defines the text color
---@param color Vector4
function Text:SetColor(color) end
--- Returns the horizontal text alignment
---@return TextHorizontalAlignment
function Text:GetHorizontalAlignment() end
--- Defines the horizontal text alignment
---@param alignment TextHorizontalAlignment
function Text:SetHorizontalAlignment(alignment) end
--- Returns the vertical text alignment
---@return TextVerticalAlignment
function Text:GetVerticalAlignment() end
--- Defines the vertical text alignment
---@param alignment TextVerticalAlignment
function Text:SetVerticalAlignment(alignment) end