Description ​
Sets the width and height of the UI element.
Arguments ​
number
- The new width.number
- The new height.
Example ​
msc
using Surface;
using System;
MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();
// Creates a panel in and sets it's size to 150, 150.
MNGuiPanel panel = Surface.CreatePanel(pnl);
panel.SetSize(150, 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);
}