Quantcast Getting an AddOn frame to hide on VehicleUI - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-10-19, 06:17 PM   #1
Wolryr
A Deviate Faerie Dragon
Join Date: Dec 2017
Posts: 16
Question Getting an AddOn frame to hide on VehicleUI

Hello everyone.

Sorry in advance if this is posted in the wrong forum.

I'm looking for a way to hide an AddOn feature, specifically, the Marks Bar from ExorsusRaidTools (that one with the skull, star marks, etc) when my character enters a vehicleUI.

The AddOn has a feature to have that bar hidden during a Pet Battle for example, in its own .lua file: MarksBar.lua

Lua Code:
  1. module.frame:SetBackdrop({bgFile = ExRT.F.barImg})
  2. module.frame:SetBackdropColor(0,0,0,0.8)
  3. module.frame:Hide()
  4. module:RegisterHideOnPetBattle(module.frame)

Since my knowledge in LUA coding is super limited right now, I'm just trying to randomly mess with the .lua file for said MarksBar without luck. Honestly, I don't really know what I'm doing... trying to copy paste pieces of the same code that worked and recreate that, but without luck:

Lua Code:
  1. module.frame:SetBackdrop({bgFile = ExRT.F.barImg})
  2. module.frame:SetBackdropColor(0,0,0,0.8)
  3. module.frame:Hide()
  4. module:RegisterHideOnVehicleUI(module.frame)

I was hoping maybe some of you guys know that AddOn or can lend me a hand. I would really appreciate it if anybody knows how to approach this kind of thing. Just to make so that bar hides itself when entering a vehicleUI and then shows right after leaving it.

(I'm talking about that vehicleUI you get during some bosses or WQ, like that one turtle World Quest from Nola, from when you shot sand out of)

I'm talking about this: https://imgur.com/v7S8mJF



Thanks!

I can upload the original LUA file if needed. I just don't know if I can attach files here, or how.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Getting an AddOn frame to hide on VehicleUI

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off