Esempio n. 1
0
        public override void Init()
        {
            int size = game.Drawer2D.UseBitmappedChat ? 16 : 11;

            playerFont = new Font(game.FontName, size);
            chat       = new ChatScreen(game);
            chat.Init();
            hotbar = new BlockHotbarWidget(game);
            hotbar.Init();
            game.WorldEvents.OnNewMap += OnNewMap;
        }
Esempio n. 2
0
        public override void Init()
        {
            int size = game.Drawer2D.UseBitmappedChat ? 16 : 11;

            playerFont = new Font(game.FontName, size);
            hotbar     = new HotbarWidget(game);
            hotbar.Init();
            chat = new ChatScreen(game, this);
            chat.Init();

            Events.ContextLost      += ContextLost;
            Events.ContextRecreated += ContextRecreated;
        }
Esempio n. 3
0
        public override void Init()
        {
            int size = game.Drawer2D.UseBitmappedChat ? 16 : 11;

            playerFont = new Font(game.FontName, size);
            hotbar     = game.Mode.MakeHotbar();
            hotbar.Init();
            chat = new ChatScreen(game, this);
            chat.Init();

            game.WorldEvents.OnNewMap += OnNewMap;
            gfx.ContextLost           += ContextLost;
            gfx.ContextRecreated      += ContextRecreated;
        }