Posted September 3, 201213 yr Does anyone know of a good resource available to learn how to do GUIs in Forge 1.3.2? All the 1.3.2. GUI tutorials out there seems to be ModLoader specific.
September 4, 201213 yr You can look at the source from my Particle Decoration Mod, here: http://www.minecraftforge.net/forum/index.php/topic,1909 It has both GUI types, with and without container. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
September 4, 201213 yr What type of guis, container or normal? Container if possible Just follow the furnace source, and another mod with GUI's. You have to use IGuiHandler for registering it. So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
September 5, 201213 yr With looking at SanAndreasP's sources, and following the tutorial here at Minecraft Forge, I have yet to be able to get a working GUI. I can set down the block, but it doesn't activate on right-click. I'm not sure if I'm missing something or what Sources: MechanicTools.java TileEntityTiny.java BlockTiny.java ContainerTiny.java GuiTiny.java TinyHandler.java inyProxy.java
September 5, 201213 yr Where do you register your TileEntity? If it's not registered, it won't be placed with the block and so it won't open a GUI because it can't find any TileEntity. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
September 5, 201213 yr Where do you register your TileEntity? If it's not registered, it won't be placed with the block and so it won't open a GUI because it can't find any TileEntity. And be sure to have the is useable by player and canInteractWith functions not returning false. So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
September 10, 201213 yr Well I actually got my GUI working, but I'm having two weird bugs: 1. Whenever the first slot in my clickbar is empty, the text in my GUI dims from white (or whatever color) to gray (or a darker version of whatever color). 2. When I put a block/item in any of my slots (there are 5), it duplicates it to all of the slots, and they all disappear when I remove any one of them.
September 12, 201213 yr Ok so I figured out why my items were duplicating, but I still haven't nailed down why my text is changing colors
September 12, 201213 yr Ok so I figured out why my items were duplicating, but I still haven't nailed down why my text is changing colors current source code and i might be able to help you out http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img]
September 12, 201213 yr current source code and i might be able to help you out Try this: https://www.dropbox.com/s/6exl0evyxidilyi/tutorials.zip
September 12, 201213 yr Believe it or not, that color change happens in a normal furnace aswell, I think it happens when its active but im not quite sure http://i.imgur.com/Hppni.png[/img]
September 12, 201213 yr My block isn't a furnace. It's just a BlockContainer. No function. I'm also having a problem, where if I have more than one block that's supposed to open a gui, one says, "A mod tried to pen a gui on the server without being a NetworkMod"
September 12, 201213 yr do you have a @SidedProxy and @NetworkMod in your mod base file? http://i.imgur.com/Hppni.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.