04-25-17, 02:27 AM | #21 | |
Cheers! |
||
04-25-17, 01:35 PM | #22 |
ok here is the code: (everything is tested, and should be properly debugged)
Lua Code:
Note: - Buttons are ordered from left to right, and from top to bottom (can be changed on line 129 - switch math operators for x / y) Last edited by syncrow : 04-25-17 at 01:40 PM. |
|
04-26-17, 09:04 AM | #23 | |
https://mods.curse.com/addons/wow/265345-beammeupdeja Cheers! |
||
04-26-17, 03:39 PM | #24 |
For this particular use, since you are scanning the bag anyway, I would recommend using the event BAG_UPDATE_DELAYED instead of BAG_UPDATE.
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison |
|
04-27-17, 12:12 AM | #25 | |
|
||
04-27-17, 02:21 AM | #26 | |
|
||
04-27-17, 02:27 AM | #27 | |
Edit: @Deja, i would also recomment, using my code seperately instead of calling it inside a OnEvent function, the created frame was simply renamed by me but should be used as your initFrame... Last edited by syncrow : 04-27-17 at 02:35 AM. |
||
04-27-17, 02:34 AM | #28 |
Thanks, after posting thought something similar, and found in ItemButtonTemplate.xml that it's indeed defined.
|
|
04-27-17, 02:50 AM | #29 |
I'm going to hard test the complete addon on Friday.
Should I upload a new beta version on curse once debugged and changes made? |
|
04-27-17, 03:10 AM | #30 |
04-27-17, 11:24 AM | #31 |
In line 54 probably a typo: instead of variable "texture" non-existant "tex" was used.
Removed external BeamMeUpDejaInitFrame. Don't know why but for item count updates to work, had to use CreateFontString in CreateButton. Modified version sent to Deja. Probably there's still much to fix/improve. |
|
04-27-17, 01:12 PM | #32 |
Begun fixing the beacon bar part:
By the way, searching for names rather than using predefined itemIDs like mentions in my first solution, will be an issue for non english clients Except we want to handle each localization manually... Last edited by syncrow : 04-27-17 at 01:36 PM. |
|
04-27-17, 11:01 PM | #33 | |
Code:
if name and name:find("Sentinax Beacon" or "Netherchunck") then We also need to query other items, like nether shards and boss summon stones. This is going to require tables... bleh. As for localization, we could simply search for local names, making our list, ostensibly, smaller, adding them to the table for Chinese, Russian, Portuguese, etc. But you are correct that we wont have to worry about localization if we use item IDs. |
||
04-27-17, 11:47 PM | #34 | |
simply loop through the currency list and get your information I don't know what really speaks against a table that we want to use for tracking - localization friendly - can be maintained updated super easily by just adding / removing itemIDs - we can throw updates without touching anything besides the itemID table for new items to track... |
||
04-28-17, 01:15 AM | #35 | |
So the project went from looking for three names to looking for 33 names across 11 locales. May as well just look for IDs instead. |
||
04-28-17, 03:22 AM | #36 |
Deja,
how do you want the beacon bar to be displayed exactly?
[Rare Beacons] [Uncommen Beacons] [Other Items] Static layout: [X][X][X][X][X][X][X][X][X] [X][X][X][X][X][X] [X][X][X] dynamic: (#15 - live) [X][X][X][X][X][X] [X][X][X][X][X][X] [X][X][X][X][X][X] mixed 1: [X][X][X][X][X][X] [X][X][X][X][X][X] [X][X][X][X][X][X] mixed 2: [X][X][X][X][X] [X][X][X][X][X] [X][X][X][X][X] [X][X][X] Last edited by syncrow : 04-28-17 at 04:05 AM. |
|
04-28-17, 09:33 AM | #37 |
I think ability to detect new Sentinax Beacons is interesting. Requirement to localize the search string - not so much. Therefore maybe some fuzzy detector whether or not this item is Sentinax Beacon can be written. Using currently known Sentinax Beacons a common string with maximal length could be calculated and used for searching.
Previously thought of more exotic ways of creation of the search string but currently think this is more or less plausible compared to others. |
|
04-28-17, 09:45 AM | #38 |
broken shore stuff would be a thing till 7.3 then everything will to argus, so could bet that no new beacon or any new broken shore grind related item will be added after 7.2.5 launch
and even when...add 2 spellIDs throw update, fix and everything is happy. You simply cant prevent addons to be updated from time to time, but that is just my standpoint |
|
04-28-17, 11:16 AM | #39 |
Indeed, in this specific example creation of search string through combinatorics is overkill. I was just surprised by possibility of automation of creation of feature extractor, as an input using few items.
But really, adding of few itemIDs after discovery of the new elusive Sentinax Beacons would be much easier. |
|
04-28-17, 12:31 PM | #40 |
I want the layout to be static rarity rows that are dynamically created, i.e. collapse as created for each rarity per row.
[X][X][X] -- Netherchunk and Zone portals(see below) [X][X] -- Epic [X][X] -- Crafting Rare [X][X][X][X] -- Rare [X][X][X][X][X][X] -- Uncommon __________________________________________ Netherchunk and Zone portals(see below) Epic: [146921] = "", -- Illisthyndria [146920] = "", -- Fel Obliterator [146919] = "", -- An'thyna:An'thyna [146918] = "", -- Force-Commander Xillious [146917] = "", -- Skulguloth [146916] = "", -- Than'otalion Crafting Rare: [147355] = "", -- bloodstrike [146923] = "", -- petrification [146922] = "", -- fel growth Rare: [146915] = "", -- greater torment [146914] = "", -- greater engineering [146913] = "", -- greater warbeasts [146912] = "", -- greater carnage [146911] = "", -- greater firestorm [146910] = "", -- greater dominance Uncommon: [146909] = "", -- torment [146908] = "", -- engineering [146907] = "", -- warbeasts [146906] = "", -- carnage [146905] = "", -- firestorm [146903] = "", -- dominance _____________________ Zone portals are rare(IIRC they are Epic). They open a portal in a zone, like Skyhorn in Highmountain. You go there, click it and a portal opens with aq miniboss. You kill it and loot exactly 300 Nethershards. I have had 2 drop, went and did them, but have not seen any since. Others can help you kill the boss but they do not get loot AFAIK. That being said, I forget what their name is and my google/WoWHead - fu has failed me to bring up their names. At any rate, the very top row should be consumable you want to use right away, like Netherchunk and these zone portals. |
|
WoWInterface » Developer Discussions » Lua/XML Help » Clear Button Texture and Text LUA Help |
«
Previous Thread
|
Next Thread
»
|
Thread Tools | |
Display Modes | |
|
|