Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 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;
 }