GUI Creator
Anyone who has been active on the main forums in the last few days must surely have already heard the news.
I'm not going to comment on why and how, but the short version is that Bukkit is almost certainly not getting passed this.
Consequently, the future of BukkitDev is very uncertain. Even if the legal matters were resolved tomorrow there isn't really anybody left to deal with file submissions anyway. There's no indication about how long the site will stay up and what will happen to the files.
Anyway, while I will continue updating and developing my plugins you will need to look for updates somewhere else, namely the wiki. I will be updating this wiki in the next few days to facilitate better communication (forums, email, etc.) and adding any documentation that's missing.
I will also, of course, be looking into porting the plugins over to whichever API emerges from the ashes!
GUI Creator
This is the successor to Admin GUI, featuring a simpler config but offering more powerful customisation!
How it works
Each screen is divided into ten rows, each having four columns (by default). Controls can be placed into any of these cells, and can span multiple rows and columns. It's also possible to set the exact x, y, width, and height values if needed. See the tutorial for more information.
Video overview
Tutorial
Available controls
- buttons
- text boxes
- checkboxes
- radio buttons
- textures (for images)
- sliders
- gradients
- labels
- spacers
- link buttons
Requirements
- SpoutPlugin
- Spoutcraft
Both of these can be downloaded here
Config
- open_screen
- set this to the id of a screen to have that screen automatically open when the GUI does
- make_player_skins
- set this to no to stop the plugin creating skins when players join the server
The rest of the config is used to change the default colours of things. Each value must be a string in the format r,g,b or r,g,b,a. Note that you can override these colours on any particular control.
Commands
- /reload_gui_creator or /rgc
- this will refresh the layout files if they have been changed since the plugin was started. The new screens will be visible the next time the GUI is opened
- /open_screen or /os
- this is an alternative to pressing the C key
- use on its own to open the GUI like normal
- use with a screen id to open the GUI directly to that screen
Permissions
- gui_creator.can_open_gui - controls whether the user can access the GUI. Default is false.
- gui_creator.can_reload_screens - controls whether the user can reload the screen files. Default is false.
Mac users
I've been informed that Macs have a very unfriendly behaviour of treating remote folders like local folders and creating hidden files on them. This has been causing the problems that I've seen come up a few times where the plugin is trying to read this hidden file.
I've fixed this from 1.6.7 but it you don't want to update, or you're seeing problems with other plugins, there are a couple of things you can do. One is to delete the file .DS_Store from any remote folders that are giving you trouble. Second is to follow the instructions here and stop the behaviour altogether.
Issues
- there are a couple of controls that are hard-coded in Spout so resizing them won't work as intended (mainly check_box and radio_button)
- this plugin is intended to be run full-screen, with GUI scale set to auto (see the previous point)
Like this and want to show appreciation? Send any unwanted TF2 items my way! id: coldandtired
Is there a way to make it so right clicking a block opens a gui?
@Q2Lummox Not at the moment.
It would be difficult to do but I'll have a look.
You can set a limit of "clicks" to a button?. For example, I am creating a panel of works, so that a player can choose from the list a maximum of 3 works.
I would like you to click on three buttons on this screen, the panel for this user disappeared.
This can be?.
Perfect!! Thanks to you for the fix ;-)
@Q2Lummox Found and fixed - http://dev.bukkit.org/bukkit-mods/gui-creator/files/35-1-5-2-b1/
Thanks for the report :)
@Q2Lummox I'm looking into this tonight.
Sorry is a error with the traductor.
I wrote "type" really. It must be another error.
@Q2Lummox Can you try it with type instead of Type?
@coldandtired
Well, I think I found the problem.
Apparently if you use the option "Texture", it gives an error and kicks me from the server.
If I add this to any "screen", I get error:
The error console is showing:
<<code>>
2013-06-01 02:25:00 [WARNING] Failed to handle packet for Q2Lummox/XX.XXX.XXX.XX: java.lang.NullPointerException java.lang.NullPointerExceptionat me.coldandtired.GUI_Creator.Gui.replace_text(Gui.java:254) at me.coldandtired.GUI_Creator.Gui.fill_command_area(Gui.java:415) at me.coldandtired.GUI_Creator.GuiScreen.onButtonClick(GuiScreen.java:85) at org.getspout.spoutapi.packet.PacketControlAction.run(PacketControlAction.java:114) at org.getspout.spout.packet.CustomPacket.handle(CustomPacket.java:139) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:187) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109) at org.getspout.spout.SpoutPlayerConnection.d(SpoutPlayerConnection.java:195) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
2013-06-01 02:25:00 [INFO] onPlayerKick - before:§eQ2Lummox left the game.<</code>>
I think it's a bug with using "Texture". My intention in showing skin 2d image of the character. Everything worked fine until the latest update of your plugin.
You can check that causes this error?
@ibawolf222 It's almost impossible.
I ported some of it to Forge but all the interesting controls (checkboxes, drop down boxes, etc.) were created by the Spout team.
So in Forge it would be only buttons and text and you would still need a client mod.
this plugin is great! but the problem is it is using spout and i would like something like this that doesnt require spout is that even possible or am i just dreaming that it could be?
@coldandtired
Do not worry, if the error is for a bad syntax of the configuration, I myself I will go. Just wanted to make sure before reviewing all pages created.
A greeting and thanks ;)
@Q2Lummox You have something wrong with a screen file. Paste it/them somewhere and I'll have a look.
Why do I get these errors?
Use the latest version of "Gui Creator" and the latest version of "Spigot".
http://tny.cz/6252bafa
@Mr_Wired It works fine with 1.5.2.
Could you please update to 1.5.2, I could really use this for my server :D
@coldandtired
Thanks. It works! :D
Might wanna specify. Kinda confusing. Sorry for taking so long to reply.
@nintendoto From what I remember it should be like this:
Is that not working?
I would like to know how to configure the combo_box(es) for the custom values. I see that you're supposed to put in the "items" controller, but I can't seem to format it correctly. Sorry if this has already been answered, I've got to get this running by tomorrow to keep people from ripping their hair out.
Putting in: - type: combo_box mode: normal items: - item: text: name selected_value: value
That returns the right amount of results per item, but the text/names return as "null".
@bradgillap There was a user making an app but I think he must have stopped.
GUI Creator is currently treading water a little as I'm rewriting it for forge, and will be porting it for Spout (the new Spout) when the GUI stuff is ready for it.
Once all that is done I could knock up an app quite quickly though.