Dear all,
Another problem with nifty: the font color is inverted…
This is my code :
[java]Screen index = nifty.getCurrentScreen();
Element element = index.findElementByName(“GPanel0”);
for(int i = 0; i < profileSize; i++) {
final int b = i;
// Panel for color, text & button
new PanelBuilder(“prof” + i) {{
childLayoutHorizontal();
height(profileHeight + “px”);
// text
text(new TextBuilder() {{
width(“75%”);
valignCenter();
font(“Interface/Fonts/LucidaSansUnicode.fnt”);
text(“PROFILE_X”);
}});
// Button
control(new ButtonBuilder(“selectButton_” + b) {{
interactOnClick(“quit()”);
alignRight();
width(“25%”);
valignCenter();
label(“select profile”);
}});
}}.build(nifty, index, element);
}[/java]
As you can see, the alpha canal is inverted
Do you know how to fix the bug???
Thank a lot.