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
I installed the plugin and it worked fine. Then suddenly the c key stopped working. What's the problem?
@vert642 All these things need to be in place for the GUI to show:
Server with SpoutPlugin User with Spoutcraft User with the relevant permission (or op) Valid screen file(s) in the folder (check for errors in the startup log)
1.4.7 b2 automatically creates a valid file when it starts (example.yml) so check the others are good.
Could you help me please?
I added the plugin to my server, but when I click on the control key it don't show the gui. The Gui is not loading at start and I used the command to try opening it, but it not worked too. I wrote "/os gui" (Not worked), I wrote "/os 1" (1 = the id, Not worked too....) please help I really want it on my server :(
@brentg14 You can already do this.
Just set a texture to span the whole screen and place it behind (higher priority) all other controls.
it would be nice if we could use a background for each screen like:
screens:
- text: Main Panel
id: 1
background-img: http://
@Darth_Buddha It already does all of that (and has done for almost a year) :)
Put as many text files as you want in the screens folder, and they will be read in alphabetical order. Each file can have as many screens as you want. When they are all read in the plugin treats them as one big file so the file name isn't needed to refer to any of the screens.
You can't (as far as I know) define plugin permissions dynamically as they have to be entered in the plugin.yml file. But you can use player permissions to control which screens/controls a player/group can see.
'c' opens the GUI, but you can change it in the Spoutcraft controls options.
It would be nice if you could have several gui.txt files...
gui_creator.can_open_gui = gui.txt = /openscreen gui
gui_creator.can_open_someothername = someothername.txt = /openscreen someothername
I can always aliases the name if it's to long.
Also a spout hotkey...
@rafalolszewski
Go Hack. Don't Crack.
@rafalolszewski The standard Minecraft client + CraftBukkit combination can't use custom GUIs. Without Spoutcraft and SpoutPlugin there is nothing of this plugin left.
Just buy the game!
would be nice if spout and spoutcraft would not be required, it requires to have original minecraft, we are on bukkit so we use cracked right?
@sparmerlin Add a stay_open: yes value to the button.
How do i stop the menu closing after i click a button? (So that you can click multiple buttons and the escape.)
keep up the great work.
@coldandtired
Excellent! Going to poke around and see how I can contribute.
@joshx123 You can find it here, or you can decompile the jar with something like jd-gui.
Hi,
Do you have the sourcecode up somewhere, I'm wanting to add additional global commands.
Josh
@LiqwdE You possibly have a key conflict in the other Spoutcraft. You can change the key by going to Spoutcraft's options | controls menu.
@Hey_There Can't really do much interesting like that though :)
Im running your GuiCreator on a server (or trying to...)
When I log in from my computer under the owner account everything is good. If i log into test account the C key no longers open the gui, i have to use the command
and second, is there a way to change the Gui open key from C to something else?
Thanks
@coldandtired
Unless you use the Chest GUI and mark specific items as specific stuffs, that's what MineTTT uses.