progress on the new UI

This commit is contained in:
Manuel Simon Hirsig
2015-10-23 23:12:52 +02:00
parent 7c7b14c246
commit 530dad98e1
4 changed files with 589 additions and 514 deletions
+5
View File
@@ -159,6 +159,11 @@ function item_id(hyperlink)
return tonumber(id_string)
end
function parse_hyperlink(hyperlink)
local _, _, item_id, enchant_id, suffix_id, unique_id, name = strfind(hyperlink, '|Hitem:(%d+):(%d+):(%d+):(%d+)|h[[]([^]]+)[]]|h')
return tonumber(item_id) or 0, tonumber(suffix_id) or 0, tonumber(enchant_id) or 0, tonumber(unique_id) or 0, name
end
function hyperlink_item(hyperlink)
local name, itemstring, quality, level, type, subtype, max_stack = GetItemInfo(item_id(hyperlink))
return {