Problemy w dodatku Tooltips

Dodatek wyświetlający spolszczenia itemów, spelli i talentów
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Problemy w dodatku Tooltips

Post autor: Platine »

Dodatkowa opcja daje większą możliwość konfiguracji.
Bo jakby ktoś nie chciał tlumaczeń stałych także w dodatkowym oknie, to może je sobie także nie włączać.

https://panel.wowpopolsku.pl/files/WoWp ... -10-09.zip

To jak tu już w miarę poprawnie dodatek działa, to będę mógł przenieść te zmiany i ustawienia do wersji 10.0
Awatar użytkownika
WoWpoPolsku Team
Erdzio
Posty: 404
Frakcja: Horda
Rasa: Worgen
BattleTag: Erdzio#2624

Re: Problemy w dodatku Tooltips

Post autor: Erdzio »

Z tego co widzę działa jak trzeba :)
Nie samymi questami worgen żyje, dymki też trzeba tłumaczyć. I Gossipy. No i książki... I Filmy, i Cinematici też...
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Problemy w dodatku Tooltips

Post autor: Platine »

Jest problem w dodatku w wersji 10.0 przy wyświetlaniu opisu do Buffów.
Silnik Wow'a nie zwraca teraz nazwy przycisku, do którego wyświetlany jest opis.
Nie jeste więc teraz w stanie wykryć wyświetlenia tego opisu. Opis ten nie jest na razie obsługiwany przez dodatek.

EDIT: Chyba rozwiązałem ten problem - użyłem funkcji BuffFrame:IsMouseOver() i wydaje się to rozwiązaniem.
Awatar użytkownika
WoWpoPolsku Team
Kalinkus
Posty: 785
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Kalinkus#2587
Kontakt:

Re: Problemy w dodatku Tooltips

Post autor: Kalinkus »

10,02

Message: ...AddOns/WoWpoPolsku_Tooltips/WoWpoPolsku_Tooltips.lua:629: GameTooltip doesn't have a "OnTooltipSetItem" script
Time: Wed Nov 16 12:46:28 2022
Count: 1
Stack: ...AddOns/WoWpoPolsku_Tooltips/WoWpoPolsku_Tooltips.lua:629: GameTooltip doesn't have a "OnTooltipSetItem" script
[string "=[C]"]: in function `HookScript'
[string "@Interface/AddOns/WoWpoPolsku_Tooltips/WoWpoPolsku_Tooltips.lua"]:629: in main chunk

Locals: (*temporary) = GameTooltip {
0 = <userdata>
SetQuestLogRewardSpell = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestPartyProgress = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
ProcessLineData = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:303
SetPvpTalent = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetRuneforgeResultItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetHyperlink = <function> defined =[C]:-1
SetUnit = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetAzeriteEssence = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetVoidDepositItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetVoidWithdrawalItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetInfoBackdropStyle = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:338
shoppingTooltips = <table> {
}
SetSocketGem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
updateTooltipTimer = 0.200000
ItemTooltip = Frame {
}
StatusBar = GameTooltipStatusBar {
}
SetLootCurrency = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetSlottedKeystone = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetWorldCursor = <function> defined @Interface/FrameXML/GameTooltip.lua:952
SetLootItem = <function> defined =[C]:-1
SetMerchantCostItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
GetUnit = <function> defined @Interface/FrameXML/GameTooltip.lua:994
SetOwnedItemByID = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetItemInteractionItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestLogSpecialItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
TextRight1 = GameTooltipTextRight1 {
}
SetEnhancedConduit = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetRecipeReagentItem = <function> defined =[C]:-1
SetQuestCurrency = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
supportsDataRefresh = true
SetWeeklyReward = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetMerchantItem = <function> defined =[C]:-1
SetPvpBrawl = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetAchievementByID = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
BottomOverlay = Texture {
}
SetSpellByID = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
supportsItemComparison = true
SetSocketedRelic = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
ProcessInfo = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:236
ProcessLines = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:293
NineSlice = Frame {
}
SetInventoryItem = <function> defined =[C]:-1
RefreshData = <function> defined @Interface/FrameXML/GameTooltip.lua:933
SetTransmogrifyItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetLootRollItem = <function> defined =[C]:-1
OnLoad = <function> defined @Interface/FrameXML/GameTooltip.lua:927
SetQuestLogCurrency = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
Gloria Victis
Awatar użytkownika
WoWpoPolsku Team
Kalinkus
Posty: 785
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Kalinkus#2587
Kontakt:

Re: Problemy w dodatku Tooltips

Post autor: Kalinkus »

Message: ...AddOns/WoWpoPolsku_Tooltips/WoWpoPolsku_Tooltips.lua:629: GameTooltip doesn't have a "OnTooltipSetItem" script
Time: Wed Nov 16 14:06:46 2022
Count: 1
Stack: ...AddOns/WoWpoPolsku_Tooltips/WoWpoPolsku_Tooltips.lua:629: GameTooltip doesn't have a "OnTooltipSetItem" script
[string "=[C]"]: in function `HookScript'
[string "@Interface/AddOns/WoWpoPolsku_Tooltips/WoWpoPolsku_Tooltips.lua"]:629: in main chunk

Locals: (*temporary) = GameTooltip {
0 = <userdata>
SetQuestLogRewardSpell = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestPartyProgress = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
ProcessLineData = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:303
SetPvpTalent = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetRuneforgeResultItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetHyperlink = <function> defined =[C]:-1
SetUnit = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetAzeriteEssence = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetVoidDepositItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetVoidWithdrawalItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetInfoBackdropStyle = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:338
shoppingTooltips = <table> {
}
SetSocketGem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
updateTooltipTimer = 0.200000
ItemTooltip = Frame {
}
StatusBar = GameTooltipStatusBar {
}
SetLootCurrency = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetSlottedKeystone = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetWorldCursor = <function> defined @Interface/FrameXML/GameTooltip.lua:952
SetLootItem = <function> defined =[C]:-1
SetMerchantCostItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
GetUnit = <function> defined @Interface/FrameXML/GameTooltip.lua:994
SetOwnedItemByID = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetItemInteractionItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestLogSpecialItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
TextRight1 = GameTooltipTextRight1 {
}
SetEnhancedConduit = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetRecipeReagentItem = <function> defined =[C]:-1
SetQuestCurrency = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
supportsDataRefresh = true
SetWeeklyReward = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetMerchantItem = <function> defined =[C]:-1
SetPvpBrawl = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetAchievementByID = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
BottomOverlay = Texture {
}
SetSpellByID = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
supportsItemComparison = true
SetSocketedRelic = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
ProcessInfo = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:236
ProcessLines = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:293
NineSlice = Frame {
}
SetInventoryItem = <function> defined =[C]:-1
RefreshData = <function> defined @Interface/FrameXML/GameTooltip.lua:933
SetTransmogrifyItem = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetLootRollItem = <function> defined =[C]:-1
OnLoad = <function> defined @Interface/FrameXML/GameTooltip.lua:927
SetQuestLogCurrency = <function> defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
Gloria Victis
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Problemy w dodatku Tooltips

Post autor: Platine »

No to pojechali z nowym patchem, Pousuwali funkcje.
Awatar użytkownika
WoWpoPolsku Team
Kalinkus
Posty: 785
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Kalinkus#2587
Kontakt:

Re: Problemy w dodatku Tooltips

Post autor: Kalinkus »

toplist wogle sie nie wysfietla na stronie addons optins
Gloria Victis
Awatar użytkownika
WoWpoPolsku Team
Platine
Posty: 1014

Re: Problemy w dodatku Tooltips

Post autor: Platine »

Blizzard zrobił nam w patchu 10.0.2 ogromnego psikusa.
Pousuwał funkcje takie jak:

GameTooltip:HookScript("OnTooltipSetItem")
GameTooltip:HookScript("OnTooltipSetSpell")

czyli straciliśmy na dobre dodatek Tooltips.
Nie mamy już bezpośredniego dostępu do obiektów Gossip.
Jest coraz gorzej. Już mi się nie chce szukać rozwiązań jak to wszystko obejść.
Żeby jeszcze wydawali jakąś dobrą dokumentację do wszystkich zmian...
Ja się poddaję.
Awatar użytkownika
Administrator
Gary
Posty: 200
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Gary#2402

Re: Problemy w dodatku Tooltips

Post autor: Gary »

Platine pisze: 16 lis 2022, 16:59 Blizzard zrobił nam w patchu 10.0.2 ogromnego psikusa.
Pousuwał funkcje takie jak:

GameTooltip:HookScript("OnTooltipSetItem")
GameTooltip:HookScript("OnTooltipSetSpell")

czyli straciliśmy na dobre dodatek Tooltips.
Nie mamy już bezpośredniego dostępu do obiektów Gossip.
Jest coraz gorzej. Już mi się nie chce szukać rozwiązań jak to wszystko obejść.
Żeby jeszcze wydawali jakąś dobrą dokumentację do wszystkich zmian...
Ja się poddaję.
Tu masz odp: https://wowpedia.fandom.com/wiki/Patch_ ... PI_changes
Tooltip Script Handlers
The following GameTooltip script handlers have been removed. This change will not be reflected in the UI XML schema definition until a future patch.

OnTooltipAddMoney
OnTooltipSetAchievement
OnTooltipSetEquipmentSet
OnTooltipSetItem
OnTooltipSetQuest
OnTooltipSetSpell
OnTooltipSetUnit
Usages of these script handlers should be replaced by registering callbacks with the new TooltipDataProcessor.AddTooltipPostCall function.

Kod: Zaznacz cały

local function OnTooltipSetItem(tooltip, data)
    print("OnTooltipSetItem", tooltip, data)
end

-- Replace 'Enum.TooltipDataType.Item' with an appropriate type for the tooltip
-- data you are wanting to process; eg. use 'Enum.TooltipDataType.Spell' for
-- replacing usage of OnTooltipSetSpell.
--
-- If you wish to respond to all tooltip data updates, you can instead replace
-- the enum with 'TooltipDataProcessor.AllTypes' (or the string "ALL").

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, OnTooltipSetItem)
Czyli zamiast GameTooltip:HookScript("OnTooltipSetItem") użyj TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item)
Awatar użytkownika
WoWpoPolsku Team
Kalinkus
Posty: 785
Frakcja: Przymierze
Rasa: Człowiek
Klasa: Paladyn
BattleTag: Kalinkus#2587
Kontakt:

Re: Problemy w dodatku Tooltips

Post autor: Kalinkus »

dasz radę na pewno to rozwiązane da rade
Gloria Victis
ODPOWIEDZ