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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue May 31, 2011 11:15 pm   

[3.34pro]bugs with MXP <dest> tag
 
1)when using a strikethrough tag in conjunction with <dest>, the strikethrough effect starts at x=1 instead of the specified x value in the dest tag. The order of the tags doesn't seem to matter (<dest><s> = <s><dest>).

Quote:

#mxp <dest Aardwolf x=5<s>fred</s></dest>


EDIT: this seems to be the case for the <SEND> tag as well, with regards.
EDIT2: while the above is certainly true for the first dest use on the line, subsequent use on the same line seems to only apply the effect starting at the dest's x value instead of starting at the x value relative to the opening tag (for example, if you made the "e" in "fred" a send link, the letters "fr" would be included in the clickable link as well.)

2)not specifying a y value in dest will append result to window, but the next line of text (user-generated such as a command or #PRINT as well as incoming text from the MUD) will overwrite it.

looked

The part in bold is in strikethrough, it's part of the test string from #1; the "look" is from the KEY5 macro that sends the LOOK command to the game.
_________________
EDIT: I didn't like my old signature
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Wed Jun 01, 2011 2:04 am   
 
I wasn't able to see the strikethrough using the #MXP tag. However, using the #WINDOW command shows the problem clearly:
Code:

#WINDOW Aardwolf {ESC[5;1H<s>fred</s>}

The string "fred" is positioned correctly at column 5 but the strikethrough begins at column 1.
Code:

#WINDOW Aardwolf {ESC[5;1H<send>fred</send>}

As MattLofton stated, the underline indicating a clickable string begins at column 1, not 5.

As an additional test, I tried a manual underline:
Code:

#WINDOW Aardwolf {ESC[5;1HESC[4;37mfredESC[0m}

Again, the underline began at column 1 and not 5.

What seems to be happening is that the positioning sequence is only looked at to set the string's location. When the modifer(s) is/are encountered, the positioning sequence is ignored, though then right boundary, marked by the end of the string, is respected.
_________________
Sic itur ad astra.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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