public static Color GetSkin(SkinTag tag) { if (!IsReady()) { Debug.LogError("<b>[Skinning]</b> : skinning is not ready (skin data has not been assigned)"); return(Color.black); } return(actual_skin.GetSkin(tag)); }
public void Init(Transform start, SkinTag normal, SkinTag validated, SkinTag wrong, SkinTag old, SubCategory startClue = SubCategory.EMPTY) { this.start = start; this.startClue = startClue; endClue = SubCategory.EMPTY; normalColor = Skinning.GetSkin(normal); validatedColor = Skinning.GetSkin(validated); wrongColor = Skinning.GetSkin(wrong); oldColor = Skinning.GetSkin(old); initializableInterface.InitInternal(); }
// used by Skinning class public Color GetSkin(SkinTag tag) { if (skin_slots == null || skin_slots.Count < 0) { Debug.LogError("<b>[SkinData]</b> : Skin slots are not setup"); return(Color.magenta); } SkinSlot slot = skin_slots.Find((item) => { return(tag == item.tag); }); if (slot != null) { return(slot.color); } else { return(Color.black); } }
public SkinSlot(SkinTag tag, Color color) { this.tag = tag; this.color = color; }
public static string Stringify(SkinTag skin) { string result = string.Empty; switch (skin) { case SkinTag.HighNoon: result = "a High Noon"; break; case SkinTag.ChineseNewYear: result = "a Chinese New Year"; break; case SkinTag.SnowDay: result = "a Snow Day"; break; case SkinTag.PoolParty: result = "a Pool Party"; break; case SkinTag.GuardianOfTheSands: result = "a Guardian Of The Sands"; break; case SkinTag.SuperGalaxy: result = "a Super Galaxy"; break; case SkinTag.Arcade: result = "an Arcade"; break; case SkinTag.RiotSquad: result = "a Riot Squad"; break; case SkinTag.Project: result = "a PROJECT"; break; case SkinTag.Officer: result = "a Police Officer"; break; case SkinTag.BloodMoon: result = "a Blood Moon"; break; case SkinTag.WarringKingdoms: result = "a Warring Kingdoms"; break; case SkinTag.Cards: result = "a Cards inspired"; break; case SkinTag.OrderOfLotus: result = "an Order O fLotus"; break; case SkinTag.SteelLegion: result = "an Steel Legion"; break; case SkinTag.Academy: result = "an Academy"; break; case SkinTag.DefinitelyNot: result = "a totally not suspicious"; break; case SkinTag.Arclight: result = "an Arclight"; break; default: result = "a " + Enum.GetName(typeof(SkinTag), skin); break; } return(result); }
void DrawInset(Vector2 offset, SkinTag tag) { EditorGUI.DrawRect(new Rect(offset.x + square_difference, offset.y + square_difference, inset_square_size, inset_square_size), data.GetSkin(tag)); }
void DrawSample(Vector2 offset, SkinTag tag) { EditorGUI.DrawRect(new Rect(offset.x, offset.y, sample_square_size, sample_square_size), data.GetSkin(tag)); }