[Solved] - Remove 2px border around MFD box

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
Altaira
Average
Average
Posts: 15
Joined: Wed Feb 10, 2016 8:00 am

[Solved] - Remove 2px border around MFD box

Post by Altaira »

Just like the topic title -- How can I remove the green border around the multi-functional display box without removing the text? I changed the background to alpha, but it seems I can't remove the 2px border without removing the 2px text.

I'm working in HeadUpDisplay.m.

Thanks
Last edited by Altaira on Sat Feb 13, 2016 8:25 pm, edited 1 time in total.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Remove 2px border around MFD box

Post by another_commander »

Line 3262 (current trunk), drawMultiFunctionDisplay method: [self drawSurroundInternal:info color:mfd_color];
Remove it and you should be set.
Altaira
Average
Average
Posts: 15
Joined: Wed Feb 10, 2016 8:00 am

Re: Remove 2px border around MFD box

Post by Altaira »

Perfect. Exactly what I needed.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [Solved] - Remove 2px border around MFD box

Post by Norby »

another_commander wrote:
color:mfd_color
Maybe possible to add a "bordercolor" property usable in hud.plist? In this way the alpha could hide it.
Altaira
Average
Average
Posts: 15
Joined: Wed Feb 10, 2016 8:00 am

Re: [Solved] - Remove 2px border around MFD box

Post by Altaira »

Norby wrote:
Maybe possible to add a "bordercolor" property usable in hud.plist? In this way the alpha could hide it.
'bordercolor' and 'backgroundcolor' properties -- I agree.
Post Reply