Skip to content

MenuManagerCS2-1.3.00

Choose a tag to compare

@RRimmer RRimmer released this 19 Oct 19:27
· 6 commits to main since this release

English

What is new in 1.3.00

  • CSGO Menu while dead or spectating. By default (spec_usenumberkeys_nobinds 1) the game does not run number-key binds for the dead and switches the camera. The core prints one line to chat and console to paste: spec_usenumberkeys_nobinds 0;bind "1" "css_1; slot1";bind "2" "css_2; slot2";bind "3" "css_3; slot3";bind "4" "css_4; slot4";bind "5" "css_5; slot5";bind "6" "css_6; slot6";bind "7" "css_7; slot7";bind "8" "css_8; slot8";bind "9" "css_9; slot9";bind "0" "css_0; slot10". The space after ; inside the bind is required. The server cannot set this itself: CS2 blocks bind/alias/spec_* from the server. Alive, number keys still pick weapons. Key 0 now uses slot10 instead of the non-existent slot0. Tested in game.
  • CSGO Menu on the panorama no longer brings up an empty blurred box in the screen center. The center is cleared only when the menu was drawn as center text (no panorama).
  • CSGO Menu looks like the CS:GO menu: a small dark see-through backdrop, text with a shadow, cream title and text lines, orange items, larger Stratum2 Bold. A disabled item is cream, as in CS:GO. No back or next: an empty line in its place, "0. Exit" stays put. Keys unchanged: 1–7, 8 back, 9 next, 0 exit.
  • Number keys test (as in PMM_SimpleAdmin): choosing CSGO Menu or "Panorama (number keys)" opens a panel with keys 1…0 that light up when the server gets css_N, a progress bar and "Pressed N / 10 · left". The bind line goes to chat and console. After all ten: 1 turns the menu on, 2 tests again, 8 back, 0 exit. Before that, an already lit 8 / 0 means back / exit. No key for NumberKeysTestTimeout (40 s): back. !menu has "Number keys test" for these types. The result is saved (column number_keys_ok).
  • New type "Panorama (number keys)" (PanoramaDigitMenu = 8): the same panorama without the mouse, items numbered 1–6, 8 back, 9 next, 0 exit, hint at the bottom. AddSelect lists open as a submenu. GetMenuType reports PanoramaMenu, GetSelectedMenu PanoramaDigitMenu.
  • API: GetNumberKeysBindLine(), PrintNumberKeysBinds(player), HasNumberKeysChecked(player), OpenNumberKeysCheck(player, onDone), event NumberKeyPressed(player, digit). css_0…css_9 and menuselect now live in one place (NumberKeys.cs).
  • The client addon changed (menu_ui.xml, ui.css): rebuild and upload it again. The constructor (assets.js) is updated.
  • Own menu sounds: the client addon has sounds/pmm/*.wav and soundevents/soundevents_addon.vsndevts (events PMM.Menu.Select / Back / Next / Exit; Next plays the Back sound for now). New field "PrecacheResources" in MenuManagerCore.json: files the server precaches on map load. Put the event names into SoundClick / SoundBack / SoundNext / SoundExit. New field SoundNext: the next page sound (empty = SoundScroll as before).
  • Sound API: IMenuApi.PlayMenuSound(player, MenuSound) plays a menu sound from the core config (respects the player's sound toggle and SoundVolume), GetMenuSound(MenuSound) returns the event name. MenuSound: Scroll, Click, Disabled, Back, Next, Exit.
  • !menu: for the types with sounds (CSGO Menu, Panorama WASD and number keys, Center WASD) a "Menu sound" toggle right in the settings instead of the "Sound settings" submenu. Turned off, it also silences PlayMenuSound from the API.
  • CS2-SimpleAdmin and other plugins made for NickFox's MenuManagerCS2 no longer unload with "PlayerSettings missing". The release archive has three empty stubs: plugins/PlayerSettings/PlayerSettings.dll, shared/PlayerSettingsApi/PlayerSettingsApi.dll, shared/AnyBaseLib/AnyBaseLib.dll. They only satisfy the file check. PMM still stores menu settings itself.
  • If a plugin really uses ISettingsApi (settings:nfcore), install the original PlayerSettingsCS2 and AnyBaseLibCS2 instead. Do not overwrite the originals with the stubs.
  • New field "PanoramaLayoutPath": "" in MenuManagerCore.json. Empty means panorama/layout/custom_game/menu_ui.xml. Your own file must keep the ids and classes of menu_ui.xml.
  • IMenuApi.SetPanoramaHudLayout(string path) and GetPanoramaHudLayout(). Idea from PR #1 by @srtnlgn. One layout for the whole server, the last call wins. Open panorama menus close and the HUD is spawned again with the new file. Update shared/MenuManagerApi together with the core.
  • PisexMenusBridge finds the Pisex HUD by the standard menu_ui.xml; PanoramaLayoutPath does not affect it.

You can read more on the site: https://genesis-cs.space/menuconstructor/index.html

Русский

Что нового в 1.3.00

  • CSGO Menu мёртвым и в наблюдении. По умолчанию (spec_usenumberkeys_nobinds 1) игра у мёртвого не выполняет бинды цифр и переключает камеру. Ядро выдаёт в чат и консоль одну строку для копирования: spec_usenumberkeys_nobinds 0;bind "1" "css_1; slot1";bind "2" "css_2; slot2";bind "3" "css_3; slot3";bind "4" "css_4; slot4";bind "5" "css_5; slot5";bind "6" "css_6; slot6";bind "7" "css_7; slot7";bind "8" "css_8; slot8";bind "9" "css_9; slot9";bind "0" "css_0; slot10". Пробел после ; внутри бинда обязателен. Сервер не может прописать это сам: CS2 запрещает bind/alias/spec_* с сервера. Живым цифры по-прежнему берут оружие. На 0 теперь slot10 вместо несуществующего slot0. Проверено в игре.
  • CSGO Menu на панораме больше не вызывает пустую размытую плашку в центре экрана. Центр очищается, только если меню рисовалось текстом в центре (когда панорамы нет).
  • CSGO Menu выглядит как меню CS:GO: небольшая тёмная полупрозрачная подложка, текст с тенью, заголовок и строки-подсказки кремовые, пункты оранжевые, крупный Stratum2 Bold. Неактивный пункт — кремовый, как в CS:GO. Нет «Назад» или «Далее» — на их месте пустая строка, «0. Выход» не прыгает. Клавиши прежние: 1–7, 8 назад, 9 далее, 0 выход.
  • Проверка цифр (как в PMM_SimpleAdmin): при выборе CSGO Menu или «Панорама (цифры)» открывается панель с клавишами 1…0, они загораются, когда сервер получает css_N; полоса прогресса и «Нажато N / 10 · осталось». Строка с биндами — в чат и консоль. После всех десяти: 1 — включить меню, 2 — проверить ещё раз, 8 — назад, 0 — выход. До этого уже горящие 8 / 0 — назад / выход. Без нажатий NumberKeysTestTimeout (40 с) — возврат. В !menu для этих типов пункт «Проверка цифр». Результат сохраняется (колонка number_keys_ok).
  • Новый тип «Панорама (цифры)» (PanoramaDigitMenu = 8): та же панорама без мыши, у пунктов номера 1–6, 8 назад, 9 далее, 0 выход, подсказка внизу. Списки AddSelect открываются подменю. GetMenuType отдаёт PanoramaMenu, GetSelectedMenu — PanoramaDigitMenu.
  • API: GetNumberKeysBindLine(), PrintNumberKeysBinds(player), HasNumberKeysChecked(player), OpenNumberKeysCheck(player, onDone), событие NumberKeyPressed(player, digit). css_0…css_9 и menuselect теперь в одном месте (NumberKeys.cs).
  • Клиентский аддон изменился (menu_ui.xml, ui.css): его нужно собрать и залить заново. Конструктор (assets.js) обновлён.
  • Свои звуки меню: в клиентском аддоне sounds/pmm/*.wav и soundevents/soundevents_addon.vsndevts (события PMM.Menu.Select / Back / Next / Exit; Next пока играет звук Back). В MenuManagerCore.json новое поле "PrecacheResources" — список файлов, которые сервер прекэширует при загрузке карты. Имена событий ставятся в SoundClick / SoundBack / SoundNext / SoundExit. Новое поле SoundNext — звук «Далее» (пусто = SoundScroll, как раньше).
  • API звуков: IMenuApi.PlayMenuSound(player, MenuSound) играет звук меню из конфига ядра (учитывает выключенные звуки игрока и SoundVolume), GetMenuSound(MenuSound) отдаёт имя события. MenuSound: Scroll, Click, Disabled, Back, Next, Exit.
  • В !menu для типов со звуками (CSGO Menu, Панорама WASD и цифры, Центр WASD) переключатель «Звук меню» прямо в настройках вместо подменю «Настройки звука». Выключенный звук действует и на PlayMenuSound из API.
  • CS2-SimpleAdmin и другие плагины под MenuManagerCS2 от NickFox больше не выгружаются с "PlayerSettings missing". В архиве три пустые заглушки: plugins/PlayerSettings/PlayerSettings.dll, shared/PlayerSettingsApi/PlayerSettingsApi.dll, shared/AnyBaseLib/AnyBaseLib.dll. Они нужны только для проверки наличия файлов. Настройки меню PMM по-прежнему хранит само.
  • Если плагин реально пользуется ISettingsApi (settings:nfcore), ставь вместо заглушек оригинальные PlayerSettingsCS2 и AnyBaseLibCS2. Оригиналы заглушками не перезаписывай.
  • В MenuManagerCore.json поле "PanoramaLayoutPath": "". Пусто — panorama/layout/custom_game/menu_ui.xml. Свой файл должен сохранить id и классы menu_ui.xml.
  • IMenuApi.SetPanoramaHudLayout(string path) и GetPanoramaHudLayout(). Идея — PR #1 от @srtnlgn. Один layout на весь сервер, побеждает последний вызов. Открытые панорамы закрываются, HUD создаётся заново с новым файлом. Обнови shared/MenuManagerApi вместе с ядром.
  • PisexMenusBridge ищет HUD Pisex по стандартному menu_ui.xml, PanoramaLayoutPath на него не влияет.

Вы можете ознакомиться с более подробной информацией на сайте: https://genesis-cs.space/menuconstructor/index.html