using Godot;
namespace ColdMint.scripts.health;
///
/// Health bar
/// 健康条
///
public partial class HealthBar : TextureProgressBar
{
///
/// Set to a player-friendly blood bar style
/// 设置为与玩家友好的血条样式
///
public void SetFriendlyTones()
{
//边框颜色为Open Gray 0
TintOver = new Color("#f8f9fa");
//背景色为Open Green 1
TintUnder = new Color("#d3f9d8");
//进度条颜色为Open Green 5
TintProgress = new Color("#51cf66");
}
///
/// Set the blood bar style to be hostile to the player
/// 设置为与玩家敌对的血条样式
///
public void SetEnemyTones()
{
//边框颜色为Open Gray 0
TintOver = new Color("#f8f9fa");
//背景色为Open Red 1
TintUnder = new Color("#ffe3e3");
//进度条颜色为Open Red 5
TintProgress = new Color("#ff6b6b");
}
}