890 B
890 B
setBar
Sets the text, background, and foreground of the upper bar of the frame, accordingly.
Parameters:
stringThe title text to set the bar tonumberThe background colornumberThe foreground color
Returns:
frameThe frame being used
Usage:
- Set the title to "My first frame!", with a background of black and a foreground of light gray.
frame:setBar("My first Frame!", colors.black, colors.lightGray)
- Store the frame, use the named frame variable after assigning.
local mainFrame = basalt.createFrame()
local myFrame = MainFrame:addFrame()
myFrame:setBar("My first Frame!")
- This abuses the call-chaining that Basalt uses.
local mainFrame = basalt.createFrame()
local myFrame = mainFrame:addFrame():setBar("My first Frame!")
<frame barText="My first Frame!" barBG="black" barFG="lightGray"></frame>