public override void Init()
 {
     playerFont = new Font("Arial", 12);
     chat       = new ChatScreen(game);
     chat.Init();
     hotbar = new BlockHotbarWidget(game);
     hotbar.Init();
     game.MapEvents.OnNewMap += OnNewMap;
 }
Beispiel #2
0
 public override void Init()
 {
     playerFont = new Font( "Arial", 12 );
     chat = new ChatScreen( game );
     chat.Init();
     hotbar = new BlockHotbarWidget( game );
     hotbar.Init();
     if( game.CursorVisible )
         game.CursorVisible = false;
     game.Camera.RegrabMouse();
 }
 public override void Init()
 {
     playerFont = new Font( "Arial", 12 );
     chat = new ChatScreen( game );
     const int blockSize = 32;
     chat.ChatLogYOffset = blockSize + blockSize;
     chat.ChatInputYOffset = blockSize + blockSize / 2;
     chat.Init();
     hotbar = new BlockHotbarWidget( game );
     hotbar.Init();
     if( game.CursorVisible )
         game.CursorVisible = false;
     game.Camera.RegrabMouse();
 }
 public override void Init()
 {
     playerFont = new Font( "Arial", 12 );
     chat = new ChatScreen( game );
     chat.Init();
     hotbar = new BlockHotbarWidget( game );
     hotbar.Init();
     game.Events.OnNewMap += OnNewMap;
 }