Jump to content

Image child in a UI panel


Soul Filcher

Recommended Posts

Hi, I'm trying to create a UI panel that has an image as one of its children. Here's the code:

 

Spoiler

    self.MeterIcon = ISImage:new(1, 1, 11, 11, "media/ui/icon.png");
    self.MeterIcon:initialise();
--    self.MeterIcon.backgroundColor = {r=1, g=1, b=1, a=1};
    self:addChild(self.MeterIcon);

 

But I get an error in ISUIElement.lua line 669 / ISImage.lua line 45.

Java.lang.RuntimeException:

at.se.kahlua.integration.expose.MethodArguments.assertValid(MethodArguments.java:123)

at.se.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:187)

 

From what I understand one or more arguments are wrong, but I have no idea which one and how.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...