MNGuiInputButton.SetRounded
Skip to content
mnscript
MNGuiInputButton.SetRounded(number) 

Description ​

Sets the roundedness.

Arguments ​

number - The new roundedness.

Example ​

msc
using Surface;
using System;

MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();

// Creates a panel in and sets it's corners to be more rounded.
MNGuiPanel panel = Surface.CreatePanel(pnl);
panel.SetRounded(5);

// Update to add the new UI to the screen.
Surface.Update();

// Keep the program alive so the UI stays.
while(true){
    System.Sleep(1);
}