mnscript
MNGuiAvatarImage.SetPlayer(string)
Description ​
Sets the avatar's player.
Arguments ​
string
- The new avatar player.
Example ​
msc
using Surface;
using System;
MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();
// Creates an image and fills the screen.
MNGuiAvatarImage avatar = Surface.CreateAvatarImage(pnl);
avatar.DockFill();
avatar.SetPlayer("76561198089568050");
// Update to add the new UI to the screen.
Surface.Update();
// Keep the program alive so the UI stays.
while(true){
System.Sleep(1);
}