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:
parent
c5bfa38dd2
commit
5337899f3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue