// Token: 0x06000FD2 RID: 4050 RVA: 0x00147BC4 File Offset: 0x00145DC4 public override void performHoverAction(int x, int y) { this.hoverText = ""; this.hoverTitle = ""; this.professionImage = -1; foreach (ClickableTextureComponent c in this.specialItems) { if (c.containsPoint(x, y)) { this.hoverText = c.hoverText; break; } } foreach (ClickableTextureComponent c2 in this.skillBars) { c2.scale = (float)Game1.pixelZoom; if (c2.containsPoint(x, y) && c2.hoverText.Length > 0) { if (!c2.name.Equals("-1")) { this.hoverText = c2.hoverText; this.hoverTitle = LevelUpMenu.getProfessionTitleFromNumber(Convert.ToInt32(c2.name)); this.professionImage = Convert.ToInt32(c2.name); c2.scale = 0f; break; } break; } } foreach (ClickableTextureComponent c3 in this.skillAreas) { if (c3.containsPoint(x, y) && c3.hoverText.Length > 0) { this.hoverText = c3.hoverText; this.hoverTitle = Farmer.getSkillNameFromIndex(Convert.ToInt32(c3.name)); break; } } if (this.playerPanel.Contains(x, y)) { this.playerPanelTimer -= Game1.currentGameTime.ElapsedGameTime.Milliseconds; if (this.playerPanelTimer <= 0) { this.playerPanelIndex = (this.playerPanelIndex + 1) % 4; this.playerPanelTimer = 150; return; } } else { this.playerPanelIndex = 0; } }
public override void performHoverAction(int x, int y) { this.hoverText = ""; this.hoverTitle = ""; this.professionImage = -1; foreach (ClickableTextureComponent specialItem in this.specialItems) { if (specialItem.containsPoint(x, y)) { this.hoverText = specialItem.hoverText; break; } } foreach (ClickableTextureComponent skillBar in this.skillBars) { skillBar.scale = (float)Game1.pixelZoom; if (skillBar.containsPoint(x, y) && skillBar.hoverText.Length > 0 && !skillBar.name.Equals("-1")) { this.hoverText = skillBar.hoverText; this.hoverTitle = LevelUpMenu.getProfessionTitleFromNumber(Convert.ToInt32(skillBar.name)); this.professionImage = Convert.ToInt32(skillBar.name); skillBar.scale = 0.0f; } } foreach (ClickableTextureComponent skillArea in this.skillAreas) { if (skillArea.containsPoint(x, y) && skillArea.hoverText.Length > 0) { this.hoverText = skillArea.hoverText; this.hoverTitle = Farmer.getSkillDisplayNameFromIndex(Convert.ToInt32(skillArea.name)); break; } } if (this.playerPanel.Contains(x, y)) { this.playerPanelTimer = this.playerPanelTimer - Game1.currentGameTime.ElapsedGameTime.Milliseconds; if (this.playerPanelTimer > 0) { return; } this.playerPanelIndex = (this.playerPanelIndex + 1) % 4; this.playerPanelTimer = 150; } else { this.playerPanelIndex = 0; } }
public override void performHoverAction(int x, int y) { hoverText = ""; hoverTitle = ""; professionImage = -1; foreach (ClickableTextureComponent c3 in specialItems) { if (c3 != null && c3.containsPoint(x, y)) { hoverText = c3.hoverText; break; } } foreach (ClickableTextureComponent c2 in skillBars) { c2.scale = 4f; if (c2.containsPoint(x, y) && c2.hoverText.Length > 0 && !c2.name.Equals("-1")) { hoverText = c2.hoverText; hoverTitle = LevelUpMenu.getProfessionTitleFromNumber(Convert.ToInt32(c2.name)); professionImage = Convert.ToInt32(c2.name); c2.scale = 0f; } } foreach (ClickableTextureComponent c in skillAreas) { if (c.containsPoint(x, y) && c.hoverText.Length > 0) { hoverText = c.hoverText; hoverTitle = Farmer.getSkillDisplayNameFromIndex(Convert.ToInt32(c.name)); break; } } if (playerPanel.Contains(x, y)) { playerPanelTimer -= Game1.currentGameTime.ElapsedGameTime.Milliseconds; if (playerPanelTimer <= 0) { playerPanelIndex = (playerPanelIndex + 1) % 4; playerPanelTimer = 150; } } else { playerPanelIndex = 0; } }