diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-07-25 11:51:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 11:51:01 +0100 |
commit | 580fd1d5c4ec5625c813f6d593928a401a500869 (patch) | |
tree | d8a1255f6620b61203338e6471b4ed370e837e7d /versions/src/main/java | |
parent | 64329ad7ccedba53c47ccd3a08b9eb97e756122c (diff) | |
download | OneConfig-580fd1d5c4ec5625c813f6d593928a401a500869.tar.gz OneConfig-580fd1d5c4ec5625c813f6d593928a401a500869.tar.bz2 OneConfig-580fd1d5c4ec5625c813f6d593928a401a500869.zip |
Buttons but with a key twist (#70)
* config checker 9000
* apiDump
* rename
* put in package and remove javadocs
* put in package and remove javadocs
* button methods
Diffstat (limited to 'versions/src/main/java')
-rw-r--r-- | versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java b/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java index 09b3fe5..3b7490c 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java @@ -25,6 +25,22 @@ public class TestConfig_Test extends Config { ) public static boolean testCheckBox = true; + @Button( + name = "hello", + text = "click" + ) + private void doSomething() { + UChat.chat("i was called from a nonstatic method"); + } + + @Button( + name = "hello2", + text = "click" + ) + private static void doSomethingElse() { + UChat.chat("i was called from a static method"); + } + @Info( text = "Test Info", type = InfoType.ERROR, |