Quantcast
Download
(10 Kb)
Download
Updated: 05-20-17 03:31 AM
Pictures
File Info
Compatibility:
Tomb of Sargeras (7.2.0)
Updated:05-20-17 03:31 AM
Created:07-09-16 05:41 AM
Downloads:633
Favorites:3
MD5:
7.2.0

gmDurability  Updated this week!

Version: 720-2017052001
by: gmarco [More]

gmDurability

A minimal LDB plugin that displays durability, sells your junks (grey items) and auto-repairs (with guild funds or not).

It shows in a broker display compatible the lowest durability and in its tooltip all the equipment durabilities.

Requires a data broker display like chocolate bar, bazooka, ninjapanel, stat block, titan panel, docking station, buttonbin and more.

If you are interested in helping translating, please visit forum:
http://www.wowinterface.com/download....html#comments

providing the following entries:

Lua Code:
  1. L["Shift"] = ""
  2. L["Right-Click"] = ""
  3. L["Left-Click"] = ""
  4. L["Middle-Click"] = ""
  5. L["%s: selling %s %s for %s"] = ""
  6. L["repair with guild funds"] = ""
  7. L["repair"] = ""
  8. L["no repair, need more money"] = ""
  9. L["Total %.1f - Equipped %.1f"] = ""
  10. L["Auto repair"] = ""
  11. L["Use guild funds"] = ""
  12. L["Auto sell junk"] = ""
  13. L["Toggle auto repair"] = ""
  14. L["Toggle use of guild funds"] = ""
  15. L["Toggle auto sell"] = ""
  16. L["below"] = ""
  17. L["above"] = ""
  18. L["average equipped"] = ""
  19. L["Durability"] = ""


Examples in Italian:
Lua Code:
  1. L["Shift"] = "Maiuscola"
  2. L["Right-Click"] = "Tasto-Destro"
  3. L["Left-Click"] = "Tasto-Sinistro"
  4. L["Middle-Click"] = "Tasto-Centrale"
  5. L["%s: selling %s %s for %s"] = "%s: vendita %s %s per %s"
  6. L["repair with guild funds"] = "riparazione con fondi di gilda"
  7.  
  8. ... etc etc

Actually it supports for the following locale:
- enUS
- itIT
- zhTW and zhCN. Thanks to BNS

720-2017052001
- Localization: zhTW and zhCN. Thanks to BNS.
- Revised localization strings to use global strings. Thanks to myrroddin

720-2017051801
- Added localization.
Thanks to phanx for her excellent (as usual) tutorial on addons localization.
https://phanx.net/addons/tutorials/localize
- Localization: itIT
- Modify the clicks to change options using a + Shift to prevents misclicks. (suggested by ceylina)

720-2017050701
- Fix typos

720-2017042301
- fix a problem with keystones (null price when depleted but grey quality)

v720-2017032801
- bump toc

v1.0-2016113001
- fixed a slot count

v1.0-2016111101
- added the forgotten NeckSlot :)

v1.0-2016110601
- Revert to the old LibDataBroker libs
- fix the double Artifact ilvl display

v1.0-2016110101
- Major rewrite using LibQTip

v1.0-2016102901
- display ilv/name/quality of the equipped slot item

v1.0-2016102601
- bump toc

v1.0-2016070901
- changed name and references into gmDurability

v1.0-2015100301
- some code rewriting.
thanks to Phanx for the fixes and suggestions, you can check all of inputs here:
http://www.wowinterface.com/downloads/fileinfo.php?id=23599#comments

v1.0-2015062401
- bump toc for 6.2

v1.0-2015022501
- bump toc for 6.1

v1.0-2014121601
- Added itemlevel display

v1.0-2014110601
- Replace the custom formatted money function with "GetCoinTextureString(coins)".

v1.0-2014110501
- Added 3 lines of code to show the selling price of the greys items.

local _, itemCount = GetContainerItemInfo(bag, slot);
local _, _, _, _, _, _, _, _, _, _, vendorPrice = GetItemInfo(name)
print(string_format("%s: selling %4s %s for %s", prgname, itemCount, name, moneyformat(vendorPrice * itemCount)))

v1.0-2014110301
- Added the autorepair (with guild funds if possible)
- Added the autosell of grey items
- Register a global array MYDURABILITY to save the preferences

v1.0-2014101501
- bump toc for 6.0

v1.0-2013091001
- bump toc for 5.4

v1.0-2013052101
- bump toc for 5.3

v1.0-2013051601
-- Initial release
Optional Files (0)


Archived Files (11)
File Name
Version
Size
Author
Date
720-2017051801
10kB
gmarco
05-17-17 11:25 PM
720-2017050701
10kB
gmarco
05-06-17 06:05 PM
720-2017042301
9kB
gmarco
04-23-17 11:32 AM
720-2017032801
9kB
gmarco
03-28-17 02:39 PM
1.0-2016113001
9kB
gmarco
11-30-16 12:58 PM
1.0-2016111101
9kB
gmarco
11-11-16 10:41 AM
1.0-2016110601
9kB
gmarco
11-06-16 12:47 AM
1.0-2016110101
18kB
gmarco
11-01-16 02:47 AM
1.0-2016102901
8kB
gmarco
10-29-16 01:32 AM
1.0-2016102601
8kB
gmarco
10-26-16 12:52 AM
1.0-2016070901
8kB
gmarco
07-09-16 05:41 AM


Post A Reply Comment Options
Unread 05-22-17, 01:23 AM  
myrroddin
A Molten Giant
 
myrroddin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 753
File comments: 193
Uploads: 11
Originally Posted by gmarco
Thanks for your inputs.
I have changed the localization files and addon accordingly .

Really thanks again.
Much appreciated.
You are welcome. Here are a few more. When I need to use the global strings, I use the search in my browser, and try to match as closely as possible. Therefore, I search for "shift" with the quotes, and found two entries that might work. I'd pick the one that is closest, if not exactly, to my original intent.
  • SHIFT_KEY_TEXT = "Shift"
  • HELPFRAME_REPORT_PLAYER_RIGHT_CLICK = "Right-Click"
  • "repair -- no closing quote, 7 entries, with a single space after the word, some may interest you
  • GUILDCONTROL_OPTION15_TOOLTIP = "Use guild funds for repairs"
  • DURABILITY = "Durability"
You can also search for "repairs with no closing quote for yet more interesting phrases. I did not find anything for left click or middle click, but perhaps you will have more success.
Report comment to moderator  
Reply With Quote
Unread 05-20-17, 03:41 AM  
gmarco
A Cobalt Mageweaver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 224
File comments: 132
Uploads: 36
Thanks for your inputs.
I have changed the localization files and addon accordingly .

Really thanks again.
Much appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 05-19-17, 06:21 PM  
myrroddin
A Molten Giant
 
myrroddin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 753
File comments: 193
Uploads: 11
Some of your translations are not necessary, and are already translated via the global strings. As examples: "Yes" and "No" are YES and NO, which the game will localize for you. Same with "Item Level" is the global string ITEM_UPGRADE_STAT_AVERAGE_ITEM_LEVEL. This will save you quite a lot of work.
Report comment to moderator  
Reply With Quote
Unread 05-18-17, 10:41 PM  
BNS
A Kobold Labourer
 
BNS's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 1
[quote=gmarco]
Originally Posted by BNS

Hi, first if all thanks for the translations.
Am I wrong or they seems equals to me may I use one for both of the languages ?

Something like:
Lua Code:
  1. if LOCALE == "zhTW" or LOCALE == "zhCN" then
  2.  
  3. -- one of your translations
  4.  
  5. end

or I have to put them in 2 distinct sections ?

Really thanks.
Put them in 2 distinct sections is better.
Report comment to moderator  
Reply With Quote
Unread 05-18-17, 12:40 PM  
gmarco
A Cobalt Mageweaver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 224
File comments: 132
Uploads: 36
Originally Posted by BNS
zhTW:
L["Shift"] = "Shift"
L["Right-Click"] = "右鍵"
L["Left-Click"] = "左鍵"
L["Middle-Click"] = "中鍵"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 獲得%s"
L["repair with guild funds"] = "修理使用公會資金"
L["repair"] = "修理"
L["no repair, need more money"] = "沒有修理,需要更多金錢"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等級:總計 %.1f - 已裝備 %.1f"
L["Auto repair"] = "自動修理"
L["Use guild funds"] = "使用公會資金"
L["Auto sell junk"] = "自動出售垃圾"
L["Toggle auto repair"] = "切換自動修理"
L["Toggle use of guild funds"] = "切換使用公會資金"
L["Toggle auto sell"] = "切換自動出售"
L["ItemLevel"] = "物品等級"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已裝備"
L["Durability"] = "耐久度"

zhCN:
L["Shift"] = "Shift"
L["Right-Click"] = "右键"
L["Left-Click"] = "左键"
L["Middle-Click"] = "中键"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 获得%s"
L["repair with guild funds"] = "修理使用公会资金"
L["repair"] = "修理"
L["no repair, need more money"] = "没有修理,需要更多金钱"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等级:总计 %.1f - 已装备 %.1f"
L["Auto repair"] = "自动修理"
L["Use guild funds"] = "使用公会资金"
L["Auto sell junk"] = "自动出售垃圾"
L["Toggle auto repair"] = "切换自动修理"
L["Toggle use of guild funds"] = "切换使用公会资金"
L["Toggle auto sell"] = "切换自动出售"
L["ItemLevel"] = "物品等级"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已装备"
L["Durability"] = "耐久度"

Hi, first if all thanks for the translations.
Am I wrong or they seems equals to me may I use one for both of the languages ?

Something like:
Lua Code:
  1. if LOCALE == "zhTW" or LOCALE == "zhCN" then
  2.  
  3. -- one of your translations
  4.  
  5. end

or I have to put them in 2 distinct sections ?

Really thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 05-18-17 at 12:58 PM.
Report comment to moderator  
Reply With Quote
Unread 05-18-17, 03:00 AM  
BNS
A Kobold Labourer
 
BNS's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 1
zhTW:
L["Shift"] = "Shift"
L["Right-Click"] = "右鍵"
L["Left-Click"] = "左鍵"
L["Middle-Click"] = "中鍵"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 獲得%s"
L["repair with guild funds"] = "修理使用公會資金"
L["repair"] = "修理"
L["no repair, need more money"] = "沒有修理,需要更多金錢"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等級:總計 %.1f - 已裝備 %.1f"
L["Auto repair"] = "自動修理"
L["Use guild funds"] = "使用公會資金"
L["Auto sell junk"] = "自動出售垃圾"
L["Toggle auto repair"] = "切換自動修理"
L["Toggle use of guild funds"] = "切換使用公會資金"
L["Toggle auto sell"] = "切換自動出售"
L["ItemLevel"] = "物品等級"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已裝備"
L["Durability"] = "耐久度"

zhCN:
L["Shift"] = "Shift"
L["Right-Click"] = "右键"
L["Left-Click"] = "左键"
L["Middle-Click"] = "中键"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 获得%s"
L["repair with guild funds"] = "修理使用公会资金"
L["repair"] = "修理"
L["no repair, need more money"] = "没有修理,需要更多金钱"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等级:总计 %.1f - 已装备 %.1f"
L["Auto repair"] = "自动修理"
L["Use guild funds"] = "使用公会资金"
L["Auto sell junk"] = "自动出售垃圾"
L["Toggle auto repair"] = "切换自动修理"
L["Toggle use of guild funds"] = "切换使用公会资金"
L["Toggle auto sell"] = "切换自动出售"
L["ItemLevel"] = "物品等级"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已装备"
L["Durability"] = "耐久度"
Report comment to moderator  
Reply With Quote
Unread 05-17-17, 11:26 PM  
gmarco
A Cobalt Mageweaver
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 224
File comments: 132
Uploads: 36
Originally Posted by ceylina
Do you think you could change the modifiers that turn of auto repair, guild repair and sell junk to require a shift plus a click? I have accidentally clicked these so many times it would be great.

line 126-129 would just be changed like this to do the actual code

Code:
if      button == "LeftButton"   and IsShiftKeyDown()	then GMDURABILITY["AUTOREPAIR"] = 	not GMDURABILITY["AUTOREPAIR"] 					
elseif 	button == "MiddleButton" and IsShiftKeyDown()	then GMDURABILITY["GUILDREPAIR"] = 	not GMDURABILITY["GUILDREPAIR"] 					
elseif 	button == "RightButton"  and IsShiftKeyDown()	then GMDURABILITY["AUTOSELL"] = 	not GMDURABILITY["AUTOSELL"] 
end
of course localizations would need changing but the above is what I am using to not accidently click anymore
Hi, thanks for the suggestion.
I have committed a new version implementing this.

Thanks again.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 05-16-17, 09:22 PM  
ceylina
A Cyclonian

Forum posts: 48
File comments: 87
Uploads: 0
Do you think you could change the modifiers that turn of auto repair, guild repair and sell junk to require a shift plus a click? I have accidentally clicked these so many times it would be great.

line 126-129 would just be changed like this to do the actual code

Code:
if      button == "LeftButton"   and IsShiftKeyDown()	then GMDURABILITY["AUTOREPAIR"] = 	not GMDURABILITY["AUTOREPAIR"] 					
elseif 	button == "MiddleButton" and IsShiftKeyDown()	then GMDURABILITY["GUILDREPAIR"] = 	not GMDURABILITY["GUILDREPAIR"] 					
elseif 	button == "RightButton"  and IsShiftKeyDown()	then GMDURABILITY["AUTOSELL"] = 	not GMDURABILITY["AUTOSELL"] 
end
of course localizations would need changing but the above is what I am using to not accidently click anymore
Last edited by ceylina : 05-16-17 at 09:27 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: