mnscript
MNGuiPanel.SetHeight(number)
Description ​
Sets the height of the UI element.
Arguments ​
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 height to 150.
MNGuiPanel panel = Surface.CreatePanel(pnl);
panel.SetHeight(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);
}