EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-08-2010, 07:22 AM
chriswebstar chriswebstar is offline
A Griffawn
 
Join Date: Oct 2008
Server: Runnyeye
Posts: 74
Default Monitoring AFK status

Hey,

I just recently started looking into all this XML soup, and I'm barely wrapping my head around it. While adding one of those useless features you tend to add to "try things out to learn", I added a checkbox to set myself afk to the chat window. It works fine. I can click it to set myself afk and click it again to set me back. What I was wondering, is whether I can "monitor" the AFK status, and have the checkbox go "set" if I go inactive (auto-afk), or if I "forget" to use the checkbox and do a good old /afk instead.

Last edited by chriswebstar : 03-08-2010 at 08:22 AM. Reason: Typo
Reply With Quote
  #2  
Unread 03-08-2010, 08:15 AM
Mistal Mistal is offline
Premium Member
Premium Member
Interface Author - Click to view interfaces
 
Join Date: Sep 2007
Server: Everfrost
Posts: 59
Default Hello

Hi

I'm very new to this like you and finding a couple of things like wading through treacle wearing flippers

I'm also doing one of those learning projects, Although I can't help you with your request just thought I would say hi from one soup bowl to another
Reply With Quote
  #3  
Unread 03-08-2010, 09:34 AM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

If you add the xml attribute, DynamicData="/GameData.Self.AFK" to your checkbox, it should work.

At least that's how the persona window appears to do it.

Code:
<Checkbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" DynamicData="/GameData.Self.AFK" Location="10,70" MinimumSize="22,22" Name="AFK" OnPress="afk" PackSize="a" ScrollExtent="318,22" Size="318,22" Style="/CommonElements.Checkbox.data.style" Tooltip=":42aee84249f893dd:When checked other players will see you as being away.  Incoming messages will be automatically replied to with a message saying you are away.">:42aee8420c83ee2c:Away From Keyboard</Checkbox>
Reply With Quote
  #4  
Unread 03-08-2010, 10:14 AM
chriswebstar chriswebstar is offline
A Griffawn
 
Join Date: Oct 2008
Server: Runnyeye
Posts: 74
Default

Thanks, Aditu, that worked great.

On a different page... The colors of the checkbox are controlled by the style, right? I'd like to turn it red somehow...
Reply With Quote
  #5  
Unread 03-08-2010, 11:48 AM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

I don't believe there is a way to tint something. I think you would have to create a new checkbox style with a new DDS that's tinted correctly.
Reply With Quote
  #6  
Unread 03-08-2010, 12:38 PM
chriswebstar chriswebstar is offline
A Griffawn
 
Join Date: Oct 2008
Server: Runnyeye
Posts: 74
Default

Actually, I found that, at least for check boxes, setting "color" to a hex color works just fine. It tints the whole thing, not just the check mark (which is what I originally wanted). I presume that to tint only the check mark instead of the whole widget, I'd have to do what you said.
Reply With Quote
  #7  
Unread 03-08-2010, 04:05 PM
chriswebstar chriswebstar is offline
A Griffawn
 
Join Date: Oct 2008
Server: Runnyeye
Posts: 74
Default

Quote:
Originally Posted by EQAditu View Post
If you add the xml attribute, DynamicData="/GameData.Self.AFK"
Actually, is there a reference of Dynamic Data stuff somewhere?
Reply With Quote
  #8  
Unread 03-08-2010, 04:06 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Yeah, I think the only other way to do it, is set something (like a graphic) with the same dynamicdata, but use the DynamicDataFilter and filter only the Visible aspect (I think 0001) so that the graphic only displays when the dynamicdata is set to "true" or "visible".

Some things work well some don't, so it's all in the experimentation. Styling the checkbox would probably be easier
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #9  
Unread 03-08-2010, 04:44 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

Quote:
Originally Posted by chriswebstar View Post
Actually, is there a reference of Dynamic Data stuff somewhere?
UI\Default\eq2ui_gamedata.xml

The command /dynamicdata will also spit out any text value associated with that dynamic data while in-game.

I'm not sure if /dynamicdata Self.AFK would give anything or not. Maybe "true" or "false".
Reply With Quote
  #10  
Unread 03-08-2010, 06:08 PM
chriswebstar chriswebstar is offline
A Griffawn
 
Join Date: Oct 2008
Server: Runnyeye
Posts: 74
Default

Okay, next random question, although I'm pretty sure this one deserves it's own topic of sorts.

If I want to store variations of a window, per window instance, the only way to do so is by attaching them to the Frame & Titlebar dropdown thingy, right? I'm guessing you do these by attaching onShow and onHide events to pages with a certain name so they respond to when you change the dropdown. Any hints at what these page names would be? Maybe WC_Title and WC_Frame or something?
Reply With Quote
  #11  
Unread 03-08-2010, 07:15 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Yeah, you have to put in elements with those names (and take out the WindowFrame page I believe). It's the way the old windows used to be coded out. The updated windows all just have the WindowFrame page, but if you modify that, then it doesn't seem to work when changing states from in-game.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
Reply



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
Forum Jump


All times are GMT -5. The time now is 05:31 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI