Commit dffa3512 authored by Ivaria's avatar Ivaria

Added bouquet validator 'Statusbar: Power % (Tank Only)' and associated...

Added bouquet validator 'Statusbar: Power % (Tank Only)' and associated default bouquet 'Manabars: Power (Tank Only)'
parent 14e54740
......@@ -746,6 +746,14 @@ end
--
local function VUHDO_statusPowerTankOnlyValidator(anInfo, _)
return (anInfo["powertype"] ~= 0 and anInfo["role"] == VUHDO_ID_MELEE_TANK), nil, anInfo["power"], -1,
anInfo["powermax"], VUHDO_copyColor(VUHDO_POWER_TYPE_COLORS[anInfo["powertype"] or 0]);
end
--
local function VUHDO_statusOtherPowersValidator(anInfo, _)
return anInfo["powertype"] ~= 0, nil, anInfo["power"], -1,
......@@ -1685,6 +1693,14 @@ VUHDO_BOUQUET_BUFFS_SPECIAL = {
["interests"] = { VUHDO_UPDATE_MANA, VUHDO_UPDATE_DC },
},
["STATUS_POWER_TANK_ONLY"] = {
["displayName"] = VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY,
["validator"] = VUHDO_statusPowerTankOnlyValidator,
["custom_type"] = VUHDO_BOUQUET_CUSTOM_TYPE_STATUSBAR,
["no_color"] = true,
["interests"] = { VUHDO_UPDATE_OTHER_POWERS, VUHDO_UPDATE_DC },
},
["STATUS_OTHER_POWERS"] = {
["displayName"] = VUHDO_I18N_BOUQUET_STATUS_OTHER_POWERS,
["validator"] = VUHDO_statusOtherPowersValidator,
......
......@@ -853,6 +853,31 @@ VUHDO_DEFAULT_ICON_IS_PHASED = {
--
VUHDO_DEFAULT_BAR_MANA_TANK_ONLY = {
[VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY] = {
{
["name"] = "NO_RANGE",
["mine"] = true, ["icon"] = 2,
["color"] = {
["R"] = 0, ["G"] = 0, ["B"] = 0, ["O"] = 0.25,
["TR"] = 0, ["TG"] = 0, ["TB"] = 0, ["TO"] = 0.25,
["useText"] = false, ["useBackground"] = false, ["useOpacity"] = true,
["isManuallySet"] = true,
},
["custom"] = { [1] = 1, ["radio"] = 2, ["bright"] = 1.0 },
},
{
["name"] = "STATUS_POWER_TANK_ONLY",
["mine"] = true, ["icon"] = 2,
["color"] = VUHDO_makeFullColorForBouquet(0, 0, 1, 1, 0, 0, 1, 1),
["custom"] = { [1] = 1, ["radio"] = 1, ["bright"] = 1.0 },
},
},
}
--
VUHDO_DEFAULT_INDICATOR_CONFIG = {
["BOUQUETS"] = {
......@@ -1696,6 +1721,12 @@ function VUHDO_loadDefaultBouquets()
end
VUHDO_DEFAULT_MONK_STAGGER_BOUQUET = nil;
if VUHDO_BOUQUETS["VERSION"] < 25 then
VUHDO_BOUQUETS["VERSION"] = 25;
VUHDO_addDefaultBouquet(VUHDO_DEFAULT_BAR_MANA_TANK_ONLY);
end
VUHDO_DEFAULT_BAR_MANA_TANK_ONLY = nil;
VUHDO_buildGenericHealthBarBouquet();
VUHDO_buildGenericTargetHealthBouquet();
......
......@@ -480,3 +480,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "Could not play sound \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "Could not play sound \"%s\" for standard debuff. Adjust your settings under 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "Could not play sound \"%s\" for custom debuff \"%s\". Adjust your settings under 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -489,3 +489,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "Could not play sound \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "Could not play sound \"%s\" for standard debuff. Adjust your settings under 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "Could not play sound \"%s\" for custom debuff \"%s\". Adjust your settings under 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -490,3 +490,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "Could not play sound \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "Could not play sound \"%s\" for standard debuff. Adjust your settings under 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "Could not play sound \"%s\" for custom debuff \"%s\". Adjust your settings under 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -488,3 +488,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "Could not play sound \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "Could not play sound \"%s\" for standard debuff. Adjust your settings under 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "Could not play sound \"%s\" for custom debuff \"%s\". Adjust your settings under 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -492,3 +492,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "\"%s\"소리를 재생할 수 없음: %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "기본 디버프에 대하여 소리 \"%s\" |1을;를; 재생할 수 없습니다. 'VuhDo 옵션> 디버프> 기본> 디버프 사운드'에서 설정을 조정하십시오.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "사용자 정의 디버프 \"%s\"에 대해 \"%s\"소리를 재생할 수 없습니다. 'VuhDo 옵션> 디버프> 사용자 정의'에서 설정을 조정하십시오.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -554,3 +554,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "Could not play sound \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "Could not play sound \"%s\" for standard debuff. Adjust your settings under 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "Could not play sound \"%s\" for custom debuff \"%s\". Adjust your settings under 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -491,3 +491,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "无法播放音效 \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "无法为标准的DEBUFF \"%s\" 播放音效. 调整设置 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "无法为自定义的DEBUFF \"%s\" 播放音效 \"%s\". 调整设置 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -482,3 +482,6 @@ VUHDO_I18N_PLAY_SOUND_FILE_ERR = "Could not play sound \"%s\": %s";
VUHDO_I18N_PLAY_SOUND_FILE_DEBUFF_ERR = "Could not play sound \"%s\" for standard debuff. Adjust your settings under 'VuhDo Options > Debuffs > Standard > Debuff Sound'.";
VUHDO_I18N_PLAY_SOUND_FILE_CUSTOM_DEBUFF_ERR = "Could not play sound \"%s\" for custom debuff \"%s\". Adjust your settings under 'VuhDo Options > Debuffs > Custom'.";
-- 3.122
VUHDO_I18N_BOUQUET_STATUS_POWER_TANK_ONLY = "Statusbar: Power % (Tank Only)";
VUHDO_I18N_DEF_BOUQUET_BAR_MANA_TANK_ONLY = "Manabars: Power (Tank Only)";
......@@ -14,6 +14,8 @@ Bugfixes:
Improvements:
-- Added bouquet validator 'Statusbar: Power % (Tank Only)'
-- Added default bouquet 'Manabars: Power (Tank Only)'
--------------------------------------------------------------
......
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