View Single Post
  #3  
Unread 11-28-2007, 01:08 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 Drumstix42 View Post
Is it possible to use a variable inside of a location string?


Here's an example where a visible page gets hidden when another page is shown.. I'm not sure if thats what you're trying to accomplish but I'm pretty sure this is what you're looking for:

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page Name="PageContainer" Visible="true">

<Button Name="HideActivePage" OnActivate="Activated=false" Visible="false"></Button>

<Page Name="Page1" OnShow="Parent.HideActivePage.activated=true
Parent.HideActivePage.onactivate=(&apos;Parent.&apos;)##(name)##(&apos;.visible=false Activated=false&apos;)" Visible="false"/>

<Page Name="Page2" OnShow="Parent.HideActivePage.activated=true
Parent.HideActivePage.onactivate=(&apos;Parent.&apos;)##(name)##(&apos;.visible=false Activated=false&apos;)" Visible="false"/>

</Page>
Attached Files
File Type: xml example.xml (573 Bytes, 423 views)
__________________
Talyns

Last edited by Talyns : 11-28-2007 at 01:13 PM.
Reply With Quote