Hello,
when I call methods without arguments from a button, it works fine, but once I add an argument to it, like:
[java]
public void choose(){}
[/java]
to
[java]
public void choose(int index){}
[/java]
and
[xml]<interact onClick=“choose()”/>[/xml]
to
[xml]<interact onClick=“choose(0)”/>[/xml]
It doesn’t work anymore and I get
30.03.2011 18:17:03 de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: java.lang.Thread run (Thread.java:662)
Can’t I pass arguments like this? Also is it somehow possible to get a panel in my ScreenController class and modify its attributes?
/edit: Solved question 2.
you can only use String arguments for this because Nifty doesn’t really know if you mean (String) “0” or (int) 0 or (float) 0.f
so it’s always passed as a String parameter.