• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Solved GuiInGameMenu modifier

    1.7.x
    1.7.10
    4
    7
    1238
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zokyt last edited by

      Bonjours, je recherche depuis un moment comment on enleve le fond noir quand on fait echap est aussi comment on rajoute son skin svp ?

      Voici mon code au cas ou que vous avait besoin :

      package com.mod.exonia.gui;
      
      import cpw.mods.fml.client.FMLClientHandler;
      import cpw.mods.fml.relauncher.Side;
      import cpw.mods.fml.relauncher.SideOnly;
      import net.minecraft.client.gui.GuiButton;
      import net.minecraft.client.gui.GuiIngameMenu;
      import net.minecraft.client.gui.GuiMainMenu;
      import net.minecraft.client.gui.GuiOptions;
      import net.minecraft.client.gui.GuiScreen;
      import net.minecraft.client.gui.GuiShareToLan;
      import net.minecraft.client.gui.achievement.GuiAchievements;
      import net.minecraft.client.gui.achievement.GuiStats;
      import net.minecraft.client.multiplayer.WorldClient;
      import net.minecraft.client.resources.I18n;
      
      @SideOnly(Side.CLIENT)
      public class GuiIngame extends GuiIngameMenu  
      {
          private int field_146445_a;
          private int field_146444_f;
          private static final String __OBFID = "CL_00000703";
      
          /**
           * Adds the buttons (and other controls) to the screen in question.
           */
          public void initGui()
          {
              this.field_146445_a = 0;
              this.buttonList.clear();
              byte b0 = -16;
              boolean flag = true;
              this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + b0, I18n.format("menu.returnToMenu", new Object[0])));
      
              if (!this.mc.isIntegratedServerRunning())
              {
                  ((GuiButton)this.buttonList.get(0)).displayString = I18n.format("menu.disconnect", new Object[0]);
              }
      
              this.buttonList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 24 + b0, I18n.format("menu.returnToGame", new Object[0])));
              this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + b0, 98, 20, I18n.format("menu.options", new Object[0])));
              GuiButton guibutton;
              this.buttonList.add(guibutton = new GuiButton(7, this.width / 2 - 100, this.height / 4 + 72 + b0, 200, 20, I18n.format("menu.shareToLan", new Object[0])));
              this.buttonList.add(new GuiButton(5, this.width / 2 - 100, this.height / 4 + 48 + b0, 98, 20, I18n.format("gui.achievements", new Object[0])));
              this.buttonList.add(new GuiButton(6, this.width / 2 + 2, this.height / 4 + 48 + b0, 98, 20, I18n.format("gui.stats", new Object[0])));
              guibutton.enabled = this.mc.isSingleplayer() && !this.mc.getIntegratedServer().getPublic();
          }
      
          protected void actionPerformed(GuiButton p_146284_1_)
          {
              switch (p_146284_1_.id)
              {
                  case 0:
                      this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
                      break;
                  case 1:
                      p_146284_1_.enabled = false;
                      this.mc.theWorld.sendQuittingDisconnectingPacket();
                      this.mc.loadWorld((WorldClient)null);
                      this.mc.displayGuiScreen(new GuiMainMenu());
                  case 2:
                  case 3:
                  default:
                      break;
                  case 4:
                      this.mc.displayGuiScreen((GuiScreen)null);
                      this.mc.setIngameFocus();
                      break;
                  case 5:
                      if (this.mc.thePlayer != null)
                      this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
                      break;
                  case 6:
                      if (this.mc.thePlayer != null)
                      this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
                      break;
                  case 7:
                      this.mc.displayGuiScreen(new GuiShareToLan(this));
                      break;
              }
          }
      
          /**
           * Called from the main game loop to update the screen.
           */
          public void updateScreen()
          {
              super.updateScreen();
              ++this.field_146444_f;
          }
      
          /**
           * Draws the screen and all the components in it.
           */
          public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
          {
              this.drawDefaultBackground();
              this.drawCenteredString(this.fontRendererObj, I18n.format("menu.game", new Object[0]), this.width / 2, 40, 16777215);
              super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
          }
      }
      
      
      1 Reply Last reply Reply Quote 0
      • A
        aypristyle last edited by

        Pour rajouter son skin en jeu voilà ce que tu dois faire
        Dans les run configurations de eclipse clique  sur l’onglet “Arguments”.
        et dans la case Program arguments ajoute –username ton_adresse_mail –password votre_mot_de_passe

        **Je suis un membre apprécié et joueur, j'ai déjà obtenu 1[ point de réputation./…

        1 Reply Last reply Reply Quote 0
        • Z
          Zokyt last edited by

          @‘aypristyle’:

          Pour rajouter son skin en jeu voilà ce que tu dois faire
          Dans les run configurations de eclipse clique  sur l’onglet “Arguments”.
          et dans la case Program arguments ajoute –username ton_adresse_mail –password votre_mot_de_passe

          Merci je vien de tester est sa marche mais se que je veut dire ces rajouter son skin dans le menu echap comme ceci

          1 Reply Last reply Reply Quote 0
          • Alexandre1156
            Alexandre1156 last edited by

            Pour render une entity dans ton gui, regarde comment fait la class GuiInventory.

            Et pour enlever le fond noir, il suffit de ne pas appeller this.drawDefa**ultBackground().

            1 Reply Last reply Reply Quote 1
            • Z
              Zokyt last edited by

              @‘Alexandre1156’:

              Pour render une entity dans ton gui, regarde comment fait la class GuiInventory.

              Et pour enlever le fond noir, il suffit de ne pas appeller this.drawDefa**ultBackground().

              Pas comprit ?
              Est mrc sa marche


              Est genre si j’ai envie de modifier se : this.drawDefaultBackground();
              Je fait comment ? en gros si j’ai envie de mettre un autre fond noir mais spécial

              1 Reply Last reply Reply Quote 0
              • Deleted
                Deleted last edited by

                “Spécial”, que faut-il entendre par là ?

                1 Reply Last reply Reply Quote 0
                • Z
                  Zokyt last edited by

                  @‘Plaigon’:

                  “Spécial”, que faut-il entendre par là ?

                  Je veut juste mettre en gros en arriere fond des petite bandelete noir au mieu que sa soi tout noir je vais mettre de bande sur les coter

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Design by Woryk
                  Contact / Mentions Légales

                  MINECRAFT FORGE FRANCE © 2018

                  Powered by NodeBB