EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   <include> in a variable (https://www.eq2interface.com/forums/showthread.php?t=10434)

Drumstix42 02-24-2008 01:06 AM

<include> in a variable
 
Is is possible to use an <include> in a variable? I'm trying to save myself from a bunch of extra unnecessary code, but cannot figure out if this is possible.

Currently, if you wanted to include any kind of text, you'd put it in a Text object, and place the <include> between the <text></text> tags.

I'm looking to do something like this:

Code:

<Button fileText="<include>directory/file.txt</include>" property="blah" size="blah" OnPress="Page.Text=fileText">Click this button</Button>
Obviously with the quotes, all I get is plain text, and nothing included. I tried using &quot; and single quotes (no luck). Not too sure what else I could try offhand.

Wishful thinking?

gm9 02-24-2008 05:39 AM

Why not just <include> the entire button? ;)

Drumstix42 02-24-2008 03:22 PM

True. But I was going to use this for the updated InfoCenter I'm working on. Wanted to try to keep the xml and the txt files seperate.

gm9 02-24-2008 05:05 PM

You can always do the <text></text> include and point the script on your button to the text object.

Drumstix42 02-24-2008 05:15 PM

Yeah, it looks like the only route I can go by for now. It's better, IMO, than having lots of pages, and hiding/showing them.

This does give me an interesting idea of putting all the <text> includes all in one file, since they're just gonna pose as variables themselves. Hmmm nifty :)


All times are GMT -5. The time now is 05:43 PM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI