Skip to content

Commit

Permalink
Version 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lukflug committed Dec 19, 2020
1 parent 5fe3084 commit ff6aeb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repositories {
}
dependencies {
compile("com.lukflug:panelstudio:0.1.1")
compile("com.lukflug:panelstudio:0.1.2")
}
shadowJar {
Expand All @@ -58,22 +58,24 @@ If you're planning to use PanelStudio-MC you have to also add this:
```
task downloadPanelstudio {
doLast {
new URL("https://github.com/lukflug/PanelStudio/releases/download/v0.1.1/panelstudio-mc-0.1.1.jar").withInputStream{i->new File("${buildDir}/panelstudio-mc-0.1.1.jar").withOutputStream{it<<i}}
new URL("https://github.com/lukflug/PanelStudio/releases/download/v0.1.2/panelstudio-mc-0.1.1.jar").withInputStream{i->new File("${buildDir}/panelstudio-mc-0.1.1.jar").withOutputStream{it<<i}}
}
}
task unpackPanelstudio(dependsOn: downloadPanelstudio, type: Copy) {
from zipTree("${buildDir}/panelstudio-mc-0.1.1.jar")
into "src/main/java"
}
setupDecompWorkspace.dependsOn(unpackPanelstudio)
```
Run the task `unpackPanelstudio` (which downloads and extracts the PanelStudio-MC source library for you) once before building. If you're using git you may also want to ignore the PanelStudio-MC source in `.gitignore`:
```
src/main/java/com/lukflug/panelstudio
src/main/java/META-INF
```
You can also do the `unpackPanelstudio` automatically when running `setupDecompWorkspace`, by adding:
```
setupDecompWorkspace.dependsOn(unpackPanelstudio)
```

### ClickGUI
The precise way PanelStudio is used in an utility mod depends on the module and setting manager. However the implementation should roughly follow follwing scheme. The main ClickGUI class should extend `MinecraftGUI` (if using PanelStudio-MC):
Expand Down Expand Up @@ -176,7 +178,7 @@ Toggleable hudToggle=new Toggleable() {
```

## Reference
For a list of classes and methods, consult the [javadoc](https://lukflug.github.io/javadoc/panelstudio/0.1.1/). For an example implementation, consult the GameSense source code.
For a list of classes and methods, consult the [javadoc](https://lukflug.github.io/javadoc/panelstudio/0.1.2/). For an example implementation, consult the GameSense source code.

## Creating custom themes
The components provided by PanelStudio use the methods in the `Renderer` interface to render. A `Theme` consist of three renderers: one for the single components (settings), one for the containers (modules) and one for the panels (categories). To see how themes are implemented, consult the package `com.lukflug.panelstudio.theme`.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
allprojects {
apply plugin: 'java-library'
group = 'com.lukflug'
version = '0.1.1'
version = '0.1.2'
}

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
Expand Down

0 comments on commit ff6aeb7

Please sign in to comment.