/// <summary> /// /// </summary> public void ShowTip() { if (_curView == this) { UITooltip.Hide(); _curView = null; return; } _curView = this; var itemData = GetData <ItemData>(); if (itemData == null) { return; } UITooltip.Show(itemData.Tip); }
public override void OnTooltip(bool show) { if (item == null) { return; } if (show) { item.PrepareToolTip(); UITooltip.AnchorToRect(transform as RectTransform); UITooltip.Show(); } else { UITooltip.Hide(); } }
private void Awake() { attrControls = new Dictionary <string, AttrUIControl>(); skillIcon = new List <Transform>(); Transform skills = this.transform.Find("skills"); for (int i = 0; i < skills.childCount; i++) { skillIcon.Add(skills.GetChild(i)); UIEventListener.Get(skills.GetChild(i).gameObject).onHover = (go, state) => { if (state) { UITooltip.Show(go.name); } else { UITooltip.Hide(); } }; } lv = this.transform.Find("lv").Find("value").GetComponent <UILabel>(); killed = this.transform.Find("kill").Find("value").GetComponent <UILabel>(); soul = this.transform.Find("soul").Find("value").GetComponent <UILabel>(); iconFocus = this.transform.Find("focus").GetComponent <UITexture>(); iconFocus.enabled = false; attrControls["hp"] = new SliderControl(this.transform.FindChild("hp"), null); attrControls["mp"] = new SliderControl(this.transform.FindChild("mp"), null); attrControls["exp"] = new SliderControl(this.transform.FindChild("exp"), null); attrControls["atk"] = new IconControl(this.transform.FindChild("atk"), null); attrControls["def"] = new IconControl(this.transform.FindChild("def"), null); attrControls["speed"] = new IconControl(this.transform.FindChild("speed"), null); attrControls["luck"] = new IconControl(this.transform.FindChild("luck"), null); attrControls["mind"] = new IconControl(this.transform.FindChild("mind"), null); //Transform hd = this.transform.FindChild("HUDText"); //this.attacker.GetComponent<ChracterBase>().SetHudText(hd.GetComponent<HUDText>()); //GameManager.gameMain.RegStateUI(this); }
// Token: 0x06000031 RID: 49 RVA: 0x00008FC0 File Offset: 0x000073C0 private void OnTooltip(bool show) { InvGameItem invGameItem = (!show) ? null : this.mItem; if (invGameItem != null) { InvBaseItem baseItem = invGameItem.baseItem; if (baseItem != null) { string text = string.Concat(new string[] { "[", NGUIText.EncodeColor(invGameItem.color), "]", invGameItem.name, "[-]\n" }); string text2 = text; text = string.Concat(new object[] { text2, "[AFAFAF]Level ", invGameItem.itemLevel, " ", baseItem.slot }); List <InvStat> list = invGameItem.CalculateStats(); int i = 0; int count = list.Count; while (i < count) { InvStat invStat = list[i]; if (invStat.amount != 0) { if (invStat.amount < 0) { text = text + "\n[FF0000]" + invStat.amount; } else { text = text + "\n[00FF00]+" + invStat.amount; } if (invStat.modifier == InvStat.Modifier.Percent) { text += "%"; } text = text + " " + invStat.id; text += "[-]"; } i++; } if (!string.IsNullOrEmpty(baseItem.description)) { text = text + "\n[FF9900]" + baseItem.description; } UITooltip.Show(text); return; } } UITooltip.Hide(); }
void OnTooltip() { UITooltip.Show("gasdfawegagasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfgasdfawegadsfasdfdsfasdf"); }
public void OnPointerEnter(PointerEventData eventData) { tooltip.Show(tooltipText); }
public unsafe static long $Invoke6(long instance, long *args) { UITooltip.Show(Marshal.PtrToStringUni(*(IntPtr *)args)); return(-1L); }
public void TestToolTips() { UITooltip.Show("Click this button to open Page 1"); }