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
-
View User Profile
-
Send Message
Posted Jan 12, 2012@nathanaelps Better late than never :)
Your suggestion as is unlikely to be included as I really only wanted this plugin to be a bridge between the user and other plugins. It is (in my opinion) up to the other plugins to decide under what circumstances players can use their commands, and to check whether certain requirements are met, the command is correctly structured, etc.
What this means is that GUI Creator only runs one real line of code, which is player.chat(command); I.e. it just simulates the player typing the command in the chat window. If I start adding bits of code I run into problems when other plugins update, or I could let players access commands that they shouldn't, etc.
This also means that in your example, your economy plugin should do that for you if the player doesn't have the money to perform the command.
However, I did today add the possibility to hide screens and controls if the player lacks the funds which should at least give a visual indication that the screen/command is currently unavailable. Although now I think of it it would probably be better to disable the buttons rather than hide them.
-
View User Profile
-
Send Message
Posted Jan 12, 2012@coldandtired: For some reason, i was thinking i should try it YAML style, but i decided not to and just to ask on here, lol. Guess I should've stuck with my instincts on that, xD
Thanks for the help - how do you not use this plugin? wouldn't that have been the reason you created it originally? lol
-
View User Profile
-
Send Message
Posted Jan 12, 2012@Heartless49 I should be updating the tutorial later on tonight. I don't actually use the plugin myself so I tend to forget what I added recently :)
The reason your temp_permissions doesn't work is that it needs to use the YAML list syntax (as more than one permission can be added). So it should look either like this
or like this
I prefer the second myself but YAML parsers understand them both.
Additional permissions can be added like this
or this
This is the same for all plugins, by the way, as it's built into YAML.
-
View User Profile
-
Send Message
Posted Jan 12, 2012first thing i have to say - this plugin is amazing, I've been able to create a gui that makes all of the complicated commands of both Towny, and WorldEdit and BREEZE to use and I'm loving it.
I've just installed the latest update and am very happy to hear about the use of funds, considering that my latest server uses EssentialsEco as a HUGE part of the gameplay. I'm just wondering if the tutorial will be updated to reflect these new keys.
My main question though is that I'm trying to use the temp_permissions key on a couple of buttons and for some reason it refuses to open any of my screens when I have that key in place. When I remove it, it works fine... just without the permissions.
I really can't figure out what I'm doing wrong.
-
View User Profile
-
Send Message
Posted Jan 12, 20121.3 is up - direct link
Changes
-
View User Profile
-
Send Message
Posted Jan 12, 2012@burtthaman I don't quite understand what you're asking. I think you mean that you would like to use the GUI screens created but not the GUI plugin itself?
95% of this plugin deals with auto-layout and hiding/showing controls. If you want to create a static GUI for another plugin it's far easier to just make your own with Spout.
-
View User Profile
-
Send Message
Posted Jan 11, 2012Question.... For Devs is it possible to include a page script file that is put into the \plugins\GUI Creator\Screens directory automatically and if they have GUI installed it will show up as a page, if not, it will just have the folder structure and file but no mod and wont work. Let me know the logistics of this.
I am debating on creating a GUI page for a specific mod I'm helping with and I'd rather have it bundled with the actual mod than doing a user created GUI here (which will never be seen by 90% of the people downloading that mod). I would also link here for downloading the mod by admins so that they can have it working.
-
View User Profile
-
Send Message
Posted Jan 10, 2012@Seweiwer Thanks. I know what's causing that. I'll fix it later tonight.
-
View User Profile
-
Send Message
Posted Jan 10, 2012I finally figured out how to use the radio buttons ;)
But I got a problem, it happens when you kick yourself with the GUI. (I was testing the GUI and needed to check the kick/ban buttons)
http://dev.bukkit.org/paste/4540/
But it isn't affecting the server or the plugin, so I think it's only a little issue.
-
View User Profile
-
Send Message
Posted Jan 10, 2012@coldandtired
ow ok i understand it now i gonna try make an example an implement it to my tutorial
-
View User Profile
-
Send Message
Posted Jan 10, 2012@ZeroX4 It will be the default value (whichever is set to selected in the screen file). There's no easy way to get the information from the server to decide which radio_button to select when the GUI is opened.
-
View User Profile
-
Send Message
Posted Jan 9, 2012@coldandtired yea i know it wont work like that > i got day than radio button day is selected when night radio button night is selected thats pretty obvious it cant work this way
i mean if i got that mob disguise radio buttons than if last thing i select is pig than when i open screen again will it still be selected on pig cause if yes than after 1 hour walking disguised i can forget what im disguised for so like wen i open gui does last radio button i selected will be still selected or it will be on default value like in sliders ?
-
View User Profile
-
Send Message
Posted Jan 9, 2012@ZeroX4 Sorry, I misunderstood your earlier post.
There's no way for the radio_buttons (or any other controls) to reflect the actual state of the server so it wouldn't be able to tell you what you were disguised as.
In usage it's the same as other controls. The button gets the value from it and adds it to the command - clicking the radio_button doesn't execute a command.
-
View User Profile
-
Send Message
Posted Jan 9, 2012@coldandtired well actually i mention mob disguise cause this plugin change you to monsters but only other users can see it when you hit F5 you dont see any change so radio buttons would be better in this case
anyway clear for me 1 more thing radio button isnt (press to active button) its like slider (chose your value) ? and it cooperate with normal command button ?
-
View User Profile
-
Send Message
Posted Jan 9, 2012@ZeroX4 Yes, that's how it works. /md ^0^ (or ^1^, etc.) Probably easier with a slider though.
-
View User Profile
-
Send Message
Posted Jan 9, 2012@coldandtired so like if i got plugin that change me in to the mob with command /md mobname exampe
/md pig
than with radio buttons i can make like 5 radion buttons with pig cow chicken zombie and creepr and radio button let me select only 1 ?
so i know in which mob im changed by looking which radio button is selected ?
-
View User Profile
-
Send Message
Posted Jan 9, 2012The order of the buttons at the top of the screen is taken first from the filename and then from the order within the file.
If you want to enforce a specific order you can either rename the files (as suggested below) or move all the screens into one file, in whatever order you want
As for radio_buttons, an explanation is here. The group key is what ties the radio_buttons together (as they can be placed anywhere on the screen), and is used to ensure that only one radio_button from each group can be selected at any one time.
-
View User Profile
-
Send Message
Posted Jan 9, 2012@ZeroX4
Hmm, didn't know that with the file names, thank you
I hope that coldandtired can explain how to use the radio buttons. :)
-
View User Profile
-
Send Message
Posted Jan 9, 2012@Seweiwer screens r sorted by the file names
so if you got files like for example admin.txt main.txt operator.txt memeber.txt
just change them to 1main.txt 2admin.txt 3member.txt 4operator.txt
its only way to sort them i know
and about radio button i dont understand how it works and never try it
i thought it was button to stream music or something like that but i cant help you with that i gonna check guide and see if i can get it to work but better ask plugin autor
-
View User Profile
-
Send Message
Posted Jan 9, 2012ZeroX4, do you have a screen with working radio buttons?