Skip to content

Commit

Permalink
Added The Following...
Browse files Browse the repository at this point in the history
- Updated to version 2.3.5
- Fixed bug in Tooltip.lua
  - Where local name could still be indexed
- VarsUI
  - Added translations for VarsUI
  - Corrected line width in frame
  - Now closes with ESC instead of system menu
  • Loading branch information
tilkinsc committed Dec 23, 2019
1 parent 8a7d449 commit 2ac2b66
Show file tree
Hide file tree
Showing 12 changed files with 136 additions and 35 deletions.
20 changes: 10 additions & 10 deletions KiwiItemInfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ local ADDON_LOADED = function(addon)

local VarsUI = KiwiItemInfo.VarsUI
VarsUI.Init()
VarsUI.AddComponent(3, "Flash Grey Items:",
VarsUI.AddComponent(3, L["VUI_FLASH_GREY_ITEMS"],
function(self)
self:SetChecked(KiwiItemInfo_Vars.vars["flash_grey_items"])
end,
function(self, button, down)
KiwiItemInfo_Vars.vars["flash_grey_items"] = self:GetChecked()
end
)
VarsUI.AddComponent(2, "Flash Hotkey:",
VarsUI.AddComponent(2, L["VUI_FLASH_HOTKEY"],
function(self)
self:SetText(KiwiItemInfo_Vars.vars["flash_hotkey"])
end,
Expand All @@ -136,15 +136,15 @@ local ADDON_LOADED = function(addon)
end
)
VarsUI.Blank()
VarsUI.AddComponent(3, "Item Compare On:",
VarsUI.AddComponent(3, L["VUI_ITEM_COMPARE"],
function(self)
self:SetChecked(KiwiItemInfo_Vars.vars["item_compare_on"])
end,
function(self, button, down)
KiwiItemInfo_Vars.vars["item_compare_on"] = self:GetChecked()
end
)
VarsUI.AddComponent(3, "Verbose Item Compare:",
VarsUI.AddComponent(3, L["VUI_IC_VERBOSE"],
function(self)
self:SetChecked(KiwiItemInfo_Vars.vars["item_compare_extra"])
end,
Expand All @@ -153,7 +153,7 @@ local ADDON_LOADED = function(addon)
end
)
VarsUI.Blank()
VarsUI.AddComponent(3, "Item Vendor Price:",
VarsUI.AddComponent(3, L["VUI_VENDOR_PRICE"],
function(self)
self:SetChecked(KiwiItemInfo_Vars.vars["tooltip_price_on"])
end,
Expand All @@ -162,31 +162,31 @@ local ADDON_LOADED = function(addon)
end
)
VarsUI.Blank()
VarsUI.AddComponent(3, "Show iLvl:",
VarsUI.AddComponent(3, L["VUI_SHOW_ILVL"],
function(self)
self:SetChecked(KiwiItemInfo_Vars.vars["tooltip_ilvl_on"])
end,
function(self, button, down)
KiwiItemInfo_Vars.vars["tooltip_ilvl_on"] = self:GetChecked()
end
)
VarsUI.AddComponent(3, "Show iLvl On Items:",
VarsUI.AddComponent(3, L["VUI_ITEM_ILVL"],
function(self)
self:SetChecked(not KiwiItemInfo_Vars.vars["ilvl_only_equips"])
end,
function(self, button, down)
KiwiItemInfo_Vars.vars["ilvl_only_equips"] = not self:GetChecked()
end
)
VarsUI.AddComponent(3, "Default iLvl Coloration:",
VarsUI.AddComponent(3, L["VUI_DEFAULT_ILVL_COLOR"],
function(self)
self:SetChecked(KiwiItemInfo_Vars.vars["tooltip_ilvl_colors"])
end,
function(self, button, down)
KiwiItemInfo_Vars.vars["tooltip_ilvl_colors"] = self:GetChecked()
end
)
VarsUI.AddComponent(2, "Custom iLvl Color:",
VarsUI.AddComponent(2, L["VUI_CUSTOM_ILVL_COLOR"],
function(self)
self:SetText(KiwiItemInfo_Vars.vars["tooltip_ilvl_nocolors_rgb"])
end,
Expand All @@ -196,7 +196,7 @@ local ADDON_LOADED = function(addon)
if(text:match("%d+%s%d+%s%d+") or text:match("%d+%.%d+%s%d+%.%d+%s%d+%.%d+")) then
KiwiItemInfo_Vars.vars["tooltip_ilvl_nocolors_rgb"] = self:GetText()
else
-- TODO: error message
printi(2, L["VUI_FORMAT_ERROR"])
end
end
)
Expand Down
10 changes: 10 additions & 0 deletions Locale/deDE/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["deDE"] = {
["KIWIII_SET"] = "setzen",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "suchen",
["VUI_FLASH_GREY_ITEMS"] = "Blinken Grau Items:",
["VUI_FLASH_HOTKEY"] = "Blinken Hotkey:",
["VUI_ITEM_COMPARE"] = "Item Vergleichen Am:",
["VUI_IC_VERBOSE"] = "Ausführlicher Itemvergleich:",
["VUI_VENDOR_PRICE"] = "Item Händlerpreis:",
["VUI_SHOW_ILVL"] = "Zeige iLvl:",
["VUI_ITEM_ILVL"] = "Zeige iLvl auf Items:",
["VUI_DEFAULT_ILVL_COLOR"] = "Standardmäßige iLvl-Färbung:",
["VUI_CUSTOM_ILVL_COLOR"] = "Benutzerdefinierte iLvl-Färbung:",
["VUI_FORMAT_ERROR"] = "Ungültiges Farbformat eingegeben.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/enUS/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["enUS"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "search",
["VUI_FLASH_GREY_ITEMS"] = "Flash Grey Items:",
["VUI_FLASH_HOTKEY"] = "Flash Hotkey:",
["VUI_ITEM_COMPARE"] = "Item Compare On:",
["VUI_IC_VERBOSE"] = "Verbose Item Compare:",
["VUI_VENDOR_PRICE"] = "Item Vendor Price:",
["VUI_SHOW_ILVL"] = "Show iLvl:",
["VUI_ITEM_ILVL"] = "Show iLvl On Items:",
["VUI_DEFAULT_ILVL_COLOR"] = "Default iLvl Coloration:",
["VUI_CUSTOM_ILVL_COLOR"] = "Custom iLvl Color:",
["VUI_FORMAT_ERROR"] = "Invalid color format entered.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/esES/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["esES"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "buscar",
["VUI_FLASH_GREY_ITEMS"] = "Objectos grises de destello:",
["VUI_FLASH_HOTKEY"] = "Hotkey destello:",
["VUI_ITEM_COMPARE"] = "Objecto Comparar en:",
["VUI_IC_VERBOSE"] = "Objecto detallado Comparar:",
["VUI_VENDOR_PRICE"] = "Objecto Precio del Vendedor:",
["VUI_SHOW_ILVL"] = "Mostrar iLvl:",
["VUI_ITEM_ILVL"] = "Mostrar iLvl en otros:",
["VUI_DEFAULT_ILVL_COLOR"] = "Coloración iLvl predeterminada:",
["VUI_CUSTOM_ILVL_COLOR"] = "Coloración iLvl personalizado:",
["VUI_FORMAT_ERROR"] = "Formato de color no válido ingresado.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/frFR/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["frFR"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "chercher",
["VUI_FLASH_GREY_ITEMS"] = "Articles gris flash:",
["VUI_FLASH_HOTKEY"] = "Raccourci flash:",
["VUI_ITEM_COMPARE"] = "Article comparer sur:",
["VUI_IC_VERBOSE"] = "Article détaillé Comparer:",
["VUI_VENDOR_PRICE"] = "Prix du vendeur d'article:",
["VUI_SHOW_ILVL"] = "Afficher iLvl:",
["VUI_ITEM_ILVL"] = "Afficher iLvl sur les éléments:",
["VUI_DEFAULT_ILVL_COLOR"] = "Couleur iLvl par défaut:",
["VUI_CUSTOM_ILVL_COLOR"] = "Couleur iLvl personnalisée:",
["VUI_FORMAT_ERROR"] = "Format de couleur non valide entré.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/itIT/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["itIT"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "ricerca",
["VUI_FLASH_GREY_ITEMS"] = "Articoli Flash grigio:",
["VUI_FLASH_HOTKEY"] = "Tasto di scelta rapida Flash:",
["VUI_ITEM_COMPARE"] = "Articolo confronta su:",
["VUI_IC_VERBOSE"] = "Confronta articoli dettagliati:",
["VUI_VENDOR_PRICE"] = "Prezzo fornitore articolo:",
["VUI_SHOW_ILVL"] = "Mostra iLvl:",
["VUI_ITEM_ILVL"] = "Mostra iLvl sugli articoli:",
["VUI_DEFAULT_ILVL_COLOR"] = "Colorazione iLvl predefinita:",
["VUI_CUSTOM_ILVL_COLOR"] = "Colore iLvl personalizzato:",
["VUI_FORMAT_ERROR"] = "È stato inserito un formato colore non valido.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/koKR/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["koKR"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "search",
["VUI_FLASH_GREY_ITEMS"] = "Flash Grey Items:",
["VUI_FLASH_HOTKEY"] = "Flash Hotkey:",
["VUI_ITEM_COMPARE"] = "Item Compare On:",
["VUI_IC_VERBOSE"] = "Verbose Item Compare:",
["VUI_VENDOR_PRICE"] = "Item Vendor Price:",
["VUI_SHOW_ILVL"] = "Show iLvl:",
["VUI_ITEM_ILVL"] = "Show iLvl On Items:",
["VUI_DEFAULT_ILVL_COLOR"] = "Default iLvl Coloration:",
["VUI_CUSTOM_ILVL_COLOR"] = "Custom iLvl Color:",
["VUI_FORMAT_ERROR"] = "Invalid color format entered.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/ptBR/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["ptBR"] = {
["KIWIII_SET"] = "pôr",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "procurar",
["VUI_FLASH_GREY_ITEMS"] = "Itens em Flash Cinza:",
["VUI_FLASH_HOTKEY"] = "Tecla de atalho do Flash:",
["VUI_ITEM_COMPARE"] = "Item comparar em:",
["VUI_IC_VERBOSE"] = "Comparar item detalhado:",
["VUI_VENDOR_PRICE"] = "Item Fornecedor Preço:",
["VUI_SHOW_ILVL"] = "Mostre o iLvl:",
["VUI_ITEM_ILVL"] = "Mostrar iLvl nos itens:",
["VUI_DEFAULT_ILVL_COLOR"] = "Coloração padrão do iLvl:",
["VUI_CUSTOM_ILVL_COLOR"] = "Cor personalizada do iLvl:",
["VUI_FORMAT_ERROR"] = "Formato de cor inválido inserido.",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/ruRU/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["ruRU"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "поиск",
["VUI_FLASH_GREY_ITEMS"] = "Вспышка серого:",
["VUI_FLASH_HOTKEY"] = "Кнопка вспышки:",
["VUI_ITEM_COMPARE"] = "Пункт сравнения на:",
["VUI_IC_VERBOSE"] = "Детальное подробное сравнение:",
["VUI_VENDOR_PRICE"] = "Пункт Поставщик Цена:",
["VUI_SHOW_ILVL"] = "Показать iLvl:",
["VUI_ITEM_ILVL"] = "Показать iLvl на предметах:",
["VUI_DEFAULT_ILVL_COLOR"] = "Цвет по умолчанию iLvl:",
["VUI_CUSTOM_ILVL_COLOR"] = "Пользовательский цвет iLvl:",
["VUI_FORMAT_ERROR"] = "Введен неверный формат цвета.",
}


Expand Down
56 changes: 33 additions & 23 deletions Locale/zhCN/zhCN.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

KiwiItemInfo.Locale["zhCN"] = {
["TOOLTIP_UNIT"] = "单件出售:",
["TOOLTIP_STACK"] = "全部出售:",
["TOOLTIP_UNIT"] = "出售单价:",
["TOOLTIP_STACK"] = "整组售价:",
["TOOLTIP_ILVL"] = "装等(iLvl) ",
["TOOLTIP_PRY_EQUIP"] = "装备:",
["TOOLTIP_PRY_USE"] = "使用:",
Expand Down Expand Up @@ -54,22 +54,22 @@ KiwiItemInfo.Locale["zhCN"] = {
["TOOLTIP_CMP_SHADOW"] = "[+-]%d+%s[暗影抗性]+",
["TOOLTIP_PRY_SHADOW"] = "暗影抗性",
["TOOLTIP_IC_SHADOW"] = "暗影抗性",
["TOOLTIP_IC_DAMAGE_DELTA"] = " 伤害 (delta: ",
["TOOLTIP_IC_DAMAGE_DELTA"] = " 伤害 (差值: ",
["TOOLTIP_ITEM_COMPARE"] = "Kiwi提示装备后的属性变化:",
["TOOLTIP_ITEM_CONTRIB"] = "统计贡献:",
["TOOLTIP_EX_AGI_M_AP"] = "敏捷 M. AP: ",
["TOOLTIP_EX_AGI_R_AP"] = "敏捷 R. AP: ",
["TOOLTIP_EX_AGI_CRIT"] = "敏捷 Crit: ",
["TOOLTIP_EX_AGI_DODGE"] = "敏捷 Dodge: ",
["TOOLTIP_EX_AGI_AR"] = "敏捷 Armor: ",
["TOOLTIP_EX_AGI_M_CAT_AP"] = "敏捷 Catform AP: ",
["TOOLTIP_EX_STM_HP"] = "耐力 Health: ",
["TOOLTIP_EX_STR_M_AP"] = "力量 M. AP: ",
["TOOLTIP_EX_STR_BLOCK"] = "力量 Block: ",
["TOOLTIP_EX_INT_MANA"] = "智力 Mana: ",
["TOOLTIP_EX_INT_CRIT"] = "智力 Crit: ",
["TOOLTIP_EX_SPT_HP5"] = "精神 H/5: ",
["TOOLTIP_EX_SPT_MP5"] = "精神 M/5: ",
["TOOLTIP_EX_AGI_M_AP"] = "敏捷/ (近战)AP: ",
["TOOLTIP_EX_AGI_R_AP"] = "敏捷/ (远程)AP: ",
["TOOLTIP_EX_AGI_CRIT"] = "敏捷/ 爆击: ",
["TOOLTIP_EX_AGI_DODGE"] = "敏捷/ 躲闪: ",
["TOOLTIP_EX_AGI_AR"] = "敏捷/ 护甲: ",
["TOOLTIP_EX_AGI_M_CAT_AP"] = "敏捷/ (猫形态)AP: ",
["TOOLTIP_EX_STM_HP"] = "耐力/ 生命值: ",
["TOOLTIP_EX_STR_M_AP"] = "力量/ (近战)AP: ",
["TOOLTIP_EX_STR_BLOCK"] = "力量/ 格挡: ",
["TOOLTIP_EX_INT_MANA"] = "智力/ 法力值: ",
["TOOLTIP_EX_INT_CRIT"] = "智力/ 爆击: ",
["TOOLTIP_EX_SPT_HP5"] = "精神/ 5秒回血量: ",
["TOOLTIP_EX_SPT_MP5"] = "精神/ 5秒回蓝量: ",
["TOOLTIP_EX_RES_ARCANE"] = "奥术抗性: ",
["TOOLTIP_EX_RES_FIRE"] = "火焰抗性: ",
["TOOLTIP_EX_RES_FROST"] = "冰霜抗性: ",
Expand All @@ -88,20 +88,30 @@ KiwiItemInfo.Locale["zhCN"] = {
["COMMAND_SET_ERROR_VALUE"] = "Kiwi 需要一个值来设置参数...",
["COMMAND_SET_ERROR_INDEX"] = "Kiwi 需要一个参数...",
["COMMAND_SEARCH_ARG_LEN"] = "Kiwi Item Info: 参数长度无效",
["COMMAND_SEARCH_ONE_HANDED"] = "One-Handed ",
["COMMAND_SEARCH_TWO_HANDED"] = "Two-Handed ",
["COMMAND_SEARCH_1H"] = "One",
["COMMAND_SEARCH_2H"] = "Two",
["COMMAND_SEARCH_ONE_HANDED"] = "单手 ",
["COMMAND_SEARCH_TWO_HANDED"] = "双手 ",
["COMMAND_SEARCH_1H"] = "",
["COMMAND_SEARCH_2H"] = "",
["COMMAND_SEARCH_DONE"] = "Kiwi 说 `这就是你要的物品`:",
["COMMAND_SEARCH_DONE1"] = "Kiwi 太酷了. Kiwi 要起飞了. kiwi 共找到物品 ",
["COMMAND_SEARCH_FAIL"] = "Kiwi 找不到任何相关物品! :(",
["KIWIII_HELP"] = "救命",
["KIWIII_RELOAD"] = "重装",
["KIWIII_RESET"] = "重启",
["KIWIII_HELP"] = "帮助",
["KIWIII_RELOAD"] = "重载",
["KIWIII_RESET"] = "重置",
["KIWIII_VARS"] = "变数",
["KIWIII_SET"] = "",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "搜索",
["VUI_FLASH_GREY_ITEMS"] = "出售灰色物品:",
["VUI_FLASH_HOTKEY"] = "出售快捷键:",
["VUI_ITEM_COMPARE"] = "开关装备对比:",
["VUI_IC_VERBOSE"] = "显示更多对比项:",
["VUI_VENDOR_PRICE"] = "显示物品售价:",
["VUI_SHOW_ILVL"] = "装备显示装等:",
["VUI_ITEM_ILVL"] = "全物品显示装等:",
["VUI_DEFAULT_ILVL_COLOR"] = "装等显示着色:",
["VUI_CUSTOM_ILVL_COLOR"] = "自定义装等颜色:",
["VUI_FORMAT_ERROR"] = "输入了无效的颜色格式。",
}


Expand Down
10 changes: 10 additions & 0 deletions Locale/zhTW/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ KiwiItemInfo.Locale["zhTW"] = {
["KIWIII_SET"] = "set",
["KIWIII_ACI"] = "aci",
["KIWIII_SEARCH"] = "search",
["VUI_FLASH_GREY_ITEMS"] = "Flash Grey Items:",
["VUI_FLASH_HOTKEY"] = "Flash Hotkey:",
["VUI_ITEM_COMPARE"] = "Item Compare On:",
["VUI_IC_VERBOSE"] = "Verbose Item Compare:",
["VUI_VENDOR_PRICE"] = "Item Vendor Price:",
["VUI_SHOW_ILVL"] = "Show iLvl:",
["VUI_ITEM_ILVL"] = "Show iLvl On Items:",
["VUI_DEFAULT_ILVL_COLOR"] = "Default iLvl Coloration:",
["VUI_CUSTOM_ILVL_COLOR"] = "Custom iLvl Color:",
["VUI_FORMAT_ERROR"] = "Invalid color format entered.",
}


Expand Down
5 changes: 3 additions & 2 deletions VarsUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local elements
local font


local label_width = 140
local label_width = 190
local edit_width = 100

local padding_l = 10
Expand All @@ -19,7 +19,8 @@ local height = 0


VarsUI.Init = function()
background = CreateFrame("Frame", nil, UIParent, "BasicFrameTemplate")
table.insert(UISpecialFrames, "KiwiItemInfoKIWIIIFrame")
background = CreateFrame("Frame", "KiwiItemInfoKIWIIIFrame", UIParent, "BasicFrameTemplate")
background.TitleText:SetText("Kiwi Item Info Vars")
background:SetSize(300, 300)
background:SetPoint("CENTER")
Expand Down

0 comments on commit 2ac2b66

Please sign in to comment.