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

Description ​

Sets the width of the UI element.

Arguments ​

number - The new width.

Example ​

msc
using Surface;
using System;

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

// Creates a panel in and sets it's width to 150.
MNGuiPanel panel = Surface.CreatePanel(pnl);
panel.SetWidth(150);

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

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