Page 2 of 2
Posted: Wed Oct 27, 2010 1:40 pm
by Cody
Oh yes… that is really, really cool, a_c… many thanks. I'll be having a play around with that later.
Is it best to copy the hud.plist, amend it, then drop it into the addons folder?
Posted: Wed Oct 27, 2010 1:48 pm
by another_commander
Commander McLane wrote:That's excellent!
Question: can you do the same with
comm_log_gui?
Yes, you can:
Unfortunately, there seems to be a little problem though: Until you launch first time, the comms log background remains visible in the specified position. Maybe we'll have to have a look at this.
El Viejo: Yes, best if you make a copy of hud.plist inside a folder named Config under AddOns and experiment there.
Posted: Wed Oct 27, 2010 2:06 pm
by SiriusCG
You could even design a hud with a near-transparent background in the area of your messages to simulate a HUD sub-screen.
Wonderful! Getting the message text into a HUD sub-screen is precisely what I wanted to do! Thanks again for the example and information!
Cheers!
Posted: Wed Oct 27, 2010 2:11 pm
by Cody
another_commander wrote:Good memory there Kaks, I had completely forgotten about the message_gui setting in hud.plist. Anyway, this setting offers some really good options to those who think that the messages get in the way, as it allows customization of not only initial alpha, but also things like coordinates of messages, font size and even message window dimensions. Below is an example. With this message_gui setting in the default hud.plist:
Code: Select all
message_gui =
{
width = 210;
height = 160;
x = 200;
y = -50;
row_height=12;
};
That works perfectly, straight out of the box... no tinkering needed.
Posted: Wed Oct 27, 2010 3:08 pm
by Ganelon
Both solutions are highly awesome, and I can think of a lot of neat HUD/control-panel possibilities.
Posted: Wed Oct 27, 2010 3:46 pm
by Kaks
another_commander wrote: Maybe we'll have to have a look at this.
There's something really weird going on there, considering that both comms log & message gui use the same underlying code.
Got a 'fix' already though - not thoroughly tested, but it looks it's at least 90% there already. I'm throwing caution to the wind & committing that so you can double check I've not made a booboo...
Edit: I did a bit more testing & all seems ok at this end now!
Posted: Wed Oct 27, 2010 7:43 pm
by Kaks
Commander McLane wrote:Let me ask the other way round: Would it be possible to disable the displaying of the whole log when a new comms message arrives, and limit the log display to its keypress only?
I've just added that to trunk! We''ve now got 2 extra boolean keys you can be set from inside
comm_log_gui:
automatic (defaults to YES / 1)
permanent (defaults to NO / 0)
With these two, you should be able to create even more realistic & configurable huds...
With a permanent comms log the "`" key might not feel too useful anymore: however, it does still flash the ship sending the last message, if it's in scanner range.
Posted: Wed Oct 27, 2010 9:05 pm
by SiriusCG
Very cool!
Posted: Thu Oct 28, 2010 12:38 pm
by Commander McLane
Great.
Looks like I'm going to modify my current HUD. I just don't know yet what I'm actually going to do.