Description ​
Sets the size of the UI element using a percentage (0-1).
Arguments ​
number
- The new width scaled.number
- The new height scaled.
Example ​
msc
using Surface;
using System;
MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();
// Creates a panel which fills half the screen's width and height.
MNGuiPanel centeredPanel = Surface.CreatePanel(pnl);
centeredPanel.SetScaleSize(0.5, 0.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);
}