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