matoom / frostbite

MUD client for dragonrealms.
29 stars 17 forks source link

Add "Hyperlink" functionality to Frostbite #4

Open ohbeanz opened 7 years ago

ohbeanz commented 7 years ago

Similarly to how Stormfront handles, "click to move" and "click to interact" with several items/directions within their main game window. This seems like a bigger task, but just wanted to toss it here as a 'nice to have' to work on when I get a chance.

matoom commented 7 years ago

Yes, i believe i looked into it a while back, it would be really convenient to use on my mac laptop because it doesn't have a numpad but i don't think there was a good or easy way to set it up with QT (last time i checked).

ohbeanz commented 7 years ago

Yeah, I've been looking at this as well... setting up hyperlinks in the game window -- not sure if that's really possible. Could possibly change gameText to be a list of custom objects (that extend the QLabel). Or maybe, there's an easy way to add events/delegate to mouse-clicks on a string -- from my (brief) search, it didn't look like this was possible though. The conundrum is 'interactable' text -- sounds like it would be so easy for a GUI application IDE.

matoom commented 7 years ago

Now that you mentioned labels, i think i did try to port it over to use this rich text container at one time but that only resulted in a pretty noticeable performance drop. That's also something to consider.

You're right though, it does sound like something that should be easy to do but that's the down side of QT, there's still a lot of basic functions they have yet to implement. Sure, it's all open and everything is possible but i'm not prepared to go into too much detail over something like this.

igroglaz commented 6 years ago

It would be awesome to have links :+1:

fourier commented 2 years ago

I think it is implemented now in 1.13.1b, please verify @igroglaz @ohbeanz