If you were directed here to download Glass Pane as a mod depends on it, you can download it on the GitHub releases page. (GlassPane-1.0.jar)
If you want to see what Glass Pane can do, you can download PaneHarness from the GitHub releases page. (PaneHarness-1.0.jar) It adds a color-shifting glass pane in the bottom-right of the options menu - click that to go into the testing area.
I've made a quick GFY that shows some of the things in PaneHarness. I was a bit quick so that the GIF didn't get too big, if you want to see all the features you'll have to install PaneHarness.
Details for modders follows.
Glass Pane is a GUI framework for modders using Minecraft Forge to create appealing and powerful GUIs quickly and easily.
If you've used Swing, or Minecraft's default GuiScreen, you should feel right at home.
A note about the version number: Glass Pane is v1.0 since this is the first public release. I've been using it for private mods and local development for a number of months with no issues. It should be safe for production use, but if you find any bugs be sure to leave a bug report on our GitHub.
Example code:
public class PaneHello extends GlassPane {
public PaneHello() {
PaneLabel hello = new PaneLabel("Hello, Glass Pane!");
hello.setY(5);
hello.setX(5);
add(hello);
}
}
All you would have to do to display that Glass Pane you just created:
new PaneHello().show();
Overlays
One of the most powerful (and main) features of Glass Pane is overlays. They're simple to use:
new PaneHello().overlay();
That will create your Hello pane, and put it in front of the current screen, be it a Glass Pane or a plain vanilla GuiScreen. This means that the text 'Hello, Glass Pane!' will show up on top!
There are also sticky overlays. These are used by calling stickyOverlay() on a Glass Pane. A sticky overlay won't disappear when screens change, and has to be manually removed by using hide().
In addition, there are modal overlays. These are intended for use with yes/no dialogs; they will put the pane in front of the current screen and all of it's overlays, with a dark background.
There isn't a formal tutorial yet, and this post only scratches the surface of what Glass Pane can do. If you want to play with Glass Pane, download the PaneHarness mod and play around with all of the default components and features!
Source
All the source for Glass Pane is available over at our GitHub repository.
The Minecraft Forum post editor makes me want to destroy something
It adds a little glass pane icon to the bottom-right of the Options menu. If you click that, you're brought to the Glass Pane Test Harness, which is made completely using Glass Pane. It's basically a showcase for all the components and features that come with Glass Pane by default; buttons, progress bars, checkboxes, shadowboxes (animated backgrounds), sliders, etc.
I plan on making either a video series or a text tutorial series (probably text) to demonstrate Glass Pane, but I haven't had the time to do it yet.
Glass Pane is intended to be installed similar to other API mods, by being dropped into the mods folder, and having other mods declare dependencies to it in the @Mod annotation.
My previous posts talk about Harness, which is a mod for showcasing and testing Glass Pane.
If you want to see what Glass Pane can do, you can download PaneHarness from the GitHub releases page. (PaneHarness-1.0.jar) It adds a color-shifting glass pane in the bottom-right of the options menu - click that to go into the testing area.
I've made a quick GFY that shows some of the things in PaneHarness. I was a bit quick so that the GIF didn't get too big, if you want to see all the features you'll have to install PaneHarness.
Details for modders follows.
Glass Pane is a GUI framework for modders using Minecraft Forge to create appealing and powerful GUIs quickly and easily.
If you've used Swing, or Minecraft's default GuiScreen, you should feel right at home.
A note about the version number: Glass Pane is v1.0 since this is the first public release. I've been using it for private mods and local development for a number of months with no issues. It should be safe for production use, but if you find any bugs be sure to leave a bug report on our GitHub.
Example code:
All you would have to do to display that Glass Pane you just created:
Overlays
One of the most powerful (and main) features of Glass Pane is overlays. They're simple to use:That will create your Hello pane, and put it in front of the current screen, be it a Glass Pane or a plain vanilla GuiScreen. This means that the text 'Hello, Glass Pane!' will show up on top!
There are also sticky overlays. These are used by calling stickyOverlay() on a Glass Pane. A sticky overlay won't disappear when screens change, and has to be manually removed by using hide().
In addition, there are modal overlays. These are intended for use with yes/no dialogs; they will put the pane in front of the current screen and all of it's overlays, with a dark background.
There isn't a formal tutorial yet, and this post only scratches the surface of what Glass Pane can do. If you want to play with Glass Pane, download the PaneHarness mod and play around with all of the default components and features!
Source
All the source for Glass Pane is available over at our GitHub repository.The Minecraft Forum post editor makes me want to destroy something
That guy who does stuff, mostly mods:
I still have no clue what it actually does.
I plan on making either a video series or a text tutorial series (probably text) to demonstrate Glass Pane, but I haven't had the time to do it yet.
That guy who does stuff, mostly mods:
My previous posts talk about Harness, which is a mod for showcasing and testing Glass Pane.
That guy who does stuff, mostly mods: