Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
allista committed Jul 22, 2020
2 parents 57122f8 + f730859 commit 06e21be
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#if NIGHTBUILD
[assembly: AssemblyVersion("3.7.*")]
#else
[assembly: AssemblyVersion("3.7.0.1")]
[assembly: AssemblyVersion("3.7.1")]
#endif
[assembly: KSPAssembly("ThrottleControlledAvionics", 3, 7)]

Expand Down
8 changes: 7 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Throttle Controlled Avionics ChangeLog

**DELETE the old version before installing a new one**

_**BUT** do not delete the ThrottleControlledAvionics.user and config.xml files to preserve your settings_

* **v3.7.0.1**
* **v3.7.1**
* Using new uGUI dialogs from AT_Utils
* Adapted to changes in AT_Utils

* v3.7.0.1
* Compiled against KSP-1.10

* v3.7.0 - **Maneuver Engines Reloaded**
Expand Down
1 change: 1 addition & 0 deletions GUI/Elements/ControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public abstract class ControlPanel<T> : UIWindowBase<T>, IControlPanel where T :

protected override void init_controller()
{
base.init_controller();
if(Connected)
OnLateUpdate();
}
Expand Down
11 changes: 5 additions & 6 deletions GUI/TCAGuiEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ namespace ThrottleControlledAvionics
[KSPAddon(KSPAddon.Startup.EditorAny, false)]
public class TCAGuiEditor : AddonWindowBase<TCAGuiEditor>
{
const string DefaultConstractName = "Untitled Space Craft";

public static bool Available { get; private set; }
Dictionary<Type, bool> Modules = new Dictionary<Type, bool>();
static Texture2D CoM_Icon;

TCAPartsEditor PartsEditor;
SimpleWarning warning;

ModuleTCA TCA;
NamedConfig CFG;
Expand Down Expand Up @@ -436,9 +433,11 @@ void DrawMainWindow(int windowID)
Styles.active_button, GUILayout.ExpandWidth(true)))
{
var facility = EditorLogic.fetch.ship.shipFacility;
warning.Message = string.Format("Are you sure you want to save current ship configuration as default for {0}?", facility);
warning.yesCallback = () => TCAScenario.UpdateDefaultConfig(facility, CFG);
warning.Show(true);
DialogFactory.Danger(
$"Are you sure you want to save current ship configuration as default for {facility}?",
() => TCAScenario.UpdateDefaultConfig(facility, CFG),
context: this
);
}
}
GUILayout.EndHorizontal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{
"MAJOR":3,
"MINOR":7,
"PATCH":0,
"BUILD":1
"PATCH":1,
"BUILD":0
},
"KSP_VERSION_MIN":
{
Expand Down
2 changes: 1 addition & 1 deletion Globals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Globals : PluginGlobals<Globals>
public const string RADIATION_ICON = "ThrottleControlledAvionics/Icons/waypoint";
public const string CIRCLE_ICON = "ThrottleControlledAvionics/Icons/path-node";

public UIBundle AssetBundle = new UIBundle("ThrottleControlledAvionics/tca_ui.ksp");
public UIBundle AssetBundle = UIBundle.Create("ThrottleControlledAvionics/tca_ui.ksp");

[Persistent] public bool IntegrateIntoCareer = true;
[Persistent] public bool RoleSymmetryInFlight = true;
Expand Down

0 comments on commit 06e21be

Please sign in to comment.