public void SetRedNodeType(int index, RedNodeType type) { this.init(); if (this.mReds[index] != null) { this.mReds[index].SetType(type); } }
public void SetRedNodeType(RedNodeType type) { this.mRedCtrl.SetType(RedNodeType.eWarning); this.mRedCtrl.Value = 1; }
public void SetType(RedNodeType type) { this.mRedCtrl.SetType(type); }
public void SetType(RedNodeType type) { if (this.mType != type) { this.mType = type; if (type == RedNodeType.eRedCount) { this.image.enabled = true; this.image_icon.enabled = false; this.text_count.enabled = true; this.SetAniEnable(true); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode")); } else if (type == RedNodeType.eRedEmpty) { this.image.enabled = true; this.image_icon.enabled = false; this.text_count.enabled = false; this.SetAniEnable(true); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode")); } else if (type == RedNodeType.eRedWear) { this.image.enabled = true; this.image_icon.enabled = true; this.text_count.enabled = false; this.SetAniEnable(true); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode")); this.image_icon.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode_Wear")); } else if (type == RedNodeType.eRedNew) { this.image.enabled = true; this.image_icon.enabled = false; this.text_count.enabled = true; this.SetAniEnable(true); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode")); this.text_count.text = GameLogic.Hold.Language.GetLanguageByTID("red_new", Array.Empty <object>()); } else if (type == RedNodeType.eRedUp) { this.image.enabled = true; this.image_icon.enabled = true; this.text_count.enabled = false; this.SetAniEnable(true); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode")); this.image_icon.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode_Up")); } else if (type != RedNodeType.eGreenCount) { if (type == RedNodeType.eGreenEmpty) { this.image.enabled = true; this.image_icon.enabled = false; this.text_count.enabled = false; this.SetAniEnable(false); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_GreenNode")); } else if (type == RedNodeType.eGreenUp) { this.image.enabled = true; this.image_icon.enabled = true; this.text_count.enabled = false; this.SetAniEnable(false); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_GreenNode")); this.image_icon.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode_Up")); } else if (type == RedNodeType.eWarning) { this.image.enabled = true; this.image_icon.enabled = true; this.text_count.enabled = false; this.SetAniEnable(true); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode")); this.image_icon.set_sprite(SpriteManager.GetUICommon("UICommon_RedNode_Combine")); } } else { this.image.enabled = true; this.image_icon.enabled = false; this.text_count.enabled = true; this.SetAniEnable(false); this.image.set_sprite(SpriteManager.GetUICommon("UICommon_GreenNode")); } } }