Showing results 1 to 25 of 57
Search took 0.00 seconds.
Search: Posts Made By: Krainz
Forum: Lua/XML Help 01-09-21, 07:18 PM
Replies: 2
Views: 2,366
Posted By Krainz
Using one AddOn to change another AddOn's variables?

Hello again,

The GW2UI addon has the following variables

local TRACKER_TYPE_COLOR = {}
GW.TRACKER_TYPE_COLOR = TRACKER_TYPE_COLOR
TRACKER_TYPE_COLOR["QUEST"] = {r = 221 / 255, g = 198 / 255, b = 68...
Forum: Lua/XML Help 12-24-20, 04:52 PM
Replies: 3
Views: 2,812
Posted By Krainz
Hmmm the frame doesn't show up in my screen with...

Hmmm the frame doesn't show up in my screen with that SetPoint

If I put a
f:SetPoint("CENTER")


it works just fine, but of course I don't want it in the center of my screen.

I tried adding
Forum: Lua/XML Help 12-24-20, 01:27 PM
Replies: 3
Views: 2,812
Posted By Krainz
SetScript OnMouseDown for a clickable text-only Frame?

Hello, I'm tinkering with this code to make a clickable "Great Vault" text that opens the Weekly Vault

However, when I click the text, the OnMouseDown script doesn't happen. What am I doing...
Forum: Lua/XML Help 12-20-20, 06:10 PM
Replies: 3
Views: 3,110
Posted By Krainz
Using SetNormalTexture instead of SetTexture...

Using SetNormalTexture instead of SetTexture worked, thanks!
Forum: Lua/XML Help 12-20-20, 05:26 PM
Replies: 3
Views: 3,110
Posted By Krainz
This is the error I'm getting:

This is the error I'm getting:
Forum: Lua/XML Help 12-18-20, 01:55 PM
Replies: 3
Views: 3,110
Posted By Krainz
Using SetTexture to change the texture of a frame created by another addon?

GwGarrisonButton is a frame created by GW2 UI

The goal with that code is to change gwbutton's texture to another one.

If I get it to work I'll start employing the same to other...
Forum: Lua/XML Help 12-18-20, 01:49 PM
Replies: 7
Views: 4,339
Posted By Krainz
Thank you so much!

Thank you so much!
Forum: Lua/XML Help 12-17-20, 11:11 AM
Replies: 7
Views: 4,339
Posted By Krainz
Thanks, I'll look into that!

Thanks, I'll look into that!
Forum: Lua/XML Help 12-17-20, 10:19 AM
Replies: 7
Views: 4,339
Posted By Krainz
So if it's a list of 15 entries, then I should...

So if it's a list of 15 entries, then I should use


print(SongList[math.random(15SongList)]);

?

Or am I overthinking it and #SongList is fine as it is?
Forum: Lua/XML Help 12-17-20, 09:30 AM
Replies: 7
Views: 4,339
Posted By Krainz
Picking a random entry out of a table/list?

I have this code in a weakaura that plays music during combat when bloodlust is cast:

local G = 0
G = GetCVar("Sound_EnableMusic")
SetCVar("Sound_EnableMusic", 0)


if UnitExists("boss1") then

...
Forum: Lua/XML Help 12-17-20, 09:06 AM
Replies: 3
Views: 7,941
Posted By Krainz
Thank you!

Thank you!
Forum: Lua/XML Help 12-15-20, 07:33 PM
Replies: 10
Views: 5,865
Posted By Krainz
It worked!!!!!!!! Thanks!

It worked!!!!!!!! Thanks!
Forum: Lua/XML Help 12-15-20, 06:43 AM
Replies: 10
Views: 5,865
Posted By Krainz
Yeah I used a XML file because the wowwiki...

Yeah I used a XML file because the wowwiki article (https://wowwiki.fandom.com/wiki/Using_OnUpdate_correctly) instructed to...

So I shouldn't use XML files when I'm not creating actually graphical...
Forum: Lua/XML Help 12-14-20, 09:05 PM
Replies: 10
Views: 5,865
Posted By Krainz
I tried replacing core.xml to all of the...

I tried replacing core.xml to all of the following

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Forum: Lua/XML Help 12-14-20, 06:00 PM
Replies: 10
Views: 5,865
Posted By Krainz
not well-formed error and OnUpdate script not working. Help?

This is the TOC:

UIMod.toc
## Interface: 40200
## Title: UI Modifier
## Notes: Modifies other addons that change the UI
## Author: Krainz
## Version: 1.0

core.xml
Forum: Lua/XML Help 12-14-20, 06:24 AM
Replies: 3
Views: 7,941
Posted By Krainz
PLAYER_LOGIN vs PLAYER_ENTERING_WORLD?

I'm writing a code that changes the textures and positions of other frames created by other addons, and I'm learning how to handle events better

I've come upon the PLAYER_LOGIN and...
Forum: Lua/XML Help 12-13-20, 02:28 PM
Replies: 4
Views: 2,631
Posted By Krainz
Oh, thanks for that explanation! It will make it...

Oh, thanks for that explanation! It will make it much easier for me to understand what's going on

--

Is it possible to make something happen whenever a local function from another addon...
Forum: Lua/XML Help 12-13-20, 10:53 AM
Replies: 4
Views: 2,631
Posted By Krainz
One addon modifying another?

I need to make my own addon that modifies a few others so that I don't have to modify their files every time they have an update.

So I went to look into how GW2 UI interacts with the Immersion...
Forum: Lua/XML Help 12-12-20, 01:08 PM
Replies: 11
Views: 5,804
Posted By Krainz
I think I got something to work! I was testing...

I think I got something to work!

I was testing in-game and wrote this

/script local covenantID=C_Covenants.GetActiveCovenantID(); print(covenantID);

The game returned me the value 4, which should...
Forum: Lua/XML Help 12-12-20, 09:07 AM
Replies: 11
Views: 5,804
Posted By Krainz
Is it possible to use...

Is it possible to use C_Covenants.GetActiveCovenantID in the local function LoadMinimap() ?

If not then how do I use it?
Forum: Lua/XML Help 12-12-20, 08:35 AM
Replies: 11
Views: 5,804
Posted By Krainz
I'm trying to debug this so I can learn how to...

I'm trying to debug this so I can learn how to handle an event properly

I put the covenant event handler within a code that disables spell activation overlay just to see how it works

local addon,...
Forum: Lua/XML Help 12-12-20, 05:46 AM
Replies: 11
Views: 5,804
Posted By Krainz
Since that is an event, doesn't it only happen...

Since that is an event, doesn't it only happen when the player chooses a covenant? Or is it an event that happens all the time?
Forum: Lua/XML Help 12-11-20, 03:39 PM
Replies: 11
Views: 5,804
Posted By Krainz
How do I make that reference the player? if not...

How do I make that reference the player?

if not playerunit.COVENANT_CHOSEN:0 then

Like this?
Forum: Lua/XML Help 12-11-20, 09:11 AM
Replies: 11
Views: 5,804
Posted By Krainz
Condition for when the player has joined a covenant?

I want to do the following if the player hasn't joined a covenant:


local function LoadMinimap()

if not player.has.covenant then
GarrisonLandingPageMinimapButton:ClearAllPoints()
...
Forum: General Authoring Discussion 11-29-20, 03:56 AM
Replies: 0
Views: 2,875
Posted By Krainz
How do I make a button text color change only while highlighted by mouseover?

There's an addon applying a SetHighlightTexture to buttons while the buttons are highlighted by mouseover, but that texture would look better if the button's text color also changed to black.

The...
Showing results 1 to 25 of 57