gallery and options rendered images set to linear filterling
This commit is contained in:
@@ -31,28 +31,28 @@ public partial class DeathMenu : Control, IDeathMenu
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
Continue.Pressed += Continue_Pressed;
|
||||
Exit.Pressed += Exit_Pressed;
|
||||
VisibilityChanged += DeathMenu_VisibilityChanged;
|
||||
Continue.Pressed += Continue_Pressed;
|
||||
Exit.Pressed += Exit_Pressed;
|
||||
VisibilityChanged += DeathMenu_VisibilityChanged;
|
||||
}
|
||||
|
||||
private void DeathMenu_VisibilityChanged()
|
||||
{
|
||||
if (Visible)
|
||||
Continue.CallDeferred(MethodName.GrabFocus, []);
|
||||
else
|
||||
ReleaseFocus();
|
||||
if (Visible)
|
||||
Continue.CallDeferred(MethodName.GrabFocus, []);
|
||||
else
|
||||
ReleaseFocus();
|
||||
}
|
||||
|
||||
private void Exit_Pressed()
|
||||
{
|
||||
EmitSignal(SignalName.QuitGame);
|
||||
EmitSignal(SignalName.QuitGame);
|
||||
}
|
||||
|
||||
private void Continue_Pressed()
|
||||
{
|
||||
FadeOut();
|
||||
EmitSignal(SignalName.NewGame);
|
||||
FadeOut();
|
||||
EmitSignal(SignalName.NewGame);
|
||||
}
|
||||
|
||||
public void FadeIn() => AnimationPlayer.Play("fade_in");
|
||||
|
||||
@@ -56,8 +56,8 @@ public partial class GalleryMenu : Control
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
GalleryData = new GalleryData() { PlaceholderImage1 = true };
|
||||
BackButton.Pressed += BackButton_Pressed;
|
||||
GalleryData = new GalleryData() { PlaceholderImage1 = true };
|
||||
BackButton.Pressed += BackButton_Pressed;
|
||||
}
|
||||
|
||||
private void BackButton_Pressed() => EmitSignal(SignalName.GalleryExited);
|
||||
|
||||
@@ -35,6 +35,7 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control"]
|
||||
texture_filter = 2
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
||||
@@ -40,32 +40,32 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
||||
|
||||
public void OnResolved()
|
||||
{
|
||||
_player.ExperiencePointsComponent.Level.Sync += Level_Sync;
|
||||
_player.ExperiencePointsComponent.CurrentExp.Sync += Exp_Sync;
|
||||
_player.ExperiencePointsComponent.ExpToNextLevel.Sync += Exp_Sync;
|
||||
_player.HealthComponent.CurrentHP.Sync += HP_Sync;
|
||||
_player.HealthComponent.MaximumHP.Sync += HP_Sync;
|
||||
_player.VTComponent.CurrentVT.Sync += VT_Sync;
|
||||
_player.VTComponent.MaximumVT.Sync += VT_Sync;
|
||||
_player.AttackComponent.CurrentAttack.Sync += Attack_Sync;
|
||||
_player.AttackComponent.MaximumAttack.Sync += Attack_Sync;
|
||||
_player.DefenseComponent.CurrentDefense.Sync += Defense_Sync;
|
||||
_player.DefenseComponent.MaximumDefense.Sync += Defense_Sync;
|
||||
_player.EquipmentComponent.EquipmentChanged += EquipmentComponent_EquipmentChanged;
|
||||
_map.CurrentFloorNumber.Sync += CurrentFloorNumber_Sync;
|
||||
_player.ExperiencePointsComponent.Level.Sync += Level_Sync;
|
||||
_player.ExperiencePointsComponent.CurrentExp.Sync += Exp_Sync;
|
||||
_player.ExperiencePointsComponent.ExpToNextLevel.Sync += Exp_Sync;
|
||||
_player.HealthComponent.CurrentHP.Sync += HP_Sync;
|
||||
_player.HealthComponent.MaximumHP.Sync += HP_Sync;
|
||||
_player.VTComponent.CurrentVT.Sync += VT_Sync;
|
||||
_player.VTComponent.MaximumVT.Sync += VT_Sync;
|
||||
_player.AttackComponent.CurrentAttack.Sync += Attack_Sync;
|
||||
_player.AttackComponent.MaximumAttack.Sync += Attack_Sync;
|
||||
_player.DefenseComponent.CurrentDefense.Sync += Defense_Sync;
|
||||
_player.DefenseComponent.MaximumDefense.Sync += Defense_Sync;
|
||||
_player.EquipmentComponent.EquipmentChanged += EquipmentComponent_EquipmentChanged;
|
||||
_map.CurrentFloorNumber.Sync += CurrentFloorNumber_Sync;
|
||||
|
||||
AnimationPlayer.AnimationFinished += AnimationPlayer_AnimationFinished;
|
||||
AnimationPlayer.AnimationStarted += AnimationPlayer_AnimationStarted;
|
||||
ContinueButton.Pressed += ContinueButton_Pressed;
|
||||
ExitButton.Pressed += ExitButton_Pressed;
|
||||
AnimationPlayer.AnimationFinished += AnimationPlayer_AnimationFinished;
|
||||
AnimationPlayer.AnimationStarted += AnimationPlayer_AnimationStarted;
|
||||
ContinueButton.Pressed += ContinueButton_Pressed;
|
||||
ExitButton.Pressed += ExitButton_Pressed;
|
||||
}
|
||||
|
||||
private void CurrentFloorNumber_Sync(int _) => FloorNumber.Text = _map.CurrentFloorNumber.Value.ToString("D2");
|
||||
|
||||
private void EquipmentComponent_EquipmentChanged(EquipableItem obj)
|
||||
{
|
||||
Attack_Sync(0);
|
||||
Defense_Sync(0);
|
||||
Attack_Sync(0);
|
||||
Defense_Sync(0);
|
||||
}
|
||||
|
||||
private void Attack_Sync(int _) => ATKLabel.Text = $"{_player.AttackComponent.CurrentAttack.Value}/{_player.AttackComponent.MaximumAttack.Value}+{_player.EquipmentComponent.BonusAttack}";
|
||||
@@ -78,35 +78,35 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
||||
|
||||
private void ExitButton_Pressed()
|
||||
{
|
||||
ContinueButton.Disabled = true;
|
||||
ExitButton.Disabled = true;
|
||||
FadeOut();
|
||||
Exit?.Invoke();
|
||||
ContinueButton.Disabled = true;
|
||||
ExitButton.Disabled = true;
|
||||
FadeOut();
|
||||
Exit?.Invoke();
|
||||
}
|
||||
|
||||
private void ContinueButton_Pressed()
|
||||
{
|
||||
ContinueButton.Disabled = true;
|
||||
ExitButton.Disabled = true;
|
||||
GoToNextFloor?.Invoke();
|
||||
ContinueButton.Disabled = true;
|
||||
ExitButton.Disabled = true;
|
||||
GoToNextFloor?.Invoke();
|
||||
}
|
||||
|
||||
private void AnimationPlayer_AnimationStarted(StringName animName)
|
||||
{
|
||||
if (animName == "fade_in")
|
||||
ContinueButton.CallDeferred(MethodName.GrabFocus);
|
||||
if (animName == "fade_out")
|
||||
CallDeferred(MethodName.ReleaseFocus);
|
||||
if (animName == "fade_in")
|
||||
ContinueButton.CallDeferred(MethodName.GrabFocus);
|
||||
if (animName == "fade_out")
|
||||
CallDeferred(MethodName.ReleaseFocus);
|
||||
}
|
||||
|
||||
private void AnimationPlayer_AnimationFinished(StringName animName)
|
||||
{
|
||||
if (animName == "fade_in")
|
||||
{
|
||||
ContinueButton.Disabled = false;
|
||||
ExitButton.Disabled = false;
|
||||
}
|
||||
if (animName == "fade_out")
|
||||
TransitionCompleted?.Invoke();
|
||||
if (animName == "fade_in")
|
||||
{
|
||||
ContinueButton.Disabled = false;
|
||||
ExitButton.Disabled = false;
|
||||
}
|
||||
if (animName == "fade_out")
|
||||
TransitionCompleted?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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