This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.
Development on this plugin has stopped, and all further development is on the much better GUI Creator
page limit of 6 should be able to be removed by loading screens via their file name example i have.
main.xml
commandbook.xml for the default screen I would set main
Linking to other pages could use a simple system as well to add a button you could just allow some thing like open"nameofscreenfile" inside the button. allowing server owners like my self to setup vast networks of pages.
being able to set the x,y of where the button is placed would be a huge benefit as well instead of trying guess where it will be placed and hope that it looks ok.
Updated to 1.4. The download now comes with a couple of example files.
The custom_screens.xml file now needs to be placed in the plugins\Admin GUI\Screens\ folder.
Please re-read the tutorial as a few things were added :)
Also, if anyone wants to create a useful screen (specifically for another plugin, or a general one) please send it to me and you'll be credited (and I'll be very grateful :) )
The first time I didn't read that far and began my custom_screens.xml by copying the code from the customization heading and it took some time to see that the example code has a different formatting. Just thought I mention it because of others who might be as lazy as I was and don't read the full text^^
@limitless904
Did you put the custom_buttons.xml file in the plugins\Admin GUI\ folder? The plugin should log a message on startup if it can't find the file or if it's malformed. Try copying and pasting the example code into the file, It's the same code I was using to test it.
I'll have a look at PermissionsEx. This is the first thing I've written in Java so it's all still a bit new to me. If you say it's similar hopefully it won't be too much work :)
Now a little question:
How can I add a parameter to a button and how do I get the parameter bar?
Also your code at the "Customization" heading should be changed.
<button/> is not closing the button code its generating another not working button.
Same problem with <screen/>
Would this by chance work with PermissionsEx?(Pex)
The Pex documentation says:
In most cases plugins, which use Permissions, will alsowork with PEX also.
I have the jar file in my plugins folder, but its just not installing after any restarts.
Just kidding: Didn't see that you needed to add the custom file.
Edit2: Still not installing...
@RustyDagger
It's possible to have just 1 row of players (4 buttons) with the back/forward buttons. I tried it with 1 button but it took too long to get to players at the end of the alphabet :) I'll add a textbox next to the next button to allow for direct typing or an offline player.
Submenus would be (relatively :) ) easy to do, I'll try and add them tonight.
What about giving the rows of buttons a page within a page kind of thing with the up/down button system but that just changes the names on the buttons so it would still allow for any amount of players and I could say have 1 row + the Up and Down Buttons to change the names that are on that 1 row.'
Edit i think you may of already done that :D Iv not actualy downloaded the plugin just keeping a close eye on it and giving some idea's if it becomes some thing that i could use then i will ofc use it :D could save a ton of time teaching new admins as it is.
EDIT 2 What about applying some thing like i said to the buttons for other pages as well. it could only be displayed on the main page and then all the sub pages could be forced to have a back button that ofc removes the ability to sub nest pages to say 3 teirs like main > worldedit > selection or brushes. idk how you would decide what to display where if you had that kind of system its almost like every page would need it. just 1 row of 5 wide with a small left and right button at the end or each end to change the pages displayed.
i guess scalability is really what I'm talking about.
@RustyDagger
I'd almost finished implementing something similar when I read it :) Check out 1.3 and let me know what you think.
Now, any screen with no commands containing %player% can use the whole screen, and for screen which do need the playerlist, there's a new setting player_rows which can specify how much is taken up (the previous version was hardcoded at 8).
This version still uses automatic layout for the buttons, but you can add so many of them that most possible commands can be added. I'll be looking at full customization (size, position, etc.) for the next version.
I think you misunderstood what I was saying about the player box thing.
1 box 2 buttons.
button 1 is the UP button it moves in a up direction through the list of players online.
button 2 is the DOWN button it moves and a downward direction through the list of players online.
Box1 displays the current selection that the up/down buttons have picked it can also be erased by the admin so the admin can enter an offline players name. this would save so so much space on the screen and be really really neat to use.
@Fr0zenFr0g
In the config file (it's in plugins\Admin GUI\ - an empty one should have been created if you've installed and run the plugin) add (for example)
open_key:KEY_L
Replace KEY_L with whichever key you want, the possible values are here.
You'll need to reload the plugin or restart the server for it to change.
@Hoot215
That is something I was planning to do but wanted to get the automatic layout working first. It's pretty hard to match the clicked button with the right command (I wish they had tag properties :) ) but I think I can see a way to make boxes work and override automatic layout. I'll have a look tonight.
@RustyDagger
I originally designed it for the server I play on, which has 26 players. However, I am planning to add next and back buttons to show allow more players (and possibly fewer players on screen at once to allow more buttons).
Typing a name is something I wanted to avoid from the beginning as mistakes can be made, but also because the Spoutcraft text box doesn't scroll. This means the maximum number of characters that can be typed depends on the width of the box and I would need a huge box to be sure (this might be due to my DPI settings though).
At the moment 5 pages x 16 buttons can be done, but I like the idea of having some screens without the players visible to allow for more buttons.
Currently, the Main screen is hardcoded, and all the others are custom. That's why the Main screen has better layout and boxes, but comes at the cost of many lines of code to make it look that way.
Great plugin! It's very useful. Do you think that you could add an option to add more parameters to commands (Like you have it set up for "Teleport to" and "Give")? I know that you have the parameters bar at the bottom, but this would be easier. For example, this could come in handy for things like WorldEdit or LogBlock.
Example button: <button text="LogBlock-Rollback" command="/lb rb player %param1% since %param2% area %param3%"/>
Would make: LogBlock-Rollback [||||||||||] [||||||||||] [||||||||||]
Just a suggestion. :)
EDIT: Fixed because BBCode messed up formatting (???)
EDIT2: Stupid BBCode!
EDIT3: ... Now it's making the text coloured and crossed out??? -.- I will never understand BBCode...
I think you could aproach the whole player idea a lot better and add ways to have more than 5 pages and control over where the button is put on the screen it would be a ton better.
also it is not very clear on how to make the text boxes where the GUI user can input numbers an example would be real nice.
for the player system you could have just 1 text box ( where the user an type a name Or use the up /down buttons to cycle throght the list of players this would remove any and all limit on how many players it can display and still give the user control that being said i dont think any element should be Stuck to a screen and nothing should be forced every thing should be able to be turned off or moved such as the player section the player section could be hardcoded into the config with a simple toggle and pos settings maybe a page setting as well or a list of pages to display it on.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@coldandtired
few things are still a little unclear.
few limits that should be able to be removed.
main.xml commandbook.xml for the default screen I would set main
Linking to other pages could use a simple system as well to add a button you could just allow some thing like open"nameofscreenfile" inside the button. allowing server owners like my self to setup vast networks of pages.
being able to set the x,y of where the button is placed would be a huge benefit as well instead of trying guess where it will be placed and hope that it looks ok.
Updated to 1.4. The download now comes with a couple of example files.
The custom_screens.xml file now needs to be placed in the plugins\Admin GUI\Screens\ folder.
Please re-read the tutorial as a few things were added :)
Also, if anyone wants to create a useful screen (specifically for another plugin, or a general one) please send it to me and you'll be credited (and I'll be very grateful :) )
@AstarothBathory Pheeeew! I uploaded it at 3 in the morning so I thought I'd made a mistake :)
Later tonight I'll write a better tutorial and repackage it to come complete with an example file.
@coldandtired
ok :-)
Yes example code is working.
The first time I didn't read that far and began my custom_screens.xml by copying the code from the customization heading and it took some time to see that the example code has a different formatting. Just thought I mention it because of others who might be as lazy as I was and don't read the full text^^
@AstarothBathory Thanks :)
At the moment I removed the parameter bar to add individual ones (probably tomorrow). You can do this
and have another button with a different material, for example.
The customization code might be affected by the formatting. I know the example code works fine as I copied it directly from my custom_buttons file.
@limitless904 Did you put the custom_buttons.xml file in the plugins\Admin GUI\ folder? The plugin should log a message on startup if it can't find the file or if it's malformed. Try copying and pasting the example code into the file, It's the same code I was using to test it.
I'll have a look at PermissionsEx. This is the first thing I've written in Java so it's all still a bit new to me. If you say it's similar hopefully it won't be too much work :)
Hi,
You made really an awesome plugin! Thanks for it!
Now a little question: How can I add a parameter to a button and how do I get the parameter bar?
Also your code at the "Customization" heading should be changed. <button/> is not closing the button code its generating another not working button. Same problem with <screen/>
Should look like:
Thanks
Would this by chance work with PermissionsEx?(Pex) The Pex documentation says: In most cases plugins, which use Permissions, will alsowork with PEX also.
I have the jar file in my plugins folder, but its just not installing after any restarts.
Just kidding: Didn't see that you needed to add the custom file. Edit2: Still not installing...
@RustyDagger It's possible to have just 1 row of players (4 buttons) with the back/forward buttons. I tried it with 1 button but it took too long to get to players at the end of the alphabet :) I'll add a textbox next to the next button to allow for direct typing or an offline player.
Submenus would be (relatively :) ) easy to do, I'll try and add them tonight.
Thanks for all the suggestions!
@coldandtired
What about giving the rows of buttons a page within a page kind of thing with the up/down button system but that just changes the names on the buttons so it would still allow for any amount of players and I could say have 1 row + the Up and Down Buttons to change the names that are on that 1 row.'
Edit i think you may of already done that :D Iv not actualy downloaded the plugin just keeping a close eye on it and giving some idea's if it becomes some thing that i could use then i will ofc use it :D could save a ton of time teaching new admins as it is.
EDIT 2 What about applying some thing like i said to the buttons for other pages as well. it could only be displayed on the main page and then all the sub pages could be forced to have a back button that ofc removes the ability to sub nest pages to say 3 teirs like main > worldedit > selection or brushes. idk how you would decide what to display where if you had that kind of system its almost like every page would need it. just 1 row of 5 wide with a small left and right button at the end or each end to change the pages displayed.
i guess scalability is really what I'm talking about.
@RustyDagger I'd almost finished implementing something similar when I read it :) Check out 1.3 and let me know what you think.
Now, any screen with no commands containing %player% can use the whole screen, and for screen which do need the playerlist, there's a new setting player_rows which can specify how much is taken up (the previous version was hardcoded at 8).
This version still uses automatic layout for the buttons, but you can add so many of them that most possible commands can be added. I'll be looking at full customization (size, position, etc.) for the next version.
@coleandtired
I think you misunderstood what I was saying about the player box thing.
1 box 2 buttons.
button 1 is the UP button it moves in a up direction through the list of players online. button 2 is the DOWN button it moves and a downward direction through the list of players online.
Box1 displays the current selection that the up/down buttons have picked it can also be erased by the admin so the admin can enter an offline players name. this would save so so much space on the screen and be really really neat to use.
@coldandtired
thanks
@Fr0zenFr0g In the config file (it's in plugins\Admin GUI\ - an empty one should have been created if you've installed and run the plugin) add (for example)
Replace KEY_L with whichever key you want, the possible values are here.
You'll need to reload the plugin or restart the server for it to change.
how to change the key to open the panel?
@Hoot215 That is something I was planning to do but wanted to get the automatic layout working first. It's pretty hard to match the clicked button with the right command (I wish they had tag properties :) ) but I think I can see a way to make boxes work and override automatic layout. I'll have a look tonight.
@RustyDagger I originally designed it for the server I play on, which has 26 players. However, I am planning to add next and back buttons to show allow more players (and possibly fewer players on screen at once to allow more buttons).
Typing a name is something I wanted to avoid from the beginning as mistakes can be made, but also because the Spoutcraft text box doesn't scroll. This means the maximum number of characters that can be typed depends on the width of the box and I would need a huge box to be sure (this might be due to my DPI settings though).
At the moment 5 pages x 16 buttons can be done, but I like the idea of having some screens without the players visible to allow for more buttons.
Currently, the Main screen is hardcoded, and all the others are custom. That's why the Main screen has better layout and boxes, but comes at the cost of many lines of code to make it look that way.
Great plugin! It's very useful. Do you think that you could add an option to add more parameters to commands (Like you have it set up for "Teleport to" and "Give")? I know that you have the parameters bar at the bottom, but this would be easier. For example, this could come in handy for things like WorldEdit or LogBlock.
Example button: <button text="LogBlock-Rollback" command="/lb rb player %param1% since %param2% area %param3%"/>
Would make: LogBlock-Rollback [||||||||||] [||||||||||] [||||||||||]
Just a suggestion. :)
EDIT: Fixed because BBCode messed up formatting (???)
EDIT2: Stupid BBCode!
EDIT3: ... Now it's making the text coloured and crossed out??? -.- I will never understand BBCode...
I think you could aproach the whole player idea a lot better and add ways to have more than 5 pages and control over where the button is put on the screen it would be a ton better.
also it is not very clear on how to make the text boxes where the GUI user can input numbers an example would be real nice.
for the player system you could have just 1 text box ( where the user an type a name Or use the up /down buttons to cycle throght the list of players this would remove any and all limit on how many players it can display and still give the user control that being said i dont think any element should be Stuck to a screen and nothing should be forced every thing should be able to be turned off or moved such as the player section the player section could be hardcoded into the config with a simple toggle and pos settings maybe a page setting as well or a list of pages to display it on.