Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Wed Aug 06, 2008 1:18 pm   

[2.35] Button layouts lost in XML output.
 
When you use exported XML that contains buttons then the layout may not be the same as it was in the exported session.

1. Create a new session.
2. Create two buttons, the first one with a caption 'Left', the second 'Right'
3. Notice the left is on the left, the right on the right, as it should be.
4. Go to the session XML, copy it.
5. Create a new session, go to new session XML, paste in the previously copied text.
6. Notice the left button is on the right and the right is on the left.

I know that it's possible to lay things out by specifying XY coords for everything but I'd think that any copy/pasted XML should look identical across sessions?
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Aug 07, 2008 2:47 am   
 
Buttons that use Auto Position are created in order of their Priority property. So check to make sure that property is in the XML export. You could also post the XML within CODE tags here for us to look at and try.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Thu Aug 07, 2008 7:22 pm   
 
No priorities mentioned when exporting

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<window name="test" width="1920" height="1032" usesession="false">
  <uid>{6647960A-8AC9-41EB-89AD-EDEF79FC4C8E}</uid>
  <packages>Clickable URLs|test</packages>
  <button>
    <caption>left</caption>
  </button>
  <button>
    <caption>right</caption>
  </button>
</window>
</cmud>
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Aug 11, 2008 5:13 pm   
 
That would explain it. I'll add that to the bug list so that the priority values are added to the xml export.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net