Skip to content

Commit ea90ae8

Browse files
committed
Merge branch 'release/1.3.0'
2 parents b4131d0 + 2a0a108 commit ea90ae8

File tree

6 files changed

+92
-63
lines changed

6 files changed

+92
-63
lines changed

CHANGES.md

Lines changed: 61 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,61 @@
1-
## v1.2.0
2-
##### New
3-
- Add `defaultControlMode`, `defaultVabControlMode`, `defaultSphControlMode` configuration settings to control default
4-
control mode used for various situations.
5-
6-
## v1.1.0
7-
##### New
8-
- Add `KSPAssembly` attribute to assembly.
9-
10-
##### Changes
11-
- `PLANEMODE_USER_SETTINGS` is deprecated (although still supported), a Module Manager patch should now be used to
12-
modify settings. An example patch is distributed in the `PlaneMode/Configuration` directory.
13-
- Clarified log message that made it appeared as if code was being executed more times than it was.
14-
- Simplified the way textures are loaded.
15-
16-
##### Fixes
17-
- Fix Plane mode settings being persisted in certain situations.
18-
- Fix the display of the log level for debug messages.
19-
20-
## v1.0.0
21-
##### Fixes
22-
- Initalize ControlMode to Rocket to avoid warning on vessel load
23-
24-
## v0.4.1
25-
##### Fixes
26-
- Kerbal Space Program v1.0 compatibility
27-
28-
## v0.4.0
29-
##### New
30-
- Added setting to disable Application Launcher (stock toolbar) button.
31-
- Docking controls are now supported.
32-
33-
##### Fixes
34-
- Interaction with trim controls should now be fixed.
35-
- Interaction with SAS/Autopilot should now be fixed.
36-
37-
## v0.3.0
38-
##### New
39-
- Use stock Application Launcher.
40-
- Control mode is persisted with command pods, probe cores, and docking ports. The mode used is determined by whichever
41-
part is selected with the *Control From Here* button.
42-
- Control mode is automatically selected for new parts in the editor. Parts in the VAB are placed in Rocket mode and
43-
parts in the SPH are placed in Plane mode.
44-
45-
##### Changes
46-
- Renamed from "Aeroplane Mode" to "Plane Mode".
47-
- Settings configuration has been changed slightly and toggle and hold keys have both been defaulted to None rather
48-
than ScrollLock and Home.
49-
50-
##### Fixes
51-
- Handle switching vessels better.
1+
## v1.3.0
2+
##### New
3+
- Add actions to all applicables parts to change control modes, making them available to action groups. Available actions are:
4+
- `Control Mode: Toggle`
5+
- `Control Mode: Rocket`
6+
- `Control Mode: Plane`
7+
8+
##### Fixes
9+
- Fix example configuration patch to show how to actually change toggle keys.
10+
11+
## v1.2.0
12+
##### New
13+
- Add `defaultControlMode`, `defaultVabControlMode`, `defaultSphControlMode` configuration settings to control default
14+
control mode used for various situations.
15+
16+
## v1.1.0
17+
##### New
18+
- Add `KSPAssembly` attribute to assembly.
19+
20+
##### Changes
21+
- `PLANEMODE_USER_SETTINGS` is deprecated (although still supported), a Module Manager patch should now be used to
22+
modify settings. An example patch is distributed in the `PlaneMode/Configuration` directory.
23+
- Clarified log message that made it appeared as if code was being executed more times than it was.
24+
- Simplified the way textures are loaded.
25+
26+
##### Fixes
27+
- Fix Plane mode settings being persisted in certain situations.
28+
- Fix the display of the log level for debug messages.
29+
30+
## v1.0.0
31+
##### Fixes
32+
- Initalize ControlMode to Rocket to avoid warning on vessel load
33+
34+
## v0.4.1
35+
##### Fixes
36+
- Kerbal Space Program v1.0 compatibility
37+
38+
## v0.4.0
39+
##### New
40+
- Added setting to disable Application Launcher (stock toolbar) button.
41+
- Docking controls are now supported.
42+
43+
##### Fixes
44+
- Interaction with trim controls should now be fixed.
45+
- Interaction with SAS/Autopilot should now be fixed.
46+
47+
## v0.3.0
48+
##### New
49+
- Use stock Application Launcher.
50+
- Control mode is persisted with command pods, probe cores, and docking ports. The mode used is determined by whichever
51+
part is selected with the *Control From Here* button.
52+
- Control mode is automatically selected for new parts in the editor. Parts in the VAB are placed in Rocket mode and
53+
parts in the SPH are placed in Plane mode.
54+
55+
##### Changes
56+
- Renamed from "Aeroplane Mode" to "Plane Mode".
57+
- Settings configuration has been changed slightly and toggle and hold keys have both been defaulted to None rather
58+
than ScrollLock and Home.
59+
60+
##### Fixes
61+
- Handle switching vessels better.

Configuration/UserSettings.cfg.example

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
// This is an example file for how to modify PlaneMode's configuration using a Module Manager patch.
22
// Remove the `.example` from the end of the filename and uncomment lines for settings you wish to change.
33

4-
@PLANEMODE:NEEDS[PlaneMode]
4+
@PLANEMODE:NEEDS[PlaneMode]:AFTER[PlaneMode]
55
{
66
// Key to toggle control mode
77
// Set `primary` to one of the KeyCodes specified here: http://docs.unity3d.com/ScriptReference/KeyCode.html
88
//@TOGGLE_CONTROL_MODE
99
//{
10-
// primary = None
11-
// secondary = None
12-
// group = 0
13-
// switchState = Any
10+
// @primary = None
11+
// @secondary = None
12+
// @group = 0
13+
// @switchState = Any
1414
//}
1515

1616
// Key to temporarily toggle control mode
1717
// Set `primary` to one of the KeyCodes specified here: http://docs.unity3d.com/ScriptReference/KeyCode.html
1818
//@HOLD_CONTROL_MODE
1919
//{
20-
// primary = None
21-
// secondary = None
22-
// group = 0
23-
// switchState = Any
20+
// @primary = None
21+
// @secondary = None
22+
// @group = 0
23+
// @switchState = Any
2424
//}
2525

2626
// Set true to invert pitch in plane mode

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ The control mode is stored with command pods, probe cores, and docking ports. Th
3232
whether the part was created in the VAB (Rocket) or SPH (Plane). Existing parts in flight will default to Rocket mode.
3333
The part used is determined by which is selected by the *Control From Here* button. You can toggle the control mode of
3434
a part by right clicking on it in the editor or in flight and press *Toggle Control Mode*. Pressing the Application
35-
Launcher button will also toggle the control mode of the current controlling part.
35+
Launcher button will also toggle the control mode of the current controlling part. Actions are also available for use
36+
in action groups to toggle the control mode or switch to a specific mode.
3637

3738
## Configuration
3839

Source/PlaneMode/ModulePlaneMode.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,24 @@ public void ToggleControlMode()
125125
Log.Trace("Leaving ModulePlaneMode.ToggleControlMode()");
126126
}
127127

128+
[KSPAction("Control Mode: Toggle")]
129+
public void ActionToggleControlMode(KSPActionParam p)
130+
{
131+
ToggleControlMode();
132+
}
133+
134+
[KSPAction("Control Mode: Rocket")]
135+
public void ActionSetRocketControlMode(KSPActionParam p)
136+
{
137+
SetControlMode(ControlMode.Rocket);
138+
}
139+
140+
[KSPAction("Control Mode: Plane")]
141+
public void ActionSetPlaneControlMode(KSPActionParam p)
142+
{
143+
SetControlMode(ControlMode.Plane);
144+
}
145+
128146
public void SetControlMode(ControlMode controlMode)
129147
{
130148
Log.Trace("Entering ModulePlaneMode.SetControlMode()");

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
os: Visual Studio 2015 RC
1+
os: Visual Studio 2015
22
version: "{build}"
33

44
configuration:

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Apokee.Artwork" version="0.2.0" />
4-
<package id="Cake" version="0.4.3" />
4+
<package id="Cake" version="0.5.0" />
55
<package id="YamlDotNet" version="3.6.1" />
66
</packages>

0 commit comments

Comments
 (0)