Mordag:
a) I meant setting it ONCE for example:
screen(screen builder() {{
font("myfont.fnt");
}});
…and have it on every child of this screen. As for second part of this: You mean that I should create label that is a child of button and set font for those label and leave actual button text empty?
[EDIT] Nope, label child of button doesn’t seem to work either.
b) For example button have this default convex look and setting background color doesn’t change it. Also I’d like to get rid of this silly red border when I hover mouse over button and have something else instead (background color change for example). Also setting permanent border around elements would be nice.
c) Care to show me code for those “given interactions”? How do I create those from grounds up? There isn’t a single word in manual about this. So far I did something like this:
control(new ButtonBuilder("Show Mesh Grid", "Show Mesh Grid") {{
// some other parameters here
backgroundColor("#somecolor");
onHoverEffect(new HoverEffectBuilder("MyEffect") {{
backgroundColor("#someothercolor");
}});
}});
…and it doesn’t work. It changes my color permanently to #someothercolor. When I added endHoverEffect in the same fashion it just took the “freshest” color in code.
d) Transparency != Invisibility. I don’t want my element to be invisible, I want it to be transparent with the alfa value set by me. Right now I can set transparency by setting background color in RGBA code. But it DOESN’T WORK for buttons, as they completely ignore A part, not to mension it changes only background. And I want text to be as transparent as background (which means I want WHOLE ELEMENT to be transparent - let’s say I have a button that has background color, text and small icon image in front of text - I want to set transparency to 20% somewhere, and have this whole button visible in 80%).
[EDIT] Small adjustment. It’s even worse in button case. It looks like RGBA in background color works but… It doesn’t really paint background. It just paints a rectangle over button default convex look. And I want to change this default look to pure color (or something else - but not paint over it, but change it).
Could You guys give me at least example syntax for doing some of the stuff I mentioned? Because without documentation I’m kinda unable to pull this off.
SimonBedard:
I’d agree with You if TonegodGUI was at least in as advanced state as NiftyGUI is (blast it, I even seen Tonegod him/her-self applauding NiftyGUI potential in several topics here). And to be honest it’s as far from it as NiftyGUI is from JavaFX (which should be a role model for all GUI’s in the world in my opinion).