mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
plugin: UI pretty much done
This commit is contained in:
parent
edcb3d8638
commit
86e0f3fabe
6 changed files with 241 additions and 118 deletions
25
plugin/src/Components/ConnectionActivePanel.lua
Normal file
25
plugin/src/Components/ConnectionActivePanel.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
local Roact = require(script:FindFirstAncestor("Rojo").Roact)
|
||||
|
||||
local FitText = require(script.Parent.FitText)
|
||||
|
||||
local e = Roact.createElement
|
||||
|
||||
local ConnectionActivePanel = Roact.Component:extend("ConnectionActivePanel")
|
||||
|
||||
function ConnectionActivePanel:render()
|
||||
return e(FitText, {
|
||||
Kind = "TextLabel",
|
||||
Padding = Vector2.new(4, 4),
|
||||
Font = Enum.Font.SourceSans,
|
||||
TextSize = 16,
|
||||
Text = "Rojo Connected",
|
||||
TextColor3 = Color3.new(1, 1, 1),
|
||||
BackgroundColor3 = Color3.new(0, 0, 0),
|
||||
BorderSizePixel = 0,
|
||||
BackgroundTransparency = 0.6,
|
||||
Position = UDim2.new(0.5, 0, 0, 0),
|
||||
AnchorPoint = Vector2.new(0.5, 0),
|
||||
})
|
||||
end
|
||||
|
||||
return ConnectionActivePanel
|
||||
Loading…
Add table
Add a link
Reference in a new issue