03-26-19, 06:00 PM | #21 |
I am trying to fix this issue for Altoholic.
We just get this error message when entering the "Character" tab: "Couldn't find inherited node: ItemButtonTemplate" So I assume it is due to the xml codes of AuctionHouse.xml (and Mails.xml respectively): Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> <Script file="AuctionHouse.lua"></Script> <Button name="AltoAuctionEntryTemplate" virtual="true"> <Size x="615" y="41" /> <Layers> <Layer level="BACKGROUND"> <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="14" /> <Anchors> <Anchor point="TOPLEFT" x="53" y="0" /> </Anchors> </FontString> <FontString name="$parentTimeLeft" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="10" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-2" /> </Anchors> </FontString> <FontString name="$parentHighBidder" inherits="GameFontNormal"> <Size x="160" y="32" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="TOPRIGHT" x="5" y="0" /> </Anchors> </FontString> <FontString name="$parentPrice" inherits="GameFontNormal" justifyH="RIGHT"> <Size x="150" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentHighBidder" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button name="$parentItem" inherits="ItemButtonTemplate"> <Anchors> <Anchor point="TOPLEFT" x="10" y="0" /> </Anchors> <Scripts> <OnEnter> Altoholic.AuctionHouse:OnEnter(self) </OnEnter> <OnLeave> GameTooltip:Hide(); </OnLeave> <OnClick> Altoholic.AuctionHouse:OnClick(self, button) </OnClick> </Scripts> </Button> </Frames> <Scripts> <OnLoad> self:RegisterForClicks("LeftButtonDown", "RightButtonDown"); </OnLoad> <OnClick> if button == "RightButton" then ToggleDropDownMenu(1, nil, AltoholicFrameAuctionsRightClickMenu, self:GetName(), 0, -5); end </OnClick> </Scripts> <HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD"> <Size x="555" y="37" /> <Anchors> <Anchor point="TOPLEFT" x="55" y="0" /> </Anchors> <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/> </HighlightTexture> </Button> <Frame name="AltoholicFrameAuctions" parent="AltoholicTabCharacters" hidden="true"> <Size x="615" y="306" /> <Anchors> <Anchor point="TOPRIGHT" x="39" y="-105" /> </Anchors> <Frames> <ScrollFrame name="$parentScrollFrame" inherits="AltoBaseScrollFrameTemplate" hidden="true"> <Scripts> <OnVerticalScroll> self:OnVerticalScroll(offset, 41, Altoholic.AuctionHouse.Update) </OnVerticalScroll> </Scripts> </ScrollFrame> <Button name="$parentEntry1" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT" x="0" y="0" /> </Anchors> </Button> <Button name="$parentEntry2" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry3" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry4" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry5" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry6" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry7" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> </Frames> </Frame> </Ui> I obviously don't understand the concepts at hand. Simply changing Code:
<Button name="$parentItem" inherits="ItemButtonTemplate"> Code:
<ItemButton name="$parentItem"> "...erface\AddOns\Altoholic_Characters\TabCharacters.lua:72: attempt to index global 'AltoholicFrameAuctions' (a nil value)" Any help would be greatly appreciated. Thanks! |
|
03-26-19, 07:25 PM | #22 |
Assuming for each ItemButton you also simply changed:
Code:
</Button> Code:
</ItemButton> Something in the xml above the line: Code:
<Frame name="AltoholicFrameAuctions" parent="AltoholicTabCharacters" hidden="true">
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. Last edited by Fizzlemizz : 03-26-19 at 08:05 PM. |
|
03-27-19, 05:58 AM | #23 |
All right, sorry for not being too specific yesterday. This is what's happening now:
I replaced all the occurences of Button in the xml files resulting in this: AuctionHouse.xml Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> <Script file="AuctionHouse.lua"></Script> <ItemButton name="AltoAuctionEntryTemplate" virtual="true"> <Size x="615" y="41" /> <Layers> <Layer level="BACKGROUND"> <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="14" /> <Anchors> <Anchor point="TOPLEFT" x="53" y="0" /> </Anchors> </FontString> <FontString name="$parentTimeLeft" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="10" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-2" /> </Anchors> </FontString> <FontString name="$parentHighBidder" inherits="GameFontNormal"> <Size x="160" y="32" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="TOPRIGHT" x="5" y="0" /> </Anchors> </FontString> <FontString name="$parentPrice" inherits="GameFontNormal" justifyH="RIGHT"> <Size x="150" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentHighBidder" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <ItemButton name="$parentItem"> <Anchors> <Anchor point="TOPLEFT" x="10" y="0" /> </Anchors> <Scripts> <OnEnter> Altoholic.AuctionHouse:OnEnter(self) </OnEnter> <OnLeave> GameTooltip:Hide(); </OnLeave> <OnClick> Altoholic.AuctionHouse:OnClick(self, button) </OnClick> </Scripts> </ItemButton> </Frames> <Scripts> <OnLoad> self:RegisterForClicks("LeftButtonDown", "RightButtonDown"); </OnLoad> <OnClick> if button == "RightButton" then ToggleDropDownMenu(1, nil, AltoholicFrameAuctionsRightClickMenu, self:GetName(), 0, -5); end </OnClick> </Scripts> <HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD"> <Size x="555" y="37" /> <Anchors> <Anchor point="TOPLEFT" x="55" y="0" /> </Anchors> <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/> </HighlightTexture> </ItemButton> <Frame name="AltoholicFrameAuctions" parent="AltoholicTabCharacters" hidden="true"> <Size x="615" y="306" /> <Anchors> <Anchor point="TOPRIGHT" x="39" y="-105" /> </Anchors> <Frames> <ScrollFrame name="$parentScrollFrame" inherits="AltoBaseScrollFrameTemplate" hidden="true"> <Scripts> <OnVerticalScroll> self:OnVerticalScroll(offset, 41, Altoholic.AuctionHouse.Update) </OnVerticalScroll> </Scripts> </ScrollFrame> <ItemButton name="$parentEntry1" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT" x="0" y="0" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry2" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry3" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry4" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry5" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry6" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry7" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> </Frames> </Frame> </Ui> Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> <Script file="Mails.lua"></Script> <ItemButton name="AltoMailEntryTemplate" virtual="true"> <Size x="615" y="41" /> <Layers> <Layer level="BACKGROUND"> <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="32" /> <Anchors> <Anchor point="TOPLEFT" x="53" y="0" /> </Anchors> </FontString> <FontString name="$parentCharacter" inherits="GameFontNormal"> <Size x="130" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentName" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> <FontString name="$parentExpiry" inherits="GameFontNormal"> <Size x="200" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentCharacter" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <ItemButton name="$parentItem"> <Anchors> <Anchor point="TOPLEFT" x="10" y="0" /> </Anchors> <Scripts> <OnEnter> Altoholic.Mail:OnEnter(self) </OnEnter> <OnLeave> GameTooltip:Hide(); </OnLeave> <OnClick> Altoholic.Mail:OnClick(self, button) </OnClick> </Scripts> </ItemButton> </Frames> <HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD"> <Size x="560" y="37" /> <Anchors> <Anchor point="TOPLEFT" x="50" y="0" /> </Anchors> <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/> </HighlightTexture> </ItemButton> <Frame name="AltoholicFrameMail" parent="AltoholicTabCharacters" hidden="true"> <Size x="615" y="306" /> <Anchors> <Anchor point="TOPRIGHT" x="39" y="-105" /> </Anchors> <Frames> <ScrollFrame name="$parentScrollFrame" parentKey="ScrollFrame" inherits="AltoBaseScrollFrameTemplate" hidden="true"> <Scripts> <OnVerticalScroll> self:OnVerticalScroll(offset, 41, Altoholic.Mail.Update) </OnVerticalScroll> </Scripts> <!-- <KeyValues> <KeyValue key="numRows" value="7" type="number" /> <KeyValue key="rowTemplate" value="AltoMailEntryTemplate" /> </KeyValues> --> </ScrollFrame> <ItemButton name="$parentEntry1" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT" x="0" y="0" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry2" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry3" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry4" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry5" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry6" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> <ItemButton name="$parentEntry7" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" /> </Anchors> </ItemButton> </Frames> </Frame> </Ui> When I go to Altoholic's "Characters" tab now, there is no "Couldn't find inherited node: ItemButtonTemplate" error message any more. Instead, now when I try to look at the "Auction House" or "Mails" view, I get errors. But these errors are not even what I ment by "breaks everything"! Because if I do a gui /reload now, I find myself having no message console any more and this error pops up: Code:
Message: Interface\FrameXML\ChatAlertFrameMixin.lua:6: attempt to index global 'DEFAULT_CHAT_FRAME' (a nil value) Time: Wed Mar 27 12:47:31 2019 Count: 1 Stack: Interface\FrameXML\ChatAlertFrameMixin.lua:6: attempt to index global 'DEFAULT_CHAT_FRAME' (a nil value) Interface\FrameXML\ChatAlertFrameMixin.lua:6: in function <Interface\FrameXML\ChatAlertFrameMixin.lua:3> Locals: self = ChatAlertFrame { 0 = <userdata> SetSubSystemAnchorPriority = <function> defined @Interface\FrameXML\AlertFrames.lua:350 shouldQueueAlertsFlags = <table> { } SetJustification = <function> defined @Interface\FrameXML\AlertFrames.lua:377 CreateSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:311 CreateQueuedSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:328 SetEnabledFlag = <function> defined @Interface\FrameXML\AlertFrames.lua:277 SetVariablesLoaded = <function> defined @Interface\FrameXML\AlertFrames.lua:294 SetAlertsEnabled = <function> defined @Interface\FrameXML\AlertFrames.lua:299 AreAlertsEnabled = <function> defined @Interface\FrameXML\AlertFrames.lua:303 AddQueuedAlertFrameSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:338 AddAlertFrameSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:342 GetJustification = <function> defined @Interface\FrameXML\AlertFrames.lua:384 OnLoad = <function> defined @Interface\FrameXML\ChatAlertFrameMixin.lua:3 justification = "LEFT" AddExternallyAnchoredSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:318 CleanAnchorPriorities = <function> defined @Interface\FrameXML\AlertFrames.lua:360 OnEvent = <function> defined @Interface\FrameXML\AlertFrames.lua:269 AddAutoAnchoredSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:323 SetChatButtonSide = <function> defined @Interface\FrameXML\ChatAlertFrameMixin.lua:10 AddSimpleAlertFrameSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:332 SetPlayerEnteredWorld = <function> defined @Interface\FrameXML\AlertFrames.lua:289 alertFrameSubSystems = <table> { } UpdateAnchors = <function> defined @Interface\FrameXML\AlertFrames.lua:368 GetPointsForJustification = <function> defined @Interface\FrameXML\AlertFrames.lua:402 AddAlertFrame = <function> defined @Interface\FrameXML\AlertFrames.lua:409 } (*temporary) = <function> defined =[C]:-1 (*temporary) = ChatAlertFrame { 0 = <userdata> SetSubSystemAnchorPriority = <function> defined @Interface\FrameXML\AlertFrames.lua:350 shouldQueueAlertsFlags = <table> { } SetJustification = <function> defined @Interface\FrameXML\AlertFrames.lua:377 CreateSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:311 CreateQueuedSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:328 SetEnabledFlag = <function> defined @Interface\FrameXML\AlertFrames.lua:277 SetVariablesLoaded = <function> defined @Interface\FrameXML\AlertFrames.lua:294 SetAlertsEnabled = <function> defined @Interface\FrameXML\AlertFrames.lua:299 AreAlertsEnabled = <function> defined @Interface\FrameXML\AlertFrames.lua:303 AddQueuedAlertFrameSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:338 AddAlertFrameSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:342 GetJustification = <function> defined @Interface\FrameXML\AlertFrames.lua:384 OnLoad = <function> defined @Interface\FrameXML\ChatAlertFrameMixin.lua:3 justification = "LEFT" AddExternallyAnchoredSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:318 CleanAnchorPriorities = <function> defined @Interface\FrameXML\AlertFrames.lua:360 OnEvent = <function> defined @Interface\FrameXML\AlertFrames.lua:269 AddAutoAnchoredSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:323 SetChatButtonSide = <function> defined @Interface\FrameXML\ChatAlertFrameMixin.lua:10 AddSimpleAlertFrameSubSystem = <function> defined @Interface\FrameXML\AlertFrames.lua:332 SetPlayerEnteredWorld = Similarly, I have no bag icons any more and trying to open my bags pressing "B" results in: Code:
Message: Interface\FrameXML\ContainerFrame.lua:982: attempt to index local 'itemButton' (a nil value) Time: Wed Mar 27 12:49:11 2019 Count: 1 Stack: Interface\FrameXML\ContainerFrame.lua:982: attempt to index local 'itemButton' (a nil value) Interface\FrameXML\ContainerFrame.lua:982: in function `ContainerFrame_GenerateFrame' Interface\FrameXML\ContainerFrame.lua:118: in function `ToggleBag' Interface\FrameXML\ContainerFrame.lua:140: in function `ToggleBackpack' Interface\FrameXML\ContainerFrame.lua:364: in function `OpenBackpack' Interface\FrameXML\ContainerFrame.lua:1507: in function `ToggleAllBags' [string "OPENALLBAGS"]:1: in function <[string "OPENALLBAGS"]:1> Locals: frame = ContainerFrame1 { 0 = <userdata> PortraitButton = ContainerFrame1PortraitButton { } Portrait = ContainerFrame1Portrait { } ExtraBagSlotsHelpBox = ContainerFrame1ExtraBagSlotsHelpBox { } ClickableTitleFrame = <unnamed> { } bags = <table> { } forceExtended = false FilterDropDown = ContainerFrame1FilterDropDown { } bagsShown = 0 FilterIcon = <unnamed> { } allBags = true size = 16 } size = 16 id = 0 name = "ContainerFrame1" bgTextureTop = ContainerFrame1BackgroundTop { 0 = <userdata> } bgTextureMiddle = ContainerFrame1BackgroundMiddle1 { 0 = <userdata> } bgTextureMiddle2 = ContainerFrame1BackgroundMiddle2 { 0 = <userdata> } bgTextureBottom = ContainerFrame1BackgroundBottom { 0 = <userdata> } bgTexture1Slot = ContainerFrame1Background1Slot { 0 = <userdata> } columns = 4 rows = 4 backpackFirstButtonOffset = -225 secured = false baseSize = 16 index = 16 itemButton = nil (for index) = 1 (for limit) = 16 (for step) = 1 i = 1 (*temporary) = <table> { UpdateOnBarHighlightMarksBySpell = <function> defined @Interface\FrameXML\ActionButton.lua:74 ERR_OUT_OF_CHI = "Not enough chi" DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded." MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown { } GetTrainerServiceTypeFilter = <function> defined =[C]:-1 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names." SetTrainerServiceTypeFilter = <function> defined =[C]:-1 LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 740 SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you." LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 398 ERROR_CLUB_TICKET_COUNT_AT_MAX_COMMUNITY = "Can't create any more invite links for this community." RecruitAFriendFrame = RecruitAFriendFrame { } CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture = CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture { } TutorialFrameLeft19 = TutorialFrameLeft19 { } MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown { } ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags." PVP_RANK_6_1 = "Corporal" BOOKTYPE_PROFESSION = "professions" AudioOptionsVoicePanelOutputDeviceDropdownButtonHighlightTexture = AudioOptionsVoicePanelOutputDeviceDropdownButtonHighlightTexture { } VideoOptionsFrameDefaults = VideoOptionsFrameDefaults { } MerchantItem1AltCurrencyFrameItem1Text = MerchantItem1AltCurrencyFrameItem1Text { } OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN = "Action button keybinds will respond on key down, rather than on key up." BINDING_NAME_NAMEPLATES = "Show Enemy Name Plates" INSTANCE_UNAVAILABLE_OTHER_TEMPORARILY_DISABLED = "%s cannot enter. This instance is temporarily disabled." MultiBarBottomRightButton8Shine5 = MultiBarBottomRightButton8Shine5 { } IsReferAFriendLinked = <function> defined =[C]:-1 MAIL_LETTER_TOOLTIP = "Click to make a permanent copy of this letter." UnitFrameManaBar_UnregisterDefaultEvents = <function> defined @Interface\FrameXML\UnitFrame.lua:794 PaperDollTitlesPaneButton12BgTop = PaperDollTitlesPaneButton12BgTop { } ERR_NOAMMO_S = "%s" CHAT_CONFIG_OTHER_COMBAT = <table> { } FCFDockOverflowButton_OnClick = <function> defined @Interface\FrameXML\FloatingChatFrame.lua:2372 TutorialFrameRight19 = Tut Then it's the same again. Everything OK before I go on Altoholic's "Character" tab (NB without any error messages so far) and then /reload -> leading to the "completely broken" state. Does this make any sense to you? |
|
03-27-19, 10:23 AM | #24 |
I downloaded the addon from WoWI, changed the 2 occurrences of the template and everything seems to work, AH, Mail, Character tab in Altoholic.
Mails.xml Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> <Script file="Mails.lua"></Script> <Button name="AltoMailEntryTemplate" virtual="true"> <Size x="615" y="41" /> <Layers> <Layer level="BACKGROUND"> <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="32" /> <Anchors> <Anchor point="TOPLEFT" x="53" y="0" /> </Anchors> </FontString> <FontString name="$parentCharacter" inherits="GameFontNormal"> <Size x="130" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentName" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> <FontString name="$parentExpiry" inherits="GameFontNormal"> <Size x="200" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentCharacter" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <ItemButton name="$parentItem"> <!-- inherits="ItemButtonTemplate"> --> <Anchors> <Anchor point="TOPLEFT" x="10" y="0" /> </Anchors> <Scripts> <OnEnter> Altoholic.Mail:OnEnter(self) </OnEnter> <OnLeave> GameTooltip:Hide(); </OnLeave> <OnClick> Altoholic.Mail:OnClick(self, button) </OnClick> </Scripts> </ItemButton> </Frames> <HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD"> <Size x="560" y="37" /> <Anchors> <Anchor point="TOPLEFT" x="50" y="0" /> </Anchors> <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/> </HighlightTexture> </Button> <Frame name="AltoholicFrameMail" parent="AltoholicTabCharacters" hidden="true"> <Size x="615" y="306" /> <Anchors> <Anchor point="TOPRIGHT" x="39" y="-105" /> </Anchors> <Frames> <ScrollFrame name="$parentScrollFrame" parentKey="ScrollFrame" inherits="AltoBaseScrollFrameTemplate" hidden="true"> <Scripts> <OnVerticalScroll> self:OnVerticalScroll(offset, 41, Altoholic.Mail.Update) </OnVerticalScroll> </Scripts> <!-- <KeyValues> <KeyValue key="numRows" value="7" type="number" /> <KeyValue key="rowTemplate" value="AltoMailEntryTemplate" /> </KeyValues> --> </ScrollFrame> <Button name="$parentEntry1" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT" x="0" y="0" /> </Anchors> </Button> <Button name="$parentEntry2" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry3" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry4" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry5" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry6" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry7" inherits="AltoMailEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> </Frames> </Frame> </Ui> Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> <Script file="AuctionHouse.lua"></Script> <Button name="AltoAuctionEntryTemplate" virtual="true"> <Size x="615" y="41" /> <Layers> <Layer level="BACKGROUND"> <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="14" /> <Anchors> <Anchor point="TOPLEFT" x="53" y="0" /> </Anchors> </FontString> <FontString name="$parentTimeLeft" inherits="GameFontNormal" justifyH="LEFT"> <Size x="220" y="10" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-2" /> </Anchors> </FontString> <FontString name="$parentHighBidder" inherits="GameFontNormal"> <Size x="160" y="32" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="TOPRIGHT" x="5" y="0" /> </Anchors> </FontString> <FontString name="$parentPrice" inherits="GameFontNormal" justifyH="RIGHT"> <Size x="150" y="32" /> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="$parentHighBidder" relativePoint="BOTTOMRIGHT" x="5" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <ItemButton name="$parentItem"> <!-- inherits="ItemButtonTemplate">--> <Anchors> <Anchor point="TOPLEFT" x="10" y="0" /> </Anchors> <Scripts> <OnEnter> Altoholic.AuctionHouse:OnEnter(self) </OnEnter> <OnLeave> GameTooltip:Hide(); </OnLeave> <OnClick> Altoholic.AuctionHouse:OnClick(self, button) </OnClick> </Scripts> </ItemButton> </Frames> <Scripts> <OnLoad> self:RegisterForClicks("LeftButtonDown", "RightButtonDown"); </OnLoad> <OnClick> if button == "RightButton" then ToggleDropDownMenu(1, nil, AltoholicFrameAuctionsRightClickMenu, self:GetName(), 0, -5); end </OnClick> </Scripts> <HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD"> <Size x="555" y="37" /> <Anchors> <Anchor point="TOPLEFT" x="55" y="0" /> </Anchors> <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/> </HighlightTexture> </Button> <Frame name="AltoholicFrameAuctions" parent="AltoholicTabCharacters" hidden="true"> <Size x="615" y="306" /> <Anchors> <Anchor point="TOPRIGHT" x="39" y="-105" /> </Anchors> <Frames> <ScrollFrame name="$parentScrollFrame" inherits="AltoBaseScrollFrameTemplate" hidden="true"> <Scripts> <OnVerticalScroll> self:OnVerticalScroll(offset, 41, Altoholic.AuctionHouse.Update) </OnVerticalScroll> </Scripts> </ScrollFrame> <Button name="$parentEntry1" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT" x="0" y="0" /> </Anchors> </Button> <Button name="$parentEntry2" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry3" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry4" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry5" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry6" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> <Button name="$parentEntry7" inherits="AltoAuctionEntryTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" /> </Anchors> </Button> </Frames> </Frame> </Ui>
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. Last edited by Fizzlemizz : 03-27-19 at 10:50 AM. |
|
03-27-19, 10:49 AM | #25 |
In your two files you also changed the top level template nodes (AltoAuctionEntryTemplate and AltoMailEntryTemplate) from Button to ItemButton even though they never inherited ItemButtonTemplate.
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. Last edited by Fizzlemizz : 03-27-19 at 02:55 PM. |
|
03-27-19, 06:05 PM | #26 |
@Fizzlemizz: You are so right! I feel really stupid right now.
I wanted to try from scratch, so I used the Twitch App's "reinstall" on Altoholic. As a result I got completely new error messages. So I compared the content of my Altoholic folders with that of the downloadable zip file and realised that there were several files completely missing. No idea how this could happen. Maybe the Twitch App got confused by the multitude of single addons Altoholic is comprised of? Anyway I uninstalled Altoholic, then installed anew, applied your changes (i.e. only the Button tags inheriting from ItemButtonTemplate) and everything works fine now. Thank you so much! I guess I should henceforth use Minion instead of Twitch... One follow-up question, if I may: Is it possible to make such an xml correction "from outside" the addon? I am working on some other fixes for Altoholic that I can apply by hooking/overriding its public functions in lua. Is something similar possible to override the xml file's content? |
|
03-27-19, 08:34 PM | #27 |
I would say you can't do anything like this with xml virtuals or intrinsics, at least not without some post creation gymnastics in the odd instance where they don't do anything OnLoad.
Someone else may know better.
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. |
|
04-05-19, 03:14 PM | #28 |
Hi.
I have a similar problem with showing itemlevel in Syiana's UI, SUI 7.2. Since he has discontinued the project(stopped playing), I'm trying to fix some few bugs for personal use Here's the code for showing iLvL in the characterpanel and bags(bags work). Does not work after 8.1.5: Lua Code:
Hope someone can help |
|
04-06-19, 05:00 AM | #29 |
tkle, you are better off posting this in the Lua/XML help thread in the Developer section of the forums.
Not really to your point, but line 9 contains superfluous code. Lua Code:
Conversely, these are the same: Lua Code:
|
|
06-22-19, 07:22 AM | #30 |
I jumped in this thread because I was also interested in Altoholic issue with ItemButton--thanks for pointing out the erroneous parts.
Just having this opportunity, could someone describe the difference between Button and ItemButton? I know the latter is inherited from Button. |
|
06-22-19, 07:46 AM | #31 |
ItemButtonTemplate used to be a template (xml with the virtual attribute that inherited the button widget and added extra "bits" like frames, textures etc. that was automatically "applied" to any other widget that inherited from ItemButtonTemplate).
Blizzard moved ItemButtonTemplate to being an intrinsic (pseudo widget) ItemButton. In both cases they inherit from the button widget adding the extras. Difference in usage: Code:
local f = CreateFrame("Button", "MyItemButton", UIParent, "ItemButtonTemplate") local f = CreateFrame("ItemButton", "MyItemButton", UIParent)
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. Last edited by Fizzlemizz : 06-22-19 at 10:47 AM. |
|
WoWInterface » PTR » PTR API and Graphics Changes » 8.1.5 ItemButtonTemplate Changes |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|