Skip to content

Commit

Permalink
Merge pull request #15 from Funboyy/master
Browse files Browse the repository at this point in the history
updated java version and deprecated annotation
  • Loading branch information
jumpingpxl authored Jun 3, 2024
2 parents 5e260f0 + 12c11c3 commit 2f60523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/pages/addon/features/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ You can create sections in your settings; you just have to add the annotation `@

If you want more structure in your settings but don't want to use Sections, you can create sub-settings that can be accessed via a button. Just create a new class, and let it inherit from `Config`. Add a field with the same type in your configuration (just the type, not a `ConfigProperty`) and create a new instance of said class. You might have noticed that you don't have to use the `AddonConfig` superclass for sub-settings. The `AddonConfig` class is required for your main configuration but not for sub-settings.

If you want to display more than just the advanced button (the button that lets you access the sub-settings), add the `@ParentSwitch` annotation to the most important switch in your sub-settings.
If you want to display more than just the advanced button (the button that lets you access the sub-settings), add the `@ShowSettingInParent` annotation to the most important switch in your sub-settings.

### Use Icons for Settings

Expand Down Expand Up @@ -164,7 +164,7 @@ These are some example files showing a few of the functions mentioned before.
``` java
public class ExampleSubSettings extends Config {

@ParentSwitch
@ShowSettingInParent
@SpriteSlot(x = 7)
@SwitchSetting
private ConfigProperty<Boolean> enabled = new ConfigProperty<>(true);
Expand Down Expand Up @@ -303,4 +303,4 @@ todo: write, check chattime

### Create Custom Setting Widgets

todo: write, check chattime
todo: write, check chattime
2 changes: 1 addition & 1 deletion docs/pages/addon/setup/first-steps.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
First you'll need a Java IDE, as of now we only support
<a href="https://www.jetbrains.com/idea/download/" target="_blank">IntelliJ IDEA</a>. Then download <a href="https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html" target="_blank">JDK (Java Development Kit) 17</a> if you haven't already.
<a href="https://www.jetbrains.com/idea/download/" target="_blank">IntelliJ IDEA</a>. Then download <a href="https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html" target="_blank">JDK (Java Development Kit) 21</a> if you haven't already.

Differences between the "Community" and "Ultimate" edition:

Expand Down

0 comments on commit 2f60523

Please sign in to comment.