RmlUi
RmlUi copied to clipboard
Checkbox with no check mark
Am testing out my RmlUi integration and whilst I can successfully render a textbox (with the text working), I am having a problem getting a checkbox to work.
Firstly, I discovered the hard way that if you don't specify the stylesheet info for borders etc, then you don't see anything. It would be great if there was a default stylesheet that rendered the basics for these components.
Once I figured that out, I can get a checkbox outline to render, but it doesn't display any checkmark, even though I have the "checked" option enabled.
Is the checkmark obtained from the font? If so, how do we know if a font supports it, and is there a default font we should be using to get any of the basics for the components to render correctly (like the checkmark)?
On a slightly separate note, I also tried out a textarea, but it only rendered 1 line (i.e. 1 row) even though I had cols and rows set... I'll tackle that once I get the checkboxes working, but if you had any suggestions there, that would be great.
Thanks!
From looking at the samples, it looks like the checkbox UI is driven from a spritesheet using decorators.
If I want to do something basic with a border and using a checkmark from a font, how would I go about doing that? Can a decorator use a font character / image?