fix(ui): vitals — UiVitalsRoot.OnEvent delegates to the UiDatElement base

The press toggle returned false directly, silently swallowing the base
class's Click dispatch (OnClick/OnClickAt) for any future controller wiring
on a vitals root. Retail's handler falls through to the base listener the
same way (@0x004BFC47). No behavior change today — nothing sets OnClick on
a vitals root.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-08-17 10:48:25 +02:00
parent c5bfa38dd2
commit 5337899f3f

View file

@ -71,13 +71,13 @@ public sealed class UiVitalsRoot : UiDatElement
{ {
// gmVitalsUI::ListenToElementMessage @0x004BFC04: // gmVitalsUI::ListenToElementMessage @0x004BFC04:
// this->SetState(m_state == HideDetail ? ShowDetail : HideDetail) // this->SetState(m_state == HideDetail ? ShowDetail : HideDetail)
// then falls through to the base handler (keep bubbling → false). // then falls through to the base handler (keep bubbling).
TrySetRetailState( TrySetRetailState(
ActiveRetailStateId == RetailUiStateIds.HideDetail ActiveRetailStateId == RetailUiStateIds.HideDetail
? RetailUiStateIds.ShowDetail ? RetailUiStateIds.ShowDetail
: RetailUiStateIds.HideDetail); : RetailUiStateIds.HideDetail);
} }
return false; return base.OnEvent(in e);
} }
/// <summary> /// <summary>