Skip to content

v0.4.8 — ModConfig 지원 + 정지/옵션 메뉴에서 배지 자동 숨김

Choose a tag to compare

@ing-gom ing-gom released this 08 May 07:41
· 4 commits to main since this release

Feature release.

Changes

🆕 선택적 ModConfig 지원

  • ModConfig (Nexus #27)이 설치되어 있으면 게임 설정의 Mods 탭에 Hide on ? (Unknown) nodes 토글이 노출됩니다.
  • ModConfig 미설치 환경에서도 모드는 정상 작동합니다 (토글 UI 만 숨김 — 의존성 강제 없음).
  • 토글 변경은 즉시 반영됩니다. 게임 재시작 불필요.
  • 구현: ModConfig.ModConfigApi.Register 를 reflection 으로 호출하는 soft dependency 패턴. ModConfig 어셈블리가 로드되어 있을 때만 동작.

🛡️ 정지/옵션 메뉴에서 배지 자동 숨김

  • 정지(pause) 메뉴, 옵션(settings) 메뉴, 통계, 런 히스토리, 모딩 메뉴, 타임라인, 카드/유물 보기 등 인게임 서브메뉴가 떠있는 동안 배지가 자동으로 사라집니다. 닫으면 다시 표시됩니다.
  • 모든 modal popup (Settings 확인 다이얼로그 등) 도 함께 처리.
  • 구현: STS2 의 NSubmenu 베이스 클래스를 detect 하는 generic 검사 + NModalContainer.OpenModal 검사. SceneTree.Root 에 watcher 노드 1 개를 두어 매 frame 상태를 폴링하고 상태 변경 엣지 에서만 컨테이너 visibility 를 토글.
  • NMapScreen 자체는 NSubmenu 가 아닌 Control 직접 상속이라 자기 자신을 잘못 hide 하지 않습니다.

기타

  • 배지 ZIndex 100 → 1 로 하향 (방어적 레이어 조정).
  • modal 이 닫힐 때 일괄 Visible=true 대신 각 NMapPoint 의 EnsureBadgeUpdated 를 재호출하여 per-node 결정 (Unknown 토글, Travelable 상태 등) 이 보존되도록 수정.

Optional ModConfig support: when ModConfig is installed, a Hide on ? (Unknown) nodes toggle appears in the in-game Mods tab and applies immediately. Mod runs unchanged without ModConfig.

Badges now hide whenever any in-game submenu (Pause, Settings, Stats, Modding, RunHistory, Timeline, etc.) or modal popup is open. Generic detection on the NSubmenu base class — covers every STS2 submenu screen.

Installation

  1. Download `Sts2PotionDropChance-v0.4.8.zip` below.
  2. Extract `Sts2PotionDropChance/` into `<Slay the Spire 2 install>/mods/` (overwrites the v0.4.2 files).
  3. (Optional) install ModConfig to expose the in-game settings toggle.
  4. Launch the game.

For the full feature list, see the README (한국어).