Button

Just a button

Example

local BtnExapmle = PluginComponents.Component.Btn.New()
.SetBackgroundColor(PluginComponents.Color.Blue)
.SetText("Click me!")
.MouseButton1Click:Connect(function()
    print("Click")
end)

Events

.MouseButton1Click:Connect

Clicking with the mouse

.MouseButton2Click:Connect

Right-click

Methods

.SetBackgroundColor(color3)

МChanges the background of the button

.SetText(val)

Меняет текст кнопки

.Disabled()

Disables the element. Making it greyed out.

.UnDisabled()

Restores the element

.RemovePaddingAndText()

Removes unnecessary space around it. Needed for the Table component

Inherited from BaseComponent

Last updated