Galaxy
This project uses pure Bukkit API, and as such, is unlikely to break on Bukkit implementations. However, as I am no longer maintaining my Bukkit plugins, if you want to take this up, shoot me an e-mail at lucariatias<at>gmail<dot>com
About Galaxy
Galaxy is a GUI for bukkit. After playing with Swings recently, I felt like creating my own for Bukkit.
Features
- Adds a GUI to bukkit
Installation
Installs just like any other plugin, just drop into your plugins folder and you're ready to go!
Source
Adding support in your own plugin
Add the following code into your plugin to add a "planet" to Galaxy.
if (Bukkit.getServer().getPluginManager().getPlugin("Galaxy") != null) { Galaxy galaxy = (Galaxy) Bukkit.getServer().getPlugin("Galaxy"); galaxy.addPlanet(new Planet("Planet name", Color.[Colour name, e.g. RED, AQUA, etc], new [Insert the name of your frame here])); }
Create a class for your plugin's frame. If you use Eclipse, I reccommend using WindowBuilder.
The class must extend JFrame.
Your plugin.yml must also include:
softdepend: [Galaxy]
or, if Galaxy is a requirement:
depend: [Galaxy]
Maven
Repository information:
<repository> <id>galaxy-repo</id> <url>https://raw.github.com/Lucariatias/Galaxy/mvn-repo</url> </repository>
Dependency information:
<dependency> <groupId>io.github.lucariatias</groupId> <artifactId>galaxy</artifactId> <version>1.2.0</version> </dependency>
Permissions/Commands
None!
Configuration
The config contains one option: theme. This sets which theme to use, from the themes directory, minus the .yml extension. In theme file, you can set numerous options to change the colours used by Galaxy. The default is "dark". Using a blank file will result in the default Nimbus colours being used. You can see which colours can be set here. Copy the formatting for the dark theme for each colour.
If you do not like the look of Nimbus, you can use the following command line options:
Option | Resulting L&F |
---|---|
-Dswing.defaultlaf=javax.swing.plaf.metal | Metal |
-Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel | Motif |
-Dswing.defaultlaf=javax.swing.plaf.synth | Synth |
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel | GTK |
-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel | Windows |
It should probably be noted that Galaxy is only tested using Nimbus; other L&Fs are not guaranteed to work, an easier way to set L&F may be added in the future if requested.
Screenshots (Outdated; Galaxy 1.1)
Bugs/feature requests
Comment or open a ticket/PR on Github
This "plugin" is interesting! Worth a try!
Please wait until Galaxy 1.1 is accepted for a fancy new interface.
@choltfo
That's actually not a bad idea, and not very hard to pull off. I'm surprised people are still interested in this project, I was thinking of doing a full rewrite and making it look pretty. I've been really busy with exams and such, and when I do get time to program it's usually for Gildorym now, but that would be a fun side project when I can. Thanks.