-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't figure out how to get IInterface #46
Comments
The instance you used to create the ClickGUI or HUD. If you're using the PanelStudio-MC support library, that's typically an instance of |
I can't get it from another class since it has protected access |
i figured it out but Point cfgvar5 = WatermarkModule.getComponent().getPosition(gui.getInterface()); returns java.awt.Point[x=1,y=1] even if its not at 1,1 |
If it's the WatermarkModule from the example mod, this shouldn't be the case. I can't tell what is causing it without looking at the code tho. |
Also worth noting is that the position you get via |
I tried to do it but it seems its not well documented and I don't exactly know how to use it |
Are there any more simple examples? |
I don't see how this could get much simpler. Most of the code is related to JSON loading/saving, which will have to be replaced by your own specific loading/saving code anyways. |
and the example also seems old |
Whoops, I linked the wrong branch: https://github.com/IUDevman/gamesense-client/blob/d2.3.1/src/main/java/com/gamesense/client/clickgui/GuiConfig.java |
I'm trying to get the position of the watermark but it requires IInterface, I cant figure out where I can get it
The text was updated successfully, but these errors were encountered: