EQ2Interface.com
Search Downloads


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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-10-2005, 07:53 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default How to Reference Names with Space?

The bag window uses spaces in all the slot names ('Slot 10' for example). Anyone know how I can set values/trigger events on those objects with spaces in their names?

I can't change the object names without breaking bag behavior :/

References I've tried...
parent.slot 10
parent.'slot 10'
parent.(slot 10)
parent.[slot 10]
parent.{slot 10}
parent.slot~10
parent.slot`10
parent.slot@10
parent.slot#10
parent.slot$10
parent.slot%10
parent.slot^10
parent.slot&10
parent.slot*10
parent.slot(10
parent.slot)10
parent.slot_10
parent.slot{10
parent.slot}10
parent.slot\10
parent.slot|10
parent.slot:10
parent.slot;10
parent.slot/ 10
parent.slot\ 10
parent.slot%2010
Reply With Quote
  #2  
Unread 03-10-2005, 08:17 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

Quote:
Originally Posted by Zonx
The bag window uses spaces in all the slot names ('Slot 10' for example). Anyone know how I can set values/trigger events on those objects with spaces in their names?

I can't change the object names without breaking bag behavior :/

References I've tried...
parent.slot 10
parent.'slot 10'
parent.(slot 10)
parent.[slot 10]
parent.{slot 10}
parent.slot~10
parent.slot`10
parent.slot@10
parent.slot#10
parent.slot$10
parent.slot%10
parent.slot^10
parent.slot&10
parent.slot*10
parent.slot(10
parent.slot)10
parent.slot_10
parent.slot{10
parent.slot}10
parent.slot\10
parent.slot|10
parent.slot:10
parent.slot;10
parent.slot/ 10
parent.slot\ 10
parent.slot%2010
If you want to manipulate say the visible property of slot 10 it would be
'Parent.Slot 10.Visible'=true
__________________
Talyns
Reply With Quote
  #3  
Unread 03-11-2005, 06:18 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Hmm... prety sure I tried that and it ignored everything befor the space. Anyways I got around it.

I'll try the quotes again. Could be I just THOUGHT I tried it cause its so obvious.
Reply With Quote
  #4  
Unread 03-13-2005, 09:24 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Yep color me dum, the quotes worked fine.

Thx T
Reply With Quote
  #5  
Unread 03-13-2005, 09:46 AM
Kosmos's Avatar
Kosmos Kosmos is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Lucan DLere
Posts: 581
Default

While your working with this mod you might want to consider an idea if you haev not already done so.

If you use standard labels for these bags, it seems to me that it would be possible to include a button on the bank window that would open all bank bags.

From the list there is
bag_open (may take the label after the command)

there is also
get_bag_label (might return the value if the bag selected, or move the bag from bank to inventory?) not sure on syntax

label_bag (probably sets the bag label)

I thought those might help if you hadn't alread found them.
It would be very useful to be able to toggle bank bags.
seems it might be possible to do the open_bag <bag_label> type command and get it to open whatever bag you are addressing. ??
You could just repeat the command for each of the standard bag labels.
Reply With Quote
  #6  
Unread 03-13-2005, 11:21 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Aye, the stupid spaces stumped me when I messed with the bank window previously. I'll look at it again. I suspect it'll be much easier now. Prety sure all that's needed is a button that sets Press=true for each slot

get_bag_label probably returns the player defined bag name (they call it a label in game). label_bag I assume sets the bag label.

I have not yet found a way to target specific bag windows or examine windows from other windows but we can activate slots

Last edited by Zonx : 03-13-2005 at 11:26 AM.
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 09:29 AM.


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