From 580fd1d5c4ec5625c813f6d593928a401a500869 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Mon, 25 Jul 2022 11:51:01 +0100 Subject: 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 --- .../cc/polyfrost/oneconfig/test/TestConfig_Test.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'versions/src/main/java/cc') 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, -- cgit