Skip to content

Commit 377e79d

Browse files
committed
Fixed 'BodyName' readout.
1 parent 35e41b6 commit 377e79d

File tree

1 file changed

+19
-35
lines changed

1 file changed

+19
-35
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,35 @@
1-
//
2-
// Kerbal Engineer Redux
3-
//
4-
// Copyright (C) 2014 CYBUTEK
5-
//
6-
// This program is free software: you can redistribute it and/or modify
7-
// it under the terms of the GNU General Public License as published by
8-
// the Free Software Foundation, either version 3 of the License, or
9-
// (at your option) any later version.
10-
//
11-
// This program is distributed in the hope that it will be useful,
12-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
// GNU General Public License for more details.
15-
//
16-
// You should have received a copy of the GNU General Public License
17-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
//
19-
20-
#region Using Directives
1+
// Kerbal Engineer Redux
2+
//
3+
// Copyright (C) 2014 CYBUTEK
4+
//
5+
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU
6+
// General Public License as published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
// even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
// General Public License for more details.
12+
//
13+
// You should have received a copy of the GNU General Public License along with this program. If not,
14+
// see <http://www.gnu.org/licenses/>.
2115

2216
using KerbalEngineer.Flight.Sections;
2317

24-
#endregion
25-
2618
namespace KerbalEngineer.Flight.Readouts.Body
2719
{
2820
public class BodyName : ReadoutModule
2921
{
30-
#region Constructors
31-
3222
public BodyName()
3323
{
34-
this.Name = "Current Body Name";
35-
this.Category = ReadoutCategory.GetCategory("Body");
36-
this.HelpString = "Shows the name of the current body.";
37-
this.IsDefault = false;
24+
Name = "Current Body Name";
25+
Category = ReadoutCategory.GetCategory("Body");
26+
HelpString = "Shows the name of the current body.";
27+
IsDefault = false;
3828
}
3929

40-
#endregion
41-
42-
#region Methods: public
43-
4430
public override void Draw(SectionModule section)
4531
{
46-
this.DrawLine(FlightGlobals.ActiveVessel.mainBody.theName, section.IsHud);
32+
DrawLine(FlightGlobals.ActiveVessel.mainBody.bodyName, section.IsHud);
4733
}
48-
49-
#endregion
5034
}
5135
}

0 commit comments

Comments
 (0)