ID:705799
 
Resolved
atom.maptext can now include links. Links support the title attribute, and you can use the :hover CSS pseudo-class. (Please note :hover can only change the text color at this time.)
Applies to:DM Language
Status: Resolved (513.1490)

This issue has been resolved.
The ability to, once maptext is initialized, have certain map-text strings be click-able. Thus able to do things like call functions via Click() perhaps.
Something like this would be very useful. You could do things like link to items and quests in your chat log.
This seems like a pretty cool feature. Might be very useful.
Can't you already do this with Topic() links?
In response to Metamorphman
Metamorphman wrote:
Can't you already do this with Topic() links?

You cannot apply html links within maptext, but that would probably be the best way to handle this. Currently, any type of click on maptext is just considered a click on the atom that it is displayed on.
Seems like the natural way of doing this would be through html href tags.
In response to Falacy
Falacy wrote:
Currently, any type of click on maptext is just considered a click on the atom that it is displayed on.

No such thing happens, though I wish to hell it did.
Indeed, this would be a wonderful feature.
In response to Tom
Tom wrote:
Seems like the natural way of doing this would be through html href tags.

I know you guys are quite busy, but any chance any progress has been made on this? I'm looking for a way to make sections of maptext be clickable, sending a message to Topic procs.
For you, we'll take a look! Any particular way you think would be most useful? As I mentioned a while ago (sheesh, almost two years), it seemed like the href syntax would work, but it would probably be easier to make maptext clicks associated with the atom. That would of course be less flexible but I don't know if it solves the common usage. Maybe the href thing is easy.. I'll see.
Well, for what I was wanting to do, I'd want href tags, preferably with the ability to tag different parts of the maptext with different tags. And what the heck, while I'm asking for stuff... ;) How about the ability to set text-align for different parts of an atoms maptext?
mapTextObj.maptext = "<span style=text-align:left;><a href='?src=\ref[gameHandler];action=challenge;target=[player.name];'>Challenge</a></span> \
<span style=text-align:center;>
[player] </span> \
<span style=text-align:right><a href='?src=\ref
[gameHandler];action=message;target=[player.name]'>Message</a>.</span>"


Just a wishlist. If its not easy, I'm sure I can find another method. Well, technically I'd be using this to replace another method, so I can just go back to that ;)

Thanks for looking into it :)
Any progress on this? I want to make clickable links using href like you metioned in your post Tom.

Also is there any reason why <u> for underline doesn't work in maptext, even though links don't work I was trying to get around it and show it as a link does now with the default link color and an underline but it's not getting underlined.

After that I would've handled the rest on the atoms click event.
I'm surprised this is still Open. I requested it back in 2012 and no update.
I think it'd be kinda cool to have text that supply links through maptext
In response to Ishuri
I think this was a limitation with maptext, I don't know about the webclient tho.
In response to Ishuri
Well i know for a fact the webclient can pull it off easily. I just feel like if we're not considering DD redundant anytime soon, this would be really neat to have.
But at the same time, this is just one of those features we could live without.
In response to Ishuri
Ishuri wrote:
But at the same time, this is just one of those features we could live without.

Shhhhh, only features now..~

In response to Ishuri
I'm pretty sure there's already a feature request for this.
In response to Ishuri
Bump. Nobody got back to poor ol' Flick. :(
Page: 1 2