Commit c9efa9fc authored by Ven de Thiel's avatar Ven de Thiel

Add bouquet validators "flag: friend"/"flag: foe"

There already exists a "Color: Friend/Foe" bouquet validator, but it
handles both cases (`VUHDO_enemyStateValidator` always returns true as
its first argument).
These new bouquets allow to short-circuit a bouquet based on
friendliness or unfriendliness .
parent 3ddd803e
......@@ -1077,6 +1077,16 @@ local function VUHDO_pvpIconValidator(anInfo, _)
end
end
--
local function VUHDO_friendValidator(anInfo, _)
return UnitIsFriend("player", anInfo["unit"]), nil, -1, -1, -1;
end
--
local function VUHDO_foeValidator(anInfo, _)
return not UnitIsFriend("player", anInfo["unit"]), nil, -1, -1, -1;
end
--
......@@ -1897,6 +1907,18 @@ VUHDO_BOUQUET_BUFFS_SPECIAL = {
["interests"] = { VUHDO_UPDATE_MINOR_FLAGS },
},
["FRIEND"] = {
["displayName"] = VUHDO_I18N_FRIEND_STATUS,
["validator"] = VUHDO_friendValidator,
["interests"] = { },
},
["FOE"] = {
["displayName"] = VUHDO_I18N_FOE_STATUS,
["validator"] = VUHDO_foeValidator,
["interests"] = { },
},
["OVERFLOW_COUNTER"] = {
["displayName"] = VUHDO_I18N_DEF_COUNTER_OVERFLOW_ABSORB,
["validator"] = VUHDO_overflowCountValidator,
......
......@@ -363,6 +363,8 @@ VUHDO_I18N_DEF_ROLE_ICON = "Rollen-Icon";
VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "Leben: (auto, Ziele)";
VUHDO_I18N_TAPPED_COLOR = "Flag: Getappt";
VUHDO_I18N_ENEMY_STATE_COLOR = "Farbe: Freund/Feind";
VUHDO_I18N_FRIEND_STATUS = "Flag: Freund";
VUHDO_I18N_FOE_STATUS = "Flag: Feind";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "Statusbar: Immer voll";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "Statusbar: voll wenn aktiv";
VUHDO_I18N_AOE_ADVICE = "Icon: Gruppenheilung";
......
......@@ -364,6 +364,8 @@ VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "Health (generic, target)";
VUHDO_I18N_TAPPED_COLOR = "Flag: Tapped";
VUHDO_I18N_ENEMY_STATE_COLOR = "Color: Friend/Foe";
VUHDO_I18N_FRIEND_STATUS = "Flag: Friend";
VUHDO_I18N_FOE_STATUS = "Flag: Foe";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "Statusbar: always full";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "Statusbar: full if active";
VUHDO_I18N_AOE_ADVICE = "Icon: AOE Advice";
......
......@@ -374,6 +374,8 @@ VUHDO_I18N_DEF_ROLE_ICON = "Role Icon";
VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "Health (generic, target)";
VUHDO_I18N_TAPPED_COLOR = "Flag: Tapped";
VUHDO_I18N_ENEMY_STATE_COLOR = "Color: Friend/Foe";
VUHDO_I18N_FRIEND_STATUS = "Flag: friend";
VUHDO_I18N_FOE_STATUS = "Flag: foe";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "Statusbar: always full";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "Statusbar: full if active";
VUHDO_I18N_AOE_ADVICE = "Icon: AOE Advice";
......
......@@ -373,6 +373,8 @@ VUHDO_I18N_DEF_ROLE_ICON = "Role Icon";
VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "Health (generic, target)";
VUHDO_I18N_TAPPED_COLOR = "Flag: Tapped";
VUHDO_I18N_ENEMY_STATE_COLOR = "Color: Friend/Foe";
VUHDO_I18N_FRIEND_STATUS = "Flag: Ami";
VUHDO_I18N_FOE_STATUS = "Flag: Ennemi";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "Statusbar: always full";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "Statusbar: full if active";
VUHDO_I18N_AOE_ADVICE = "Icon: AOE Advice";
......
......@@ -367,6 +367,8 @@ VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "체력 (일반, 대상)";
VUHDO_I18N_TAPPED_COLOR = "Flag: 선택";
VUHDO_I18N_ENEMY_STATE_COLOR = "색상: 우호적/적대적";
VUHDO_I18N_FRIEND_STATUS = "Flag: 우호적";
VUHDO_I18N_FOE_STATUS = "Flag: 적대적";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "상태바: 항상 전체";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "상태바: 활성화 전체";
VUHDO_I18N_AOE_ADVICE = "Icon: AOE 주의";
......
......@@ -438,6 +438,8 @@ VUHDO_I18N_DEF_ROLE_ICON = "Иконка роли";
VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "Здоровье (общее, цель)";
VUHDO_I18N_TAPPED_COLOR = "Флаг: Присоединенный";
VUHDO_I18N_ENEMY_STATE_COLOR = "Цвет: Союзник/Враг";
VUHDO_I18N_FRIEND_STATUS = "Флаг: Союзник";
VUHDO_I18N_FOE_STATUS = "Флаг: Враг";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "Полоса состояния: всегда полная";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "Полоса состояния: полная при активности";
VUHDO_I18N_AOE_ADVICE = "Иконка: AOE Советник";
......
......@@ -366,6 +366,8 @@ VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "血量 (通用,目标)";
VUHDO_I18N_TAPPED_COLOR = "标志: 无效目标";
VUHDO_I18N_ENEMY_STATE_COLOR = "颜色: 友方/敌方";
VUHDO_I18N_FRIEND_STATUS = "标志: 友方";
VUHDO_I18N_FOE_STATUS = "标志: 敌方";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "状态列: 永远满的";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "状态列: 启动时满的";
VUHDO_I18N_AOE_ADVICE = "图标: 辅助建议";
......
......@@ -367,6 +367,8 @@ VUHDO_I18N_DEF_ROLE_ICON = "Role Icon";
VUHDO_I18N_DEF_BOUQUET_TARGET_HEALTH = "Health (generic, target)";
VUHDO_I18N_TAPPED_COLOR = "Flag: Tapped";
VUHDO_I18N_ENEMY_STATE_COLOR = "Color: Friend/Foe";
VUHDO_I18N_FRIEND_STATUS = "Flag: friend";
VUHDO_I18N_FOE_STATUS = "Flag: foe";
VUHDO_I18N_BOUQUET_STATUS_ALWAYS_FULL = "Statusbar: always full";
VUHDO_I18N_BOUQUET_STATUS_FULL_IF_ACTIVE = "Statusbar: full if active";
VUHDO_I18N_AOE_ADVICE = "Icon: AOE Advice";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment