Skip to content

Anyone know how to do NUI font colors?

ForSeriousForSerious Member Posts: 539
I'm trying to make my label dark green.
json jLabel = NuiLabel(NuiBind("mlevel"), JsonInt(NUI_HALIGN_CENTER), JsonInt(NUI_VALIGN_MIDDLE));
jLabel = NuiStyleForegroundColor(jLabel, NuiColor(0, 4, 0));
Doing this seems to make the label black or just not display. Can't really tell which.
I've tried changing the alpha value, but it didn't seem to change anything.

Comments

  • ForSeriousForSerious Member Posts: 539
    Baahaha. Sorry for the false adventure everyone.
    My code is correct, I just needed to put more than '4' into green.

    Anyway, I successfully made a little mining info window. I wish I had gotten into NUI sooner. This is pretty cool.
Sign In or Register to comment.