WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   viewing wow code (https://www.wowinterface.com/forums/showthread.php?t=55762)

bluesh34 09-25-17 03:43 AM

viewing wow code
 
I want to take a look at the code for WoW's FocusUnit() function. Is this possible and if so, how?

jeffy162 09-25-17 04:30 AM

You can get WoW's Lua and XML files directly from the game. That should give you a start. Unfortunately, I can not explain to you how this is done. Hopefully someone will chime in here with the information. :o

EDIT: OK, after a little searching I managed to find it.

https://wow.gamepedia.com/Viewing_Bl...interface_code

myrroddin 09-25-17 09:13 AM

Towlong-Yak has a current version extracted to a website. While I am told it is incomplete, I have no idea what is missing as it looks all there.

https://www.townlong-yak.com/framexml/live

p3lim 09-25-17 09:24 AM

The AddOn system is split up in two parts, one part is the FrameXML and our addons, the other part is exposed to the FrameXML by the game itself.
We have access to the former, the latter is closed-source.

Bad news for you, FocusUnit is in the latter.

bluesh34 09-25-17 01:01 PM

Many thanks guys.

Quote:

Originally Posted by p3lim (Post 325270)
The AddOn system is split up in two parts, one part is the FrameXML and our addons, the other part is exposed to the FrameXML by the game itself.
We have access to the former, the latter is closed-source.

Bad news for you, FocusUnit is in the latter.

Actually it's good news: saves me the work of trying to make an addon :banana:

Tosaido 09-25-17 10:07 PM

There is a handy GitHub repository that gets updates all the time with wow interface files. Even PTR versions https://github.com/tomrus88/Blizzard...ster/Interface

bluesh34 09-26-17 01:22 AM

Quote:

Originally Posted by Tosaido (Post 325289)
There is a handy GitHub repository that gets updates all the time with wow interface files. Even PTR versions https://github.com/tomrus88/Blizzard...ster/Interface

Ok thanks, but just to check that what was said above is correct, it won't be possible to view the code for FocusUnit(), right?

Fizzlemizz 09-26-17 01:25 AM

It will show how you can use FocusUnit(), not the code that makes up the FocusUnit function... or how you can write your own.. or how to circumvent etc..

Tosaido 09-26-17 03:06 AM

On that site I linked, if you paste FocusUnit for example into the text box in the header it will show which files include that string. In this case with FocusUnit, you cannot find the actual function, only when it's called. So it must be a protected, hidden function which will most likely be intertwined with important core code that cannot be accessed.

jeffy162 09-26-17 07:50 AM

Quote:

Originally Posted by p3lim (Post 325270)
The AddOn system is split up in two parts, one part is the FrameXML and our addons, the other part is exposed to the FrameXML by the game itself.
We have access to the former, the latter is closed-source.

Bad news for you, FocusUnit is in the latter.

So.......... It's like p3lim said, I guess.

Sorry, I just couldn't help myself. :o

bluesh34 09-27-17 01:26 AM

Quote:

Originally Posted by jeffy162 (Post 325295)
So.......... It's like p3lim said, I guess.

Sorry, I just couldn't help myself. :o

Well people don't always agree and since they gave new information after the reply from p3lim, I thought it would be worth clarifying the reason for the posting of this new information. It doesn't mean I doubted p3lim.

jeffy162 09-27-17 09:00 AM

Yaeh, I know. Like I said, though, I just couldn't help myself. I had to be an ....... @$$whole (yes, I know it's spelled without the "w", but when you are one all over.....). :o


All times are GMT -6. The time now is 09:49 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI