Jump to content

superbas11

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by superbas11

  1. or player.sendChatMessage(String) if you just want to send a string. (works only by EntityPlayerSP)
  2. which command do you want to execute? maybe you could copy the code of that command.
  3. declaring list in initGui(): this.List=new ScrollList(this, Data, listWidth, true); this.List.registerScrollButtons(this.buttonList, 7, ; constructor of the List: public ScrollList(TestGui parent, ArrayList Data, int listWidth, Boolean isPlayerList) { super(parent.getMinecraftInstance(), listWidth, //width parent.height-66, //height 32, //top parent.height - 66 + 4, //bottom 10, //left 35); //slot height // System.out.println(parent.width+"-"+parent.height); this.parent=parent; this.Data=Data; this.isPlayerList = isPlayerList; } I had this problem too in 1.7
  4. say it when I wrong but the most obvious way. SwitchButton SwitchButton = new SwitchButton(); this.buttonList.add(SwitchButton); you could get the boolean from the gui with: SwitchButton.AVarOrBoolean
  5. how can I render the orange part? as shown in the screenshot from the previous post the cape aren't there or they aren't rendered properly.
  6. should the part of the slot that is not in the list be rendered in the background so its only half visible?
  7. here is some code. @Override public void drawScreen(int mouseX, int mouseY, float par3) { this.List.drawScreen(mouseX, mouseY, par3); if(selectedMod != null && ListSwitchButton.displayString == "Modlist") { this.offset = this.listWidth + 20; int TotalPlayers = Players.size(); int TotalPlayersPlayedWithThisMod = ((ArrayList) ModUsers.get(selectedMod.get("Modid"))).size(); Float PercentagePlayedWithThisMod = round((float) (((float)TotalPlayersPlayedWithThisMod/TotalPlayers)*100.0), 2); this.drawString(this.fontRendererObj, "ModName: "+selectedMod.get("ModName"), offset, 35, 0xFFFFFF); this.drawString(this.fontRendererObj, "ModID: "+selectedMod.get("Modid"), offset, 45, 0xFFFFFF); this.drawString(this.fontRendererObj, TotalPlayersPlayedWithThisMod+" Players have this mod. ("+PercentagePlayedWithThisMod+"%)", offset, 55, 0xFFFFFF); PlayerHoverText(mouseX,mouseY,(ArrayList) ModUsers.get(selectedMod.get("Modid"))); } if (this.hoveringText != null) { this.drawHoveringText(Lists.newArrayList(Splitter.on("\n").split(this.hoveringText)), mouseX, mouseY); } super.drawScreen(mouseX, mouseY, par3); } private void PlayersHoverText(int MouseX,int MouseY, ArrayList <String> Players){ if(MouseX >= offset && MouseX <= offset+10 && MouseY >= 55 && MouseY <= 65){ if(Players.size()>=1){ int x = 0; this.hoveringText = ""; while( x < Players.size()){ this.hoveringText = this.hoveringText+ Players.get(x) +((x+1)>=Players.size() ?"":"\n"); x++; } } }else{ this.hoveringText = null; } }
  8. I have 2 problems with my GUI. I'm new to this so I need some help with it. Problem 1 (solved): When I draw a text overlay, the buttons on my GUI turn darker. when the overlay disappear, the buttons get their normal color back. Problem 2: I use the forge GuiScrollingList but the slots are rendered out of the list. they only disappear when the top and the bottom are completely out of the list by scrolling the list. (I saw this problem by a couple other mods.)
  9. which file of forge handshake need to be changed to get a list of each player and their modlist. forge version 1.7 or 1.8
  10. I loaded my world with forge 10.12.1.1079 and without Buildcraft and the world loaded correctly!!
  11. OK thanks for your help guys
  12. I Ziped my whole .minecraft folder, but only my "mods world" I had trouble with. I know that some mods in my save are not updated yet but I was trying to update my world with the mods that already were updated. PS: I already tried to load the world with no mods installed. download: https://www.dropbox.com/s/6razoyokaksf2ed/minecraft.rar
  13. No it is my survival world from 1.6.4.
  14. how can I fix it so that it loads my 1.6.4 world correctly and not replaying air-blocks with stairs
  15. Forge changes some block id's of minecraft. I use forge 10.12.1.1084 and I have no other mods installed. edit: I installed not enough items so I could see the block id's. link: https://dl.dropboxusercontent.com/s/zfrqxlku0j18gx2/sheet001.htm
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.