Quantcast Not parsing Target Name - EQ2Interface
EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-28-2016, 06:35 PM
aseop aseop is offline
A Forest Scavenger
Interface Author - Click to view interfaces
 
Join Date: Feb 2005
Server: Antonia Bayle
Posts: 18
Default Not parsing Target Name

So,

I need to experiment more but I am confused. When a variable mapped to the target name is used as the first command in a list of commands performed in an onpress... it works. However, when the same command and variable is in middle of the commands... nothing... no error, none of the commands are executed. Here is an example of where it does not work:

Code:
<Composite Size="230,40" Alignment="Center" Orientation="Horizontal" PackLocation="LEFT,TOP" PackSize="a,f" SpacingType="Fill">
                         <Checkbox Location="10,10" Name="stanza002Check" OnSet="parent.stanza002Tip.TextColor=#FF0000" OnUnset="parent.stanza002Tip.TextColor=#FFFFFF" PackLocation="fff" PackSize="f,f" ScrollExtent="25,40" Size="25,40" MinimumSize="25,40" MaximumSize="25,40" Style="/CommonElements.Checkbox.data.style" Tooltip="Mark/Ubmark" BackgroundOpacity="1.000" />
                         <Button Name="stanza002" OnPress="
                         do_file_commands song000stanza002A.DOS
                         do_file_commands song000stanza002B.DOS
                         Emote reaching out and barely caressing Parent.Parent.Parent.Parent.TNAME.text cheek
                         do_file_commands song000stanza002D.DOS
                         do_file_commands song000stanza002E.DOS
                         parent.stanza002Check.Checked=true
                         parent.stanza002Tip.TextColor=#FF0000
                         " ScrollExtent="160,40" Size="160,40" MinimumSize="160,40" MaximumSize="160,40" Style="/CommonElements.LargePushButton.data.style" TextVerticalAlignment="Center" TextMaxLines="1" ToolTip="3">3</Button>
                         <Text Font="/Fonts.SegoeUI20" Name="stanza002Tip" ScrollExtent="100,40" Size="100,40" TextColor="#FFFFFF" TextAlignment="Left"  TextAlignmentVertical="Center" Margin="10,0,10,4" MaxLines="1"> stepping off the stage and moving through the audience.</Text>
                    </Composite>
Any ideas? I am uncertain if I could create the whole set of commands as a single variable or not...

Aseop
Reply With Quote
  #2  
Unread 03-28-2016, 07:28 PM
Darqwood's Avatar
Darqwood Darqwood is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Aug 2005
Server: Antonia Bayle
Posts: 286
Default

You may get better results with the TNAME part if you do a little setup. I don't use do_file_commands so I'm not sure how they affect the command stack, but try the following (untested):


Code:
<Button Name="stanza002" OnPress="
myEmote=('reaching out and barely caressing ')##(Parent.Parent.Parent.Parent.TNAME.text)##(' cheek')
do_file_commands song000stanza002A.DOS
do_file_commands song000stanza002B.DOS
Emote myEmote
do_file_commands song000stanza002D.DOS
do_file_commands song000stanza002E.DOS
parent.stanza002Check.Checked=true
parent.stanza002Tip.TextColor=#FF0000
" ScrollExtent="160.....
.
Reply With Quote
  #3  
Unread 03-28-2016, 08:31 PM
aseop aseop is offline
A Forest Scavenger
Interface Author - Click to view interfaces
 
Join Date: Feb 2005
Server: Antonia Bayle
Posts: 18
Default

Can I extract that MyEmote= to a variable in the button itself instead of in onpress? Thanks for the reply, this actually helps me figure out variables a bit more...

Aseop
Reply With Quote
  #4  
Unread 03-29-2016, 08:20 AM
Darqwood's Avatar
Darqwood Darqwood is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Aug 2005
Server: Antonia Bayle
Posts: 286
Default

You can preload the variable as long as you have an event (OnShow, OnPress, OnMove, etc.) to handle it.


Code:
  
<Button Name="Button1" OnPress="
Parent.stanza002.myEmote=('reaching out and barely caressing ')##(Parent.Parent.Parent.Parent.TNAME.text)##(' cheek')
" ScrollExtent="160... ... />



<Button myEmote=" " Name="stanza002" OnPress="
do_file_commands song000stanza002A.DOS
do_file_commands song000stanza002B.DOS
Emote myEmote
do_file_commands song000stanza002D.DOS
do_file_commands song000stanza002E.DOS
parent.stanza002Check.Checked=true
parent.stanza002Tip.TextColor=#FF0000
" ScrollExtent="160... ... />

.
Reply With Quote
  #5  
Unread 03-29-2016, 08:05 PM
aseop aseop is offline
A Forest Scavenger
Interface Author - Click to view interfaces
 
Join Date: Feb 2005
Server: Antonia Bayle
Posts: 18
Default

I am not sure I get that last but will play with it. I have actually pinpointed the issue to use of quotes which I think you suggestion should help with (as well as an old post by drums).

Also accidentally discovered that %t in a file used for do_file_commands sort of works. It acts like %s and it does not care about the targets actual sex is (random it, he, she), but it sort of works. More than I can say for the other % shortcuts. Wondering if it will work like that if embedded directly in an onpress.

Thanks Darq,

aseop

Last edited by aseop : 03-29-2016 at 08:48 PM.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

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


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


Our Network
EQInterface | EQ2Interface | War.MMOUI | WoWInterface | VGInterface | LoTROInterface | MMOInterface