Docking clearance notifications

General discussion for players of Oolite.

Moderators: another_commander, winston

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16059
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post 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?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6552
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Commander McLane wrote:
That's excellent! :D

Question: can you do the same with comm_log_gui?
Yes, you can: Image
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.
User avatar
SiriusCG
Dangerous
Dangerous
Posts: 73
Joined: Sat Mar 27, 2010 12:59 am

Post 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!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16059
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post 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.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Ganelon
---- E L I T E ----
---- E L I T E ----
Posts: 534
Joined: Fri Jul 02, 2010 11:45 am
Location: Around Rabiarce or Lasoce

Post by Ganelon »

Both solutions are highly awesome, and I can think of a lot of neat HUD/control-panel possibilities.
Sleep? Who needs sleep? Got game. No need sleep.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post 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... :P

Edit: I did a bit more testing & all seems ok at this end now! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post 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. ;)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
SiriusCG
Dangerous
Dangerous
Posts: 73
Joined: Sat Mar 27, 2010 12:59 am

Post by SiriusCG »

Very cool!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post 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. 8)
Post Reply