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/>.
21
15
22
16
using KerbalEngineer . Flight . Sections ;
23
17
24
- #endregion
25
-
26
18
namespace KerbalEngineer . Flight . Readouts . Body
27
19
{
28
20
public class BodyName : ReadoutModule
29
21
{
30
- #region Constructors
31
-
32
22
public BodyName ( )
33
23
{
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 ;
38
28
}
39
29
40
- #endregion
41
-
42
- #region Methods: public
43
-
44
30
public override void Draw ( SectionModule section )
45
31
{
46
- this . DrawLine ( FlightGlobals . ActiveVessel . mainBody . theName , section . IsHud ) ;
32
+ DrawLine ( FlightGlobals . ActiveVessel . mainBody . bodyName , section . IsHud ) ;
47
33
}
48
-
49
- #endregion
50
34
}
51
35
}
0 commit comments