-
Heyo, As example controller.mainPanel().addCircleElement(*args*)
--or
controller.mainPanel().addPanel("panelOne", *args*).addCircleElement
--or
controller.getPanel("panelOne").removeCircleElement
--No final names, but I hope you understand what I mean |
Beta Was this translation helpful? Give feedback.
Answered by
SquidDev
Sep 9, 2022
Replies: 1 comment 1 reply
-
I assume this is what you want - you should just be able to create a class for panels (or whatever) and add class PanelElement {
@LuaFunction
public final PanelElement addPanel(String name) {
return new PanelElement();
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SirEndii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CC-Tweaked/src/main/java/dan200/computercraft/api/lua/MethodResult.java
Lines 63 to 64 in db8c979
I assume this is what you want - you should just be able to create a class for panels (or whatever) and add
@LuaFunction
s to it: