forked from exxtremestuffs/SimpleSpySource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhiglightexample.lua
33 lines (24 loc) · 1.05 KB
/
higlightexample.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
local Highlight = require(...)
local myFrame = Instance.new("Frame")
--- Instantiates and returns a new Highlight instance- creates the actual gui within the frame
local myHighlight = Highlight.new(myFrame)
--- Sets the raw text of the code box (\n = new line)
myHighlight:setRaw(string)
--- Returns the (string) raw text of the code box (\n = new line)
myHighlight:getRaw()
--[[
char = {
Char: string -- The single character that the object represents
Color: Color3 -- The color of the character
}
]]
--- Returns the (char[]) array that holds all the lines in order as strings
myHighlight:getTable()
--- Returns the (int) number of lines in the code box
myHighlight:getSize()
--- Returns the (string) line of the specified line number
myHighlight:getLine(int)
--- Replaces the specified line number with the specified string (\n will insert further lines)
myHighlight:setLine(int, string)
--- Inserts a line made from the specified string and moves all existing lines down (\n will insert further lines)
myHighlight:insertLine(int, string)