06/16/18, 08:37 PM | #1 | |
Join Date: Feb 2018
Posts: 6
|
AddOn Load Order/Priority
Is there any way to ensure that, for example, Ravalox' Quest will show IN FRONT of the AUI Minimap? I had it this way initally, but I ended up trying another quest log addon before reinstalling Ravalox' and now the tracker renders behind AUI's minimap. Because of limited screen real estate, I like to have both elements occupy the same area, and then leave the quest tracker off until I need it. I've tried everything I can think of to get it to work again, uninstalling and reinstalling both addons in different order with no luck so far.
|
|
06/17/18, 12:06 AM | #2 |
The quest tracker control needs to be set via cobtrol:SetDrawTier(x) and control:SetDrawLayer(y) to a higher value then the minimap to achieve this.
Check the esoui wiki for the possible values and the addon's source for their control names. |
|
06/17/18, 09:41 AM | #3 | |
Join Date: Feb 2018
Posts: 6
|
Can't find those values in the quest tracker files, but the problem resolved it self it seems, thanks for the help anyways!
Last edited by murkalurk2099 : 06/17/18 at 09:48 AM. |
|
06/17/18, 11:07 AM | #4 |
Most control names are declared in the xml file as toplevel control. This is the one of would need to set to the top draw tier & level.
And the name would be something like the addon name (in best case ). |
|
06/18/18, 11:28 AM | #5 | |
Join Date: Feb 2018
Posts: 6
|
Code:
<!-- Level then Layer then Tier (lowest to highest prescendence --> <GuiXml> <Controls> <!-- TopLevelWindow for Tree --> <TopLevelControl name="QuestTrackerWin" clampedToScreen="true" mouseEnabled="true" movable="true" hidden="true" resizeHandleSize="6"> <Dimensions x="100" y="350" /> <DimensionConstraints minX="150" minY="60" /> <Anchor point="TOPLEFT" relativeTo="GuiRoot" relativePoint="TOPLEFT" offsetX="100" offsetY="150"/> <OnInitialized> QuestTracker_QuestTree_OnInitialized(self) </OnInitialized> <!-- <OnResizeStop> QuestTracker_On_ResizeStop(self) </OnResizeStop> <OnMoveStop> QuestTracker_On_MoveStop(self) </OnMoveStop> --> <Controls> <!-- <Backdrop name="$(parent)Backdrop" inherits="ZO_DefaultBackdrop" alpha="1" > <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="0"/> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="0" offsetY="0"/> </Backdrop> --> <Backdrop name="$(parent)DragBar" alpha="1" level="1" > <Anchor point="TOPLEFT" relativeTo="$(parent)Backdrop" relativePoint="TOPLEFT" offsetX="0" offsetY="0"/> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="0" offsetY="20"/> <OnInitialized> self:SetCenterColor(0.25, 0.25, 0.25, 1) self:SetEdgeColor(0.25, 0.25, 0.25, 0) </OnInitialized> </Backdrop> <Backdrop name="$(parent)Backdrop" inherits="ZO_DefaultBackdrop" alpha="1" > <Anchor point="TOPLEFT" relativeTo="$(parent)DragBar" relativePoint="BOTTOMLEFT" offsetX="0" offsetY="0"/> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="0" offsetY="0"/> </Backdrop> <Button name="$(parent)LockBtn" inherits="ZO_ButtonBehaviorClickSound" hidden="true" enabled="false"> <Dimensions x="16" y="16" /> <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="10" offsetY="0"/> <OnMouseUp> QuestTracker_LockButton_OnMouseUp(self, button, upInside) </OnMouseUp> <Textures normal="/esoui/art/miscellaneous/locked_up.dds" pressed="/esoui/art/miscellaneous/locked_down.dds" mouseOver="/esoui/art/miscellaneous/locked_over.dds" disabled="/esoui/art/ava/hookpoint_locked.dds" /> </Button> <Button name="$(parent)UnlockBtn" inherits="ZO_ButtonBehaviorClickSound" hidden="false" enabled="true"> <Dimensions x="16" y="16" /> <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="10" offsetY="0"/> <OnMouseUp> QuestTracker_UnlockButton_OnMouseUp(self, button, upInside) </OnMouseUp> <Textures normal="/esoui/art/miscellaneous/unlocked_up.dds" pressed="/esoui/art/miscellaneous/unlocked_down.dds" mouseOver="/esoui/art/miscellaneous/unlocked_over.dds" disabled="/esoui/art/ava/hookpoint_locked.dds" /> </Button> <Control name="$(parent)NavigationContainer" inherits="ZO_ScrollContainer"> <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="5" offsetY="20"/> <!-- X20 (H) / Y20 (V) -- needs to be at least 5 to allow grab for stretching.--> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="-5" offsetY="-5"/> <!-- X-10 (H) / Y-10 (V) changed X to 0 ...for auto width chngd to -5 --> <OnInitialized> ZO_Scroll_Initialize(self) </OnInitialized> </Control> <!-- <Control name="$(parent)NavigationContainer" inherits="ZO_ScrollContainerBase"> <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="20" offsetY="20"/> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="-10" offsetY="-10"/> <OnInitialized> ZO_Scroll_Initialize(self) </OnInitialized> <Controls> <Control name="$(parent)ScrollChild" resizeToFitDescendents="true"> <OnInitialized> self:SetParent(self:GetParent():GetNamedChild("Scroll")) self:SetAnchor(TOPLEFT, nil, TOPLEFT, 0, 0) </OnInitialized> </Control> </Controls> </Control> --> </Controls> </TopLevelControl> <!-- Category Header Entry ZO_TreeHeader_OnMouseUp(self:GetParent(), upInside) ZO_TreeHeader_OnMouseUp(self:GetParent(), upInside) --> <Control name="QuestTrackerCategoryNode" mouseEnabled="true" virtual="true"> <Dimensions x="500" y="32" /> <OnInitialized> QuestTracker_CategoryNode_OnInitialized(self) </OnInitialized> <OnMouseUp> self:OnMouseUp(button, upInside) </OnMouseUp> <Controls> <Texture name="$(parent)Icon" > <Anchor point="LEFT" relativePoint="LEFT" offsetX="0" /> <OnMouseUp> self:GetParent():OnMouseUp(button, upInside) </OnMouseUp> <Controls> <Texture name="$(parent)Highlight" hidden="false" blendMode="ADD"> <AnchorFill /> </Texture> </Controls> </Texture> <Label name="$(parent)Text" font="ZoFontHeader3" inherits="ZO_SelectableLabel" > <Anchor point="LEFT" relativeTo="$(parent)Icon" relativePoint="RIGHT" offsetX="0" /> <OnMouseUp> self:GetParent():OnMouseUp(button, upInside) </OnMouseUp> </Label> </Controls> </Control> <!-- Quest Node Entry --> <Label name="QuestTrackerQuestNode" inherits="ZO_SelectableLabel ZO_TooltipIfTruncatedLabel" font="ZoFontHeader" virtual="true" verticalAlignment="CENTER"> <Dimensions x="500" y="22" /> <OnInitialized> QuestTracker_QuestNode_OnInitialized(self) ZO_SelectableLabel_OnInitialized(self, QuestTracker_QuestNode_GetTextColor) </OnInitialized> <OnMouseUp> self:OnMouseUp(button, upInside) </OnMouseUp> <OnMouseEnter> self:OnMouseEnter() </OnMouseEnter> <OnMouseExit> self:OnMouseExit() </OnMouseExit> <Controls> <Texture name="$(parent)Icon" level="3" hidden="true" mouseEnabled="true"> <Dimensions x="22" y="22"/> <Anchor point="RIGHT" relativePoint="LEFT" offsetX="-2"/> <OnMouseUp> self:GetParent():OnMouseUp(button, upInside) </OnMouseUp> </Texture> </Controls> </Label> <!-- Condition Node Entry --> <Label name="QuestTrackerConditionNode" inherits="ZO_SelectableLabel" font="ZoFontHeader" virtual="true" verticalAlignment="CENTER"> <Dimensions x="500" y="32" /> <OnInitialized> ZO_SelectableLabel_OnInitialized(self, ZO_QuestJournalNavigationEntry_GetTextColor) </OnInitialized> <OnMouseEnter> self.node.parentNode:GetControl():OnMouseEnter() </OnMouseEnter> <OnMouseExit> self.node.parentNode:GetControl():OnMouseExit() </OnMouseExit> </Label> </Controls> </GuiXml> |
|
06/19/18, 05:58 AM | #6 |
No, you need the TopLevelControl itsself not the backdrop. So its name is QuestTrackerWin.
Inside the lua files there is the function named QuestTracker_QuestTree_OnInitialized Which is canned as this TopLevelControl gets created. In there you can call something like QuestTrackerWin:SetDrawTier(DT_...) and :SetDrawLayer(DL_...)e.g. |
|
06/21/18, 10:43 PM | #7 | |
Join Date: Feb 2018
Posts: 6
|
Sorry to bother you again, but I know nothing of coding and you seem to the one to ask...
I found the line in LibAddonMenu-2.0/lua in C:\Users\[USER]\Documents\Elder Scrolls Online\live\AddOns\Ravalox'QuestTracker\libs\LibAddonMenu-2.0 Code:
--INTERNAL FUNCTION --creates LAM's Addon Settings top-level window local function CreateAddonSettingsWindow() local tlw = wm:CreateTopLevelWindow("LAMAddonSettingsWindow") tlw:SetHidden(true) tlw:SetDimensions(1010, 914) -- same height as ZO_OptionsWindow ZO_ReanchorControlForLeftSidePanel(tlw) -- create black background for the window (mimic ZO_RightFootPrintBackground) local bgLeft = wm:CreateControl("$(parent)BackgroundLeft", tlw, CT_TEXTURE) bgLeft:SetTexture("EsoUI/Art/Miscellaneous/centerscreen_left.dds") bgLeft:SetDimensions(1024, 1024) bgLeft:SetAnchor(TOPLEFT, nil, TOPLEFT) bgLeft:SetDrawLayer(DL_BACKGROUND) bgLeft:SetExcludeFromResizeToFitExtents(true) local bgRight = wm:CreateControl("$(parent)BackgroundRight", tlw, CT_TEXTURE) bgRight:SetTexture("EsoUI/Art/Miscellaneous/centerscreen_right.dds") bgRight:SetDimensions(64, 1024) bgRight:SetAnchor(TOPLEFT, bgLeft, TOPRIGHT) bgRight:SetDrawLayer(DL_BACKGROUND) bgRight:SetExcludeFromResizeToFitExtents(true) -- create gray background for addon list (mimic ZO_TreeUnderlay) local underlayLeft = wm:CreateControl("$(parent)UnderlayLeft", tlw, CT_TEXTURE) underlayLeft:SetTexture("EsoUI/Art/Miscellaneous/centerscreen_indexArea_left.dds") underlayLeft:SetDimensions(256, 1024) underlayLeft:SetAnchor(TOPLEFT, bgLeft, TOPLEFT) underlayLeft:SetDrawLayer(DL_BACKGROUND) underlayLeft:SetExcludeFromResizeToFitExtents(true) local underlayRight = wm:CreateControl("$(parent)UnderlayRight", tlw, CT_TEXTURE) underlayRight:SetTexture("EsoUI/Art/Miscellaneous/centerscreen_indexArea_right.dds") underlayRight:SetDimensions(128, 1024) underlayRight:SetAnchor(TOPLEFT, underlayLeft, TOPRIGHT) underlayRight:SetDrawLayer(DL_BACKGROUND) underlayRight:SetExcludeFromResizeToFitExtents(true) -- create title bar (mimic ZO_OptionsWindow) local title = wm:CreateControl("$(parent)Title", tlw, CT_LABEL) title:SetAnchor(TOPLEFT, nil, TOPLEFT, 65, 70) title:SetFont("ZoFontWinH1") title:SetModifyTextType(MODIFY_TEXT_TYPE_UPPERCASE) local divider = wm:CreateControlFromVirtual("$(parent)Divider", tlw, "ZO_Options_Divider") divider:SetAnchor(TOPLEFT, nil, TOPLEFT, 65, 108) -- create search filter box local srchBox = CreateSearchFilterBox("$(parent)SearchFilter", tlw) srchBox:SetAnchor(TOPLEFT, nil, TOPLEFT, 63, 120) srchBox:SetDimensions(260, 30) -- create scrollable addon list local addonList = CreateAddonList("$(parent)AddonList", tlw) addonList:SetAnchor(TOPLEFT, nil, TOPLEFT, 65, 160) addonList:SetDimensions(285, 665) lam.addonList = addonList -- for easy access from elsewhere -- create container for option panels local panelContainer = wm:CreateControl("$(parent)PanelContainer", tlw, CT_CONTROL) panelContainer:SetAnchor(TOPLEFT, nil, TOPLEFT, 365, 120) panelContainer:SetDimensions(645, 675) local defaultButton = wm:CreateControlFromVirtual("$(parent)ResetToDefaultButton", tlw, "ZO_DialogButton") ZO_KeybindButtonTemplate_Setup(defaultButton, "OPTIONS_LOAD_DEFAULTS", HandleLoadDefaultsPressed, GetString(SI_OPTIONS_DEFAULTS)) defaultButton:SetAnchor(TOPLEFT, panelContainer, BOTTOMLEFT, 0, 2) lam.defaultButton = defaultButton local applyButton = wm:CreateControlFromVirtual("$(parent)ApplyButton", tlw, "ZO_DialogButton") ZO_KeybindButtonTemplate_Setup(applyButton, "OPTIONS_APPLY_CHANGES", HandleReloadUIPressed, GetString(SI_ADDON_MANAGER_RELOAD)) applyButton:SetAnchor(TOPRIGHT, panelContainer, BOTTOMRIGHT, 0, 2) applyButton:SetHidden(true) lam.applyButton = applyButton return tlw end QuestTrackerWin:SetDrawTier(DT_X) and QuestTrackerWin:SetDrawLayer(DL_X) In the Minimap.xml in the AUI addon folders there is Code:
<TopLevelControl name="AUI_Minimap_MainWindow" DrawLayer="4" clampedToScreen="true" mouseEnabled="true" hidden="true"> <Controls> <Control name="$(parent)_Map"> <Anchor point="TOPLEFT" relativeTo="AUI_Minimap_MainWindow" /> <Controls> <Texture name="$(parent)_Background" layer="1" textureFile="AUI/images/minimap/background.dds" > <AnchorFill /> </Texture> <Texture name="$(parent)_Overlay" layer="3"> <AnchorFill /> </Texture> <Texture name="$(parent)_Rotate" layer="3"> <AnchorFill /> </Texture> <Scroll name="$(parent)_Scroll" layer="1"> <AnchorFill /> <Controls> <Control name="AUI_MapContainer"></Control> </Controls> </Scroll> <Backdrop name="$(parent)Frame" tier="MEDIUM" layer="OVERLAY"> <Edge file="EsoUI/Art/WorldMap/worldmap_frame_edge.dds" edgeFileWidth="128" edgeFileHeight="16" /> <Insets left="16" top="16" right="-16" bottom="-16" /> <OnInitialized> self:SetCenterColor(0, 0, 0, 0) </OnInitialized> <Anchor point="TOPLEFT" relativeTo="$(parent)Scroll"/> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)Scroll"/> <Controls> <Texture name="$(parent)TopMunge" inherits="AUI_FrameMunge"> <Dimensions y="2"/> <Anchor point="TOPLEFT" offsetX="4"/> <Anchor point="TOPRIGHT" offsetX="-4"/> </Texture> <Texture name="$(parent)LeftMunge" inherits="AUI_FrameMunge"> <Dimensions x="2"/> <Anchor point="TOPLEFT" offsetY="4"/> <Anchor point="BOTTOMLEFT" offsetY="-4"/> </Texture> <Texture name="$(parent)RightMunge" inherits="AUI_FrameMunge"> <Dimensions x="2"/> <Anchor point="TOPRIGHT" offsetY="4"/> <Anchor point="BOTTOMRIGHT" offsetY="-4"/> </Texture> <Texture name="$(parent)BottomMunge" inherits="AUI_FrameMunge"> <Dimensions y="2"/> <Anchor point="BOTTOMLEFT" offsetX="4"/> <Anchor point="BOTTOMRIGHT" offsetX="-4"/> </Texture> </Controls> </Backdrop> </Controls> </Control> <Label name="AUI_Location_Name"></Label> <Label name="AUI_Coords"></Label> </Controls> </TopLevelControl> |
|
ESOUI » AddOns » AddOn Help/Support » AddOn Load Order/Priority |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|