mnscript
MNGuiButton.SetEnabled(bool)
Description ​
Sets whether the UI element is enabled.
Arguments ​
Example ​
msc
using Surface;
using System;
MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();
// Creates a panel in and then disables it.
MNGuiPanel panel = Surface.CreatePanel(pnl);
panel.SetEnabled(false);
// Update to add the new UI to the screen.
Surface.Update();
// Keep the program alive so the UI stays.
while(true){
System.Sleep(1);
}