matoom/frostbite

OOC Window

Opened this issue · 3 comments

I was looking at creating an OOC window with the script you posted in #59 (comment) and I was successful in creating it, but I realized that it won't pick up info from the XML stream this way.

After looking through the code a little I see that it's going to need to have a .cpp and .h file in the gui/window section and also get some lines added to the xml parser file so that it pushes the correct info there. It probably needs more than this, but this is what I saw with a quick look.

I'm still not familiar enough with the code or the language to attempt this myself or I'd make a pull request.

Any chance you could add this?

There's a few other changes that are necessary but more or less new window classes and xml parsing which is already there, only right now ooc messages are being pushed into story window instead.

The best example would be the recently added group window:
caa57a5

You're right, scripts can't capture anything that's not visible on the screen. It's modeled to function roughly the same way as stormfront put/match works. I'm pretty sure lich can access those messages but i don't know lich scripting well enough to give you any examples.

The reason why ooc window wasn't originally added is because i wanted to keep all the non-essential windows from over bloating the ui. Although honestly, there's not that many windows left that haven't been added. Is it really that useful to have though? As far as i know all the conversations are already duplicated in the conversation window and aside from that i only know of a couple of other use cases (random, tweets).

I agree about the window bloat. The reason I want this window is because of the recent fest. They tweeted regularly about merchants, alteration sessions, and other events. It's not a window I'd have open all the time, but during events like this it would be useful.

I checked stormfront to see which windows are not implemented and came up with this list.

  • my inventory
  • friends and enemies
  • assess
  • whispers
  • talk
  • ooc
  • chatter

Most of these aren't useful or are already duplicated with the conversation window (talk, whispers). The only one I can personally see any use for is OOC. This isn't an urgent request at all so I'll work on creating a pull request for it based on the one you linked. I don't have the dev environment setup to test it though. Hopefully I can get it 99% of the way there.

Thanks again for the speedy responses and adding requested features!

Ok, that makes sense. I wasn't there during the last fest but come to think of it there's been certain periods where tweets were more active than usual. I just don't use twitter so i didn't pay much attention to it i suppose.

It might be a little tricky if you don't have a dev setup but if you want to give it a try go ahead. Let me know if run into any issues.