-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Do what's needed to remove this:
//TODO: this shouldn't be getting created every draw call, that's not good
MeshProperties["InnerFront"] = new MeshProperty() { Color = ColorHex.Get(Color1) };
MeshProperties["InnerBack"] = new MeshProperty() { Color = ColorHex.Get(Color2) };
MeshProperties["NumberFront"] = new MeshProperty() { Color = ColorHex.Get(ColorText) };
MeshProperties["NumberBack"] = new MeshProperty() { Color = ColorHex.Get(ColorText) };
Also make changes to remove this and convert to MeshProperties passed in (will require a lot of game changes):
public string Color1 { get; set; } = ColorHex.DefaultColorHexCodes[ColorType.White];
public string Color2 { get; set; } = ColorHex.DefaultColorHexCodes[ColorType.White];
public string ColorText { get; set; } = ColorHex.DefaultColorHexCodes[ColorType.DefaultText];