This is a library that allows modders to create more advanced GUIs through the use of Containers.
While it is not as powerful as GuiAPI, creating a GUI is done in a vanilla-style way and thus is very easy to do. For modders interested in learning how to use this library, you can take a look at my other projects on GitHub.
The library has functioning containers, scrollbars, textfields, buttons, sliders, labels, and more.
Run the Forge installer (it's a jar file, so you might need to right click it -> Open with... -> Java Platform Binary)
Place this mod into your mods folder
Notes
This is a GUI Library - so if you install it on a server, it will crash
If you're a modder, you should download the source from the GitHub page and place into your mod's "minecraft/src" folder in eclipse - that's all you need to do
Modders, please do not distribute this with your mod
Can you provide a sampe of code for us? I loaded up the src into my mod and extended a class using you base object but I am at a loss from there. Any help would be appreciated!
Hey Davidee!
Thanks for the great mod! I just finished my first Mod and I was looking for an easy to use Gui library and you're worked perfectly!
The mod uses your gui to create math questions for kids to solve, You can check it out here: http://www.minecraft...and-answer-mod/
I also added your mod to the credits.
Thanks for the lib!
You're welcome! Glad it could be of use:) And interesting mod there, pretty cool.
Can you provide a sampe of code for us? I loaded up the src into my mod and extended a class using you base object but I am at a loss from there. Any help would be appreciated!
You can view some of my other projects which use GuiLib on GitHub.
Amazing lib! I'm definitely going to use this!
EDIT: I'm having issues with the scrollbar. Could you please provide a quick example?
Scrollbars are fairly simple - you need to create a scrollbar and pass it into the Container's constructor. See this. The two numbers are documented in the constructor as well, but in more simple terms:
shiftAmount - The amount to shift when you shift focus to the next Widget (via tab or arrow keys)
extraScrollHeight - Extra space to account for (say you want there to be a 2 pixel gap on the top and bottom of the container, you should set extraScrollHeight to 4).
Scrollbars are fairly simple - you need to create a scrollbar and pass it into the Container's constructor. See this. The two numbers are documented in the constructor as well, but in more simple terms:
shiftAmount - The amount to shift when you shift focus to the next Widget (via tab or arrow keys)
extraScrollHeight - Extra space to account for (say you want there to be a 2 pixel gap on the top and bottom of the container, you should set extraScrollHeight to 4).
For some reason, they don't appear to work for me. (They don't show up).
This is my code:
Creation method
scrollbar = new ScrollbarVanilla(10);
stationContainer = new Container(scrollbar, 0, 4);
Can you say me, how to use him?
I install Davidee's GUI Library and Painting Select mod. Run my game and tryed to activate GUI menu, what have on screenshots about Davidee's GUI Library. But nothing happen, all pressed keys in keyboard not reflect any effort on screen.
Can you say me, how to use him?
I install Davidee's GUI Library and Painting Select mod. Run my game and tryed to activate GUI menu, what have on screenshots about Davidee's GUI Library. But nothing happen, all pressed keys in keyboard not reflect any effort on screen.
You mean the Painting Selection GUI? Aim at a painting and use the "/painting" command
Images
From MSC2
From Painting Selection GUI
Downloads
Older Versions
Installation
Notes
EDIT2: Released version 0.9.2 for Minecraft 1.5.2
Done, added some images from my mods that use this library.
EDIT: Updated to version 1.0.6, which adds:
Thanks for the great mod! I just finished my first Mod and I was looking for an easy to use Gui library and you're worked perfectly!
The mod uses your gui to create math questions for kids to solve, You can check it out here:
http://www.minecraftforum.net/topic/1955717-162forge-minecraft-student-math-question-and-answer-mod/
I also added your mod to the credits.
Thanks for the lib!
You're welcome! Glad it could be of use:) And interesting mod there, pretty cool.
You can view some of my other projects which use GuiLib on GitHub.
I did look at your other projects and they were still a bit confusing. I looked at mcstudents' also. It was a little easier to follow.
BTW, I will be using your mod in my Warp Mod I am developing.
If you have any questions, feel free to PM me/ask here. Let me know how it goes
EDIT: I'm having issues with the scrollbar. Could you please provide a quick example?
Scrollbars are fairly simple - you need to create a scrollbar and pass it into the Container's constructor. See this. The two numbers are documented in the constructor as well, but in more simple terms:
For some reason, they don't appear to work for me. (They don't show up).
This is my code:
Creation method
and
Revalidate method:
Any input?
Have you actually added widgets to the container? It won't show up unless it's needed.
No problem!
I have some questions about this mod.
Can you say me, how to use him?
I install Davidee's GUI Library and Painting Select mod. Run my game and tryed to activate GUI menu, what have on screenshots about Davidee's GUI Library. But nothing happen, all pressed keys in keyboard not reflect any effort on screen.
You mean the Painting Selection GUI? Aim at a painting and use the "/painting" command