Galaxy

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.

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

GitHub

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:

OptionResulting L&F
-Dswing.defaultlaf=javax.swing.plaf.metalMetal
-Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeelMotif
-Dswing.defaultlaf=javax.swing.plaf.synthSynth
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeelGTK
-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeelWindows

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)

Screenshot Screenshot

Bugs/feature requests

Comment or open a ticket/PR on Github


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit