Пример #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;
 }
Пример #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();
 }
Пример #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();
 }
Пример #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;
 }