Exemplo n.º 1
0
        /// <summary>
        /// Draws the screen and all the components in it.
        /// </summary>
        public override void DrawScreen(int par1, int par2, float par3)
        {
            StringTranslate stringtranslate = StringTranslate.GetInstance();

            DrawDefaultBackground();
            DrawCenteredString(FontRenderer, stringtranslate.TranslateKey("selectWorld.create"), Width / 2, 20, 0xffffff);

            if (!MoreOptions)
            {
                DrawString(FontRenderer, stringtranslate.TranslateKey("selectWorld.enterName"), Width / 2 - 100, 47, 0xa0a0a0);
                DrawString(FontRenderer, (new StringBuilder()).Append(stringtranslate.TranslateKey("selectWorld.resultFolder")).Append(" ").Append(FolderName).ToString(), Width / 2 - 100, 85, 0xa0a0a0);
                TextboxWorldName.DrawTextBox();
                DrawString(FontRenderer, GameModeDescriptionLine1, Width / 2 - 100, 122, 0xa0a0a0);
                DrawString(FontRenderer, GameModeDescriptionLine2, Width / 2 - 100, 134, 0xa0a0a0);
            }
            else
            {
                DrawString(FontRenderer, stringtranslate.TranslateKey("selectWorld.enterSeed"), Width / 2 - 100, 47, 0xa0a0a0);
                DrawString(FontRenderer, stringtranslate.TranslateKey("selectWorld.seedInfo"), Width / 2 - 100, 85, 0xa0a0a0);
                DrawString(FontRenderer, stringtranslate.TranslateKey("selectWorld.mapFeatures.info"), Width / 2 - 150, 122, 0xa0a0a0);
                TextboxSeed.DrawTextBox();
            }

            base.DrawScreen(par1, par2, par3);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Draws the screen and all the components in it.
        /// </summary>
        public override void DrawScreen(int par1, int par2, float par3)
        {
            StringTranslate stringtranslate = StringTranslate.GetInstance();

            DrawDefaultBackground();
            DrawCenteredString(FontRenderer, stringtranslate.TranslateKey("selectWorld.renameTitle"), Width / 2, (Height / 4 - 60) + 20, 0xffffff);
            DrawString(FontRenderer, stringtranslate.TranslateKey("selectWorld.enterName"), Width / 2 - 100, 47, 0xa0a0a0);
            TheGuiTextField.DrawTextBox();
            base.DrawScreen(par1, par2, par3);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Draws the screen and all the components in it.
        /// </summary>
        public override void DrawScreen(int par1, int par2, float par3)
        {
            StringTranslate stringtranslate = StringTranslate.GetInstance();

            DrawDefaultBackground();
            DrawCenteredString(FontRenderer, stringtranslate.TranslateKey("selectServer.direct"), Width / 2, (Height / 4 - 60) + 20, 0xffffff);
            DrawString(FontRenderer, stringtranslate.TranslateKey("addServer.enterIp"), Width / 2 - 100, 100, 0xa0a0a0);
            ServerTextField.DrawTextBox();
            base.DrawScreen(par1, par2, par3);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Draws the screen and all the components in it.
 /// </summary>
 public override void DrawScreen(int par1, int par2, float par3)
 {
     DrawRect(2, Height - 14, Width - 2, Height - 2, 0x8000000);
     Field_50064_a.DrawTextBox();
     base.DrawScreen(par1, par2, par3);
 }