public void OnLoad() { hero = ObjectManager.LocalHero; heroTeam = hero.Team; creepsData = new CreepsData(heroTeam); sleeper = new MultiSleeper(); if (Drawing.RenderMode == RenderMode.Dx9) { textFont = new Font( Drawing.Direct3DDevice9, new FontDescription { FaceName = "Tahoma", Height = menuManager.ShowOnMinimapSize, OutputPrecision = FontPrecision.Raster, Quality = FontQuality.ClearTypeNatural, CharacterSet = FontCharacterSet.Hangul, MipLevels = 3, PitchAndFamily = FontPitchAndFamily.Modern, Weight = FontWeight.Medium, Width = menuManager.ShowOnMinimapSize / 2 }); } }
public void OnLoad() { hero = ObjectManager.LocalHero; heroTeam = hero.Team; creeepTexture = Drawing.GetTexture( "materials/ensage_ui/heroes_horizontal/creep_" + (heroTeam == Team.Radiant ? "dire" : "radiant")); creepsData = new CreepsData(heroTeam); sleeper = new MultiSleeper(); }