The demo shows some color schemes, but you can pick your own colors (any color is possible). Note that the fonts and 3 skill icons are not included. Note that not all UI Components are shown in each scene.
The NGUI Atlas component of this package requires the asset NGUI: Next-Gen UI
It was intentional becasue the font license didn’t allow the font to be distributed. Haven’t looked at this for some time but I think there was a text file or note in the package indicating where to get the font.
I can’t seem to grok how this works and how to use it in my code. I’m trying to use the OnGUI version.
I have the Colored GUISkin script attached to my game object. I have 4 colors set for booth primaryColors and secondaryColors. And I have my script attached to the gameobject, with the following code included.
public List primaryColors;
public List secondaryColors;
private bool hasUpdatedGui = false;
I also have some GUI.Labels and GUI.TextFields also. Nothing shows up when I run the scene except the text in the textfields barely shows part of the text.
I found out the problem, and it was me. I didn’t realize that the “A” in the color selection window is the alpha. It needed to be changed to fully white for anything to show up
Would it be possible to use this create a list of buttons that are all a different color?
Something like this:
for (i = 0; i < primaryColors.Count; i++)
{
ColoredGUISkin.Instance.UpdateGuiColors(primaryColors[i], secondaryColors[i]);
if (GUI.Button (new Rect (100, 10*i, 120, 48), "test"))
{
Debug.Log ("Just a test");
}
}