Skip to content

Commit

Permalink
Version 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
lukflug authored Jan 22, 2021
1 parent ebc30d6 commit 7b2b1b7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ shadowJar {
}
}
```
If you're planning to use PanelStudio-MC you have to also add this (replace `mc12` by `mc16`, if using PanelStudio-MC16):
If you're planning to use PanelStudio-MC12 you have to also add this:
```groovy
dependencies {
compile("com.lukflug:panelstudio-mc12:0.1.8")
Expand All @@ -63,6 +63,18 @@ shadowJar {
}
}
```
If you're planning to use PanelStudio-MC16 you have to also add this:
```groovy
dependencies {
modCompile("com.lukflug:panelstudio-mc16:0.1.9")
}
shadowJar {
dependencies {
include(dependency('com.lukflug:panelstudio-mc16'))
}
}
```

### 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 @@ -166,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.8/overview-summary.html). 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.9/overview-summary.html). 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`.

0 comments on commit 7b2b1b7

Please sign in to comment.