public void DrawOnMap(IRenderer renderer, IMinimap minimap) { var position = minimap.WorldToScreen(this.teleportPosition, 45 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } renderer.DrawTexture("o9k.outline_red", position * 1.12f); renderer.DrawTexture(this.mapTexture, position); var abilityTexturePosition = position * 0.5f; abilityTexturePosition.X += abilityTexturePosition.Width * 0.8f; abilityTexturePosition.Y += abilityTexturePosition.Height * 0.6f; renderer.DrawTexture("o9k.outline_green_pct100", abilityTexturePosition * 1.2f); renderer.DrawTexture(AbilityTexture, abilityTexturePosition); position.Y += 50 * Hud.Info.ScreenRatio; renderer.DrawText( position, this.RemainingDuration.ToString("N1"), Color.White, RendererFontFlags.Center, 18 * Hud.Info.ScreenRatio); }
public override void DrawOnMap(IMinimap minimap) { var position = minimap.WorldToScreen(this.Position, 30 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } var pct = (int)((GameManager.RawGameTime - this.AddedTime) / this.Duration * 100); RendererManager.DrawTexture("o9k.outline_red", position * 1.2f); RendererManager.DrawTexture("o9k.outline_black" + pct, position * 1.25f); RendererManager.DrawTexture(this.AbilityTexture, position, TextureType.RoundAbility); position.Y += 30 * Hud.Info.ScreenRatio; position *= 2; RendererManager.DrawText( TimeSpan.FromSeconds(this.Duration - (GameManager.RawGameTime - this.AddedTime)).ToString(@"m\:ss"), position, Color.White, FontFlags.Center | FontFlags.VerticalCenter, 18 * Hud.Info.ScreenRatio); }
// Token: 0x06000357 RID: 855 RVA: 0x0001BF5C File Offset: 0x0001A15C public void DrawOnMap(IRenderer renderer, IMinimap minimap) { Rectangle9 rec = minimap.WorldToScreen(this.Position, 45f * O9K.Core.Helpers.Hud.Info.ScreenRatio); if (rec.IsZero) { return; } float rawGameTime = Game.RawGameTime; if (rawGameTime < this.ShowHeroUntil) { renderer.DrawTexture("outline_red", rec * 1.12f, 0f, 1f); renderer.DrawTexture(this.HeroTexture, rec, 0f, 1f); Rectangle9 rec2 = rec * 0.5f; rec2.X += rec2.Width * 0.8f; rec2.Y += rec2.Height * 0.6f; renderer.DrawTexture("outline_green_pct100", rec2 * 1.2f, 0f, 1f); renderer.DrawTexture(this.AbilityTexture, rec2, 0f, 1f); return; } renderer.DrawTexture("outline_red", rec, 0f, 1f); if (this.ShowTimer) { int val = (int)((rawGameTime - this.addedTime) / this.Duration * 100f); renderer.DrawTexture("outline_black" + Math.Min(val, 100), rec * 1.05f, 0f, 1f); } renderer.DrawTexture(this.AbilityTexture, rec * 0.8f, 0f, 1f); }
// Token: 0x0600037C RID: 892 RVA: 0x0001C3A4 File Offset: 0x0001A5A4 public override void DrawOnMap(IRenderer renderer, IMinimap minimap) { Rectangle9 rec = minimap.WorldToScreen(base.Position, 35f * O9K.Core.Helpers.Hud.Info.ScreenRatio); if (rec.IsZero) { return; } renderer.DrawTexture("outline_red", rec * 1.12f, 0f, 1f); renderer.DrawTexture(base.AbilityTexture, rec, 0f, 1f); }
public override void DrawOnMap(IMinimap minimap) { var position = minimap.WorldToScreen(this.Position, 35 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } RendererManager.DrawTexture("o9k.outline_red", position * 1.12f); RendererManager.DrawTexture(this.AbilityTexture, position, TextureType.RoundAbility); }
// Token: 0x06000309 RID: 777 RVA: 0x0001B448 File Offset: 0x00019648 public override void DrawOnMap(IRenderer renderer, IMinimap minimap) { Rectangle9 rec = minimap.WorldToScreen(base.Position, 35f * O9K.Core.Helpers.Hud.Info.ScreenRatio); if (rec.IsZero) { return; } int num = (int)((Game.RawGameTime - this.addedTime) / this.Duration * 100f); renderer.DrawTexture("outline_red", rec * 1.2f, 0f, 1f); renderer.DrawTexture("outline_black" + num, rec * 1.25f, 0f, 1f); renderer.DrawTexture(base.AbilityTexture, rec, 0f, 1f); }
public override void DrawOnMap(IMinimap minimap) { var position = minimap.WorldToScreen(this.Position, 35 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } var pct = (int)(((GameManager.RawGameTime - this.addedTime) / this.Duration) * 100); RendererManager.DrawTexture("o9k.outline_red", position * 1.2f); RendererManager.DrawTexture("o9k.outline_black" + pct, position * 1.25f); RendererManager.DrawTexture(this.AbilityTexture, position, TextureType.RoundAbility); }
// Token: 0x060002C2 RID: 706 RVA: 0x0001A404 File Offset: 0x00018604 public override void DrawOnMap(O9K.Core.Managers.Renderer.IRenderer renderer, IMinimap minimap) { Rectangle9 rec = minimap.WorldToScreen(base.Position, 30f * O9K.Core.Helpers.Hud.Info.ScreenRatio); if (rec.IsZero) { return; } int num = (int)((Game.RawGameTime - this.AddedTime) / this.Duration * 100f); renderer.DrawTexture("outline_red", rec * 1.2f, 0f, 1f); renderer.DrawTexture("outline_black" + num, rec * 1.25f, 0f, 1f); renderer.DrawTexture(base.AbilityTexture, rec, 0f, 1f); rec.Y += 30f * O9K.Core.Helpers.Hud.Info.ScreenRatio; rec *= 2f; renderer.DrawText(rec, TimeSpan.FromSeconds((double)(this.Duration - (Game.RawGameTime - this.AddedTime))).ToString("m\\:ss"), System.Drawing.Color.White, RendererFontFlags.Center | RendererFontFlags.VerticalCenter, 18f * O9K.Core.Helpers.Hud.Info.ScreenRatio, "Calibri"); }
// Token: 0x06000335 RID: 821 RVA: 0x0001BD74 File Offset: 0x00019F74 public virtual void DrawOnMap(IRenderer renderer, IMinimap minimap) { Rectangle9 rec = minimap.WorldToScreen(this.Position, 45f * O9K.Core.Helpers.Hud.Info.ScreenRatio); if (rec.IsZero) { return; } renderer.DrawTexture("outline_red", rec * 1.12f, 0f, 1f); renderer.DrawTexture(this.HeroTexture, rec, 0f, 1f); Rectangle9 rec2 = rec * 0.5f; rec2.X += rec2.Width * 0.8f; rec2.Y += rec2.Height * 0.6f; renderer.DrawTexture("outline_green_pct100", rec2 * 1.2f, 0f, 1f); renderer.DrawTexture(this.AbilityTexture, rec2, 0f, 1f); }
public void DrawOnMap(IMinimap minimap) { var particlePosition = this.particle.Position; if (particlePosition.IsZero) { return; } var position = minimap.WorldToScreen(particlePosition, 45 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } RendererManager.DrawTexture("o9k.outline_red", position * 1.12f); RendererManager.DrawTexture(this.HeroTexture, position, TextureType.RoundUnit); }
public virtual void DrawOnMap(IMinimap minimap) { var position = minimap.WorldToScreen(this.Position, 45 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } RendererManager.DrawTexture("o9k.outline_red", position * 1.12f); RendererManager.DrawTexture(this.HeroTexture, position, UnitTextureType.RoundUnit); var abilityTexturePosition = position * 0.5f; abilityTexturePosition.X += abilityTexturePosition.Width * 0.8f; abilityTexturePosition.Y += abilityTexturePosition.Height * 0.6f; RendererManager.DrawTexture("o9k.outline_green_pct100", abilityTexturePosition * 1.2f); RendererManager.DrawTexture(this.AbilityTexture, abilityTexturePosition, TextureType.RoundAbility); }
public void DrawOnMap(IMinimap minimap) { var position = minimap.WorldToScreen(this.Position, 45 * Hud.Info.ScreenRatio); if (position.IsZero) { return; } var time = GameManager.RawGameTime; if (time < this.ShowHeroUntil) { RendererManager.DrawTexture("o9k.outline_red", position * 1.12f); RendererManager.DrawTexture(this.HeroTexture, position, UnitTextureType.RoundUnit); var abilityTexturePosition = position * 0.5f; abilityTexturePosition.X += abilityTexturePosition.Width * 0.8f; abilityTexturePosition.Y += abilityTexturePosition.Height * 0.6f; RendererManager.DrawTexture("o9k.outline_green_pct100", abilityTexturePosition * 1.2f); RendererManager.DrawTexture(this.AbilityTexture, abilityTexturePosition, TextureType.RoundAbility); } else { RendererManager.DrawTexture("o9k.outline_red", position); if (this.ShowTimer) { var pct = (int)(((time - this.addedTime) / this.Duration) * 100); RendererManager.DrawTexture("o9k.outline_black" + Math.Min(pct, 100), position * 1.05f); } RendererManager.DrawTexture(this.AbilityTexture, position * 0.8f, TextureType.RoundAbility); } }