gallery and options rendered images set to linear filterling
This commit is contained in:
@@ -37,38 +37,38 @@ public partial class PlayerInfoUI : Control, IPlayerInfoUI
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
Player.HealthComponent.CurrentHP.Sync += HPSync;
|
||||
Player.HealthComponent.MaximumHP.Sync += HPSync;
|
||||
Player.HealthComponent.CurrentHP.Sync += HPSync;
|
||||
Player.HealthComponent.MaximumHP.Sync += HPSync;
|
||||
|
||||
Player.VTComponent.CurrentVT.Sync += VTSync;
|
||||
Player.VTComponent.MaximumVT.Sync += VTSync;
|
||||
Player.VTComponent.CurrentVT.Sync += VTSync;
|
||||
Player.VTComponent.MaximumVT.Sync += VTSync;
|
||||
|
||||
Player.ExperiencePointsComponent.Level.Sync += CurrentLevel_Sync;
|
||||
Player.ExperiencePointsComponent.CurrentExp.Sync += ExpSync;
|
||||
Player.ExperiencePointsComponent.ExpToNextLevel.Sync += ExpSync;
|
||||
Player.ExperiencePointsComponent.Level.Sync += CurrentLevel_Sync;
|
||||
Player.ExperiencePointsComponent.CurrentExp.Sync += ExpSync;
|
||||
Player.ExperiencePointsComponent.ExpToNextLevel.Sync += ExpSync;
|
||||
}
|
||||
|
||||
private void CurrentLevel_Sync(int obj)
|
||||
{
|
||||
LevelNumber.Text = $"{obj}";
|
||||
LevelNumber.Text = $"{obj}";
|
||||
}
|
||||
|
||||
private void VTSync(int obj)
|
||||
{
|
||||
VTNumber.Text = $"{Player.VTComponent.CurrentVT.Value}/{Player.VTComponent.MaximumVT.Value}";
|
||||
VTProgressBar.Value = Player.VTComponent.CurrentVT.Value;
|
||||
VTProgressBar.MaxValue = Player.VTComponent.MaximumVT.Value;
|
||||
VTNumber.Text = $"{Player.VTComponent.CurrentVT.Value}/{Player.VTComponent.MaximumVT.Value}";
|
||||
VTProgressBar.Value = Player.VTComponent.CurrentVT.Value;
|
||||
VTProgressBar.MaxValue = Player.VTComponent.MaximumVT.Value;
|
||||
}
|
||||
|
||||
private void HPSync(int obj)
|
||||
{
|
||||
HPNumber.Text = $"{Player.HealthComponent.CurrentHP.Value}/{Player.HealthComponent.MaximumHP.Value}";
|
||||
HPProgressBar.Value = Player.HealthComponent.CurrentHP.Value;
|
||||
HPProgressBar.MaxValue = Player.HealthComponent.MaximumHP.Value;
|
||||
HPNumber.Text = $"{Player.HealthComponent.CurrentHP.Value}/{Player.HealthComponent.MaximumHP.Value}";
|
||||
HPProgressBar.Value = Player.HealthComponent.CurrentHP.Value;
|
||||
HPProgressBar.MaxValue = Player.HealthComponent.MaximumHP.Value;
|
||||
}
|
||||
|
||||
private void ExpSync(int obj)
|
||||
{
|
||||
EXPNumber.Text = $"{Player.ExperiencePointsComponent.CurrentExp.Value}/{Player.ExperiencePointsComponent.ExpToNextLevel.Value}";
|
||||
EXPNumber.Text = $"{Player.ExperiencePointsComponent.CurrentExp.Value}/{Player.ExperiencePointsComponent.ExpToNextLevel.Value}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user