public HeroStatus(IContext9 context, ITopPanel topPanel, IHudMenu hudMenu) { this.context = context; this.topPanel = topPanel; Menu menu = hudMenu.TopPanelMenu.Add <Menu>(new Menu("Health")); this.showEnemyHealth = menu.Add <MenuSwitcher>(new MenuSwitcher("Show enemy health", true, false)); this.showAllyHealth = menu.Add <MenuSwitcher>(new MenuSwitcher("Show ally health", true, false)); Menu menu2 = hudMenu.TopPanelMenu.Add <Menu>(new Menu("Mana")); this.showEnemyMana = menu2.Add <MenuSwitcher>(new MenuSwitcher("Show enemy mana", true, false)); this.showAllyMana = menu2.Add <MenuSwitcher>(new MenuSwitcher("Show ally mana", true, false)); Menu menu3 = hudMenu.TopPanelMenu.Add <Menu>(new Menu("Ultimate")); this.showEnemyUlt = menu3.Add <MenuSwitcher>(new MenuSwitcher("Show enemy ultimate", true, false)); this.showAllyUlt = menu3.Add <MenuSwitcher>(new MenuSwitcher("Show ally ultimate", true, false)); this.showUltCd = menu3.Add <MenuSwitcher>(new MenuSwitcher("Show ultimate cooldown", true, false)); this.showUltCdTime = menu3.Add <MenuSwitcher>(new MenuSwitcher("Show ultimate cooldown time", false, false)); Menu menu4 = hudMenu.TopPanelMenu.Add <Menu>(new Menu("Items")); this.showEnemyItems = menu4.Add <MenuSwitcher>(new MenuSwitcher("Show enemy items", true, false)).SetTooltip("Show important enemy items"); this.showAllyItems = menu4.Add <MenuSwitcher>(new MenuSwitcher("Show ally items", true, false)).SetTooltip("Show important ally items"); Menu menu5 = hudMenu.TopPanelMenu.Add <Menu>(new Menu("Visibility")); this.showFowTime = menu5.Add <MenuSwitcher>(new MenuSwitcher("Show time in fow", true, false)).SetTooltip("Show how many seconds enemy is in fog of war"); }
public NetWorth(IContext9 context, ITopPanel topPanel, IHudMenu hudMenu) { this.context = context; this.topPanel = topPanel; Menu menu = hudMenu.TopPanelMenu.Add <Menu>(new Menu("Net worth")); this.show = menu.Add <MenuSwitcher>(new MenuSwitcher("Enabled", "enabled", true, false)).SetTooltip("Show net worth lead"); }
public NetWorth(ITopPanel topPanel, IHudMenu hudMenu) { this.topPanel = topPanel; var menu = hudMenu.TopPanelMenu.Add(new Menu("Net worth")); menu.AddTranslation(Lang.Ru, "Стоимость"); menu.AddTranslation(Lang.Cn, "净值"); this.show = menu.Add(new MenuSwitcher("Enabled", "enabled")).SetTooltip("Show net worth lead"); this.show.AddTranslation(Lang.Ru, "Включено"); this.show.AddTooltipTranslation(Lang.Ru, "Показывать разницу в стоимости предметов"); this.show.AddTranslation(Lang.Cn, "启用"); this.show.AddTooltipTranslation(Lang.Cn, "显示经济领先"); }
public HeroStatus(ITopPanel topPanel, IHudMenu hudMenu) { this.topPanel = topPanel; var statusMenu = hudMenu.TopPanelMenu.Add(new Menu("Status")); statusMenu.AddTranslation(Lang.Ru, "Статус"); statusMenu.AddTranslation(Lang.Cn, "状态"); var healthMenu = statusMenu.Add(new Menu("Health")); healthMenu.AddTranslation(Lang.Ru, "Здоровье"); healthMenu.AddTranslation(Lang.Cn, "生命值"); this.showEnemyHealth = healthMenu.Add(new MenuSwitcher("Show enemy health")); this.showEnemyHealth.AddTranslation(Lang.Ru, "Показывать здоровье врагов"); this.showEnemyHealth.AddTranslation(Lang.Cn, "显示敌人血量状态"); this.showAllyHealth = healthMenu.Add(new MenuSwitcher("Show ally health")); this.showAllyHealth.AddTranslation(Lang.Ru, "Показывать здоровье союзников"); this.showAllyHealth.AddTranslation(Lang.Cn, "显示盟友血量状态"); var manaMenu = statusMenu.Add(new Menu("Mana")); manaMenu.AddTranslation(Lang.Ru, "Мана"); manaMenu.AddTranslation(Lang.Cn, "魔法值"); this.showEnemyMana = manaMenu.Add(new MenuSwitcher("Show enemy mana")); this.showEnemyMana.AddTranslation(Lang.Ru, "Показывать ману врагов"); this.showEnemyMana.AddTranslation(Lang.Cn, "显示敌人法力状态"); this.showAllyMana = manaMenu.Add(new MenuSwitcher("Show ally mana")); this.showAllyMana.AddTranslation(Lang.Ru, "Показывать ману союзников"); this.showAllyMana.AddTranslation(Lang.Cn, "显示盟友法力状态"); var ultMenu = statusMenu.Add(new Menu("Ultimate")); ultMenu.AddTranslation(Lang.Ru, "Ульта"); ultMenu.AddTranslation(Lang.Cn, "终极技能"); this.showEnemyUlt = ultMenu.Add(new MenuSwitcher("Show enemy ultimate")); this.showEnemyUlt.AddTranslation(Lang.Ru, "Показывать ульту врагов"); this.showEnemyUlt.AddTranslation(Lang.Cn, "显示敌人终极技能"); this.showAllyUlt = ultMenu.Add(new MenuSwitcher("Show ally ultimate")); this.showAllyUlt.AddTranslation(Lang.Ru, "Показывать ульту союзников"); this.showAllyUlt.AddTranslation(Lang.Cn, "显示盟友终极技能"); this.showUltCd = ultMenu.Add(new MenuSwitcher("Show ultimate cooldown")); this.showUltCd.AddTranslation(Lang.Ru, "Показывать \"круг\" ульты"); this.showUltCd.AddTranslation(Lang.Cn, "显示终极技能冷却时间"); this.showUltCdTime = ultMenu.Add(new MenuSwitcher("Show ultimate cooldown time", false)); this.showUltCdTime.AddTranslation(Lang.Ru, "Показывать время ульты в \"круге\""); this.showUltCdTime.AddTranslation(Lang.Cn, "显示终极技能冷却时间时间"); var buyBackMenu = statusMenu.Add(new Menu("Buyback")); buyBackMenu.AddTranslation(Lang.Ru, "Выкуп"); buyBackMenu.AddTranslation(Lang.Cn, "买活"); this.showBuyback = buyBackMenu.Add(new MenuSwitcher("Show when dead").SetTooltip("Show if enemy has buyback when dead")); this.showBuyback.AddTranslation(Lang.Ru, "При смерти"); this.showBuyback.AddTooltipTranslation(Lang.Ru, "Показывать есть ли выкуп, когда враг мертв"); this.showBuyback.AddTranslation(Lang.Cn, "死亡显示"); this.showBuyback.AddTooltipTranslation(Lang.Cn, "显示敌人死后是否有买活"); var itemsMenu = hudMenu.TopPanelMenu.Add(new Menu("Items")); itemsMenu.AddTranslation(Lang.Ru, "Предметы"); itemsMenu.AddTranslation(Lang.Cn, "物品"); this.showEnemyItems = itemsMenu.Add(new MenuSwitcher("Show enemy items")).SetTooltip("Show important enemy items"); this.showEnemyItems.AddTranslation(Lang.Ru, "Предметы врагов"); this.showEnemyItems.AddTooltipTranslation(Lang.Ru, "Показывать важные предметы врагов"); this.showEnemyItems.AddTranslation(Lang.Cn, "显示敌人物品"); this.showEnemyItems.AddTooltipTranslation(Lang.Cn, "显示重要的敌人物品"); this.showAllyItems = itemsMenu.Add(new MenuSwitcher("Show ally items")).SetTooltip("Show important ally items"); this.showAllyItems.AddTranslation(Lang.Ru, "Предметы союзников"); this.showAllyItems.AddTooltipTranslation(Lang.Ru, "Показывать важные предметы союзников"); this.showAllyItems.AddTranslation(Lang.Cn, "盟友物品"); this.showAllyItems.AddTooltipTranslation(Lang.Cn, "显示重要的盟友物品"); var visibilityMenu = hudMenu.TopPanelMenu.Add(new Menu("Visibility")); visibilityMenu.AddTranslation(Lang.Ru, "Видимость"); visibilityMenu.AddTranslation(Lang.Cn, "能见度"); this.dimHpMp = visibilityMenu.Add(new MenuSwitcher("Dim health and mana")) .SetTooltip("Dim health and mana bars when unit is not visible"); this.dimHpMp.AddTranslation(Lang.Ru, "Затемнять хп/мп"); this.dimHpMp.AddTooltipTranslation(Lang.Ru, "Затемнять хп/мп если враг в тумане войны"); this.dimHpMp.AddTranslation(Lang.Cn, "昏暗的健康和马纳"); this.dimHpMp.AddTooltipTranslation(Lang.Cn, "当单位不可见时昏暗的生命值和法力值"); // hidden alt key this.altKey = statusMenu.Add(new MenuHoldKey("alt", Key.LeftAlt)); this.altKey.Hide(); }
public RoshanTimer(IContext9 context, ITopPanel topPanel, IHudMenu hudMenu) { this.context = context; this.topPanel = topPanel; var timersMenu = hudMenu.ScreenMenu.GetOrAdd(new Menu("Timers")); timersMenu.AddTranslation(Lang.Ru, "Таймеры"); timersMenu.AddTranslation(Lang.Cn, "计时 器"); var menu = timersMenu.Add(new Menu("Roshan timer")); menu.AddTranslation(Lang.Ru, "Таймер рошана"); menu.AddTranslation(Lang.Cn, "肉山时间"); this.enabled = menu.Add(new MenuSwitcher("Enabled")); this.enabled.AddTranslation(Lang.Ru, "Включено"); this.enabled.AddTranslation(Lang.Cn, "启用"); this.showRemaining = menu.Add(new MenuSwitcher("Remaining time")).SetTooltip("Show remaining time or respawn time"); this.showRemaining.AddTranslation(Lang.Ru, "Оставшееся время"); this.showRemaining.AddTooltipTranslation(Lang.Ru, "Показывать оставшееся время или время спавна"); this.showRemaining.AddTranslation(Lang.Cn, "剩余时间"); this.showRemaining.AddTooltipTranslation(Lang.Cn, "显示剩余时间或重生时间"); this.showMinTime = menu.Add(new MenuSwitcher("Minimum time")).SetTooltip("Show minimum respawn time"); this.showMinTime.AddTranslation(Lang.Ru, "Минимальное время"); this.showMinTime.AddTooltipTranslation(Lang.Ru, "Показать минимальное время спавна"); this.showMinTime.AddTranslation(Lang.Cn, "最小时间"); this.showMinTime.AddTooltipTranslation(Lang.Cn, "显示最短重生时间"); this.hide = menu.Add(new MenuSwitcher("Auto hide")).SetTooltip("Hide timer if roshan is spawned"); this.hide.AddTranslation(Lang.Ru, "Прятать автоматически"); this.hide.AddTooltipTranslation(Lang.Ru, "Спрятать, если рошан появился"); this.hide.AddTranslation(Lang.Cn, "自动隐藏"); this.hide.AddTooltipTranslation(Lang.Cn, "如果生成肉山,则隐藏计时器"); this.printTime = menu.Add(new MenuSwitcher("Print time on click")).SetTooltip("Print respawn time in chat when clicked"); this.printTime.AddTranslation(Lang.Ru, "Написать время при нажатии"); this.printTime.AddTooltipTranslation(Lang.Ru, "Написать время возрождения в чате при нажатии"); this.printTime.AddTranslation(Lang.Cn, "按下时的写入时间"); this.printTime.AddTooltipTranslation(Lang.Cn, "单击时打印聊天中的重生时间"); this.showDrop = menu.Add(new MenuHoldKey("Show drop", Key.LeftAlt)).SetTooltip("Show current/next roshan items"); this.showDrop.AddTranslation(Lang.Ru, "Показать дроп"); this.showDrop.AddTooltipTranslation(Lang.Ru, "Показать текущие/следующие предметы Рошана"); this.showDrop.AddTranslation(Lang.Cn, "显示放置位置"); this.showDrop.AddTooltipTranslation(Lang.Cn, "顯示當前/下一個肉山項目"); var settings = menu.Add(new Menu("Settings")); settings.AddTranslation(Lang.Ru, "Настройки"); settings.AddTranslation(Lang.Cn, "设置"); this.textSize = settings.Add(new MenuSlider("Size", 15, 10, 35)); this.textSize.AddTranslation(Lang.Ru, "Размер"); this.textSize.AddTranslation(Lang.Cn, "大小"); this.textPosition = new MenuVectorSlider(settings, Hud.Info.ScanPosition + new Vector2(0, -50)); // hidden alt key this.altKey = menu.Add(new MenuHoldKey("alt", Key.LeftAlt)); this.altKey.Hide(); }