Code/UI/VNHud.razor
@using Sandbox
@namespace VNBase.UI
@attribute [Title( "VN Hud" )]
@attribute [Category( "VNBase" )]
@inherits PanelComponent
@if ( Player.IsValid() )
{
<root class="@( Player.IsScriptActive ? "" : "hidden" )" style="background-image: url('@( Player.State.Background )')">
<CharacterPortraits Player="@Player" Settings="@Player.Settings" Hud="@this"/>
<Choices Player="@Player" Settings="@Player.Settings" Hud="@this"/>
<DialogueBox Player="@Player" Settings="@Player.Settings" Hud="@this"/>
@if ( ShouldShowInput )
{
<TextInput Player="@Player" Settings="@Player.Settings" Hud="@this"/>
}
@if ( Player.Settings.ControlPanelEnabled )
{
<ControlPanel Player="@Player" Settings="@Player.Settings" Hud="@this"/>
}
</root>
}