Skip to content

Commit 01739d5

Browse files
authored
Merge pull request #401 from ihsoft/next
Release v1.29
2 parents d92c40b + 4986330 commit 01739d5

21 files changed

+1895
-1439
lines changed

Binaries/KSPDev_Utils.2.4.dll

-132 KB
Binary file not shown.

Binaries/KSPDev_Utils.2.6.dll

136 KB
Binary file not shown.
Lines changed: 1698 additions & 1340 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 1.29 (January 4th, 2022):
2+
* [Enhancement] Support game's UI scale in all dialogs.
3+
* [Enhancement] Reduce the EVA canister dry mass to 1kg.
4+
* [Fix] Total mass is not ajdusted when fuel is expended from the EVA tank.
5+
* [Fix] Recalculate the resources mass on load to fix wrong state of the EVA tank.
6+
* [Fix #394] Refuel tank throws error on refuel action.
7+
18
# 1.28 (January 15th, 2021):
29
* [Fix #378] Dropped parts cannot be moved or trigger physics.
310
* [Fix #379] KIS functionality interferes with the stock construction mode.

Deps/CommunityCategoryKit/CCK.dll

0 Bytes
Binary file not shown.

Deps/ModuleManager.4.1.4.dll

-138 KB
Binary file not shown.

Deps/ModuleManager.4.2.1.dll

139 KB
Binary file not shown.

KIS.version

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"NAME": "Kerbal Inventory System",
2020
"URL": "https://raw.githubusercontent.com/ihsoft/KIS/master/KIS.version",
2121
"VERSION": {
22-
"BUILD": 40880,
22+
"BUILD": 40483,
2323
"MAJOR": 1,
24-
"MINOR": 28,
25-
"PATCH": 7685
24+
"MINOR": 29,
25+
"PATCH": 8039
2626
}
2727
}

Parts/evapropellant1/part.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ PART
1515
manufacturer = #KIS_evapropellant_Part_manufacturer // #KIS_evapropellant_Part_manufacturer = Kerbal Inventory Systems
1616
description = #KIS_evapropellant_Part_description // #KIS_evapropellant_Part_description = After all EVA suits were equipped with maneuvering thrusters, Mission Control ran into an unexpected problem: crew members became so addicted to flying around with their jetpacks that they frequently exhausted their supplies of propellant! After an excessive number of rescue missions, every vessel was required to include a spare fuel tank, just in case. Now fellow crew members can save their reckless colleagues by replenishing their fuel supplies. If necessary, the tank can be recharged from the ship's propellant.
1717
attachRules = 0,1,0,0,0
18-
mass = 0.01
18+
mass = 0.001
1919
dragModelType = default
2020
maximum_drag = 0.2
2121
minimum_drag = 0.2

Source/Debug/SpawnItemDialog.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class SpawnItemDialog : MonoBehaviour, IHasGUI {
2323
Rect guiMainWindowPos;
2424
AvailablePart[] foundMatches = {};
2525
GuiActionsList guiActionList = new GuiActionsList();
26+
27+
/// <summary> The controller of the game's UI scale.</summary>
28+
GuiScale _guiScale;
2629
#endregion
2730

2831
/// <summary>Presents the span item dialog.</summary>
@@ -33,7 +36,7 @@ class SpawnItemDialog : MonoBehaviour, IHasGUI {
3336
/// <param name="inventory">The inventory to bound the dialog to.</param>
3437
public static void ShowDialog(ModuleKISInventory inventory) {
3538
if (dialog != null) {
36-
Object.Destroy(dialog);
39+
Destroy(dialog);
3740
}
3841
dialog = new GameObject("KisDebug-ItemSpawnDialog");
3942
var dlg = dialog.AddComponent<SpawnItemDialog>();
@@ -44,8 +47,11 @@ public static void ShowDialog(ModuleKISInventory inventory) {
4447
#region IHasGUI implementation
4548
/// <inheritdoc/>
4649
public void OnGUI() {
47-
guiMainWindowPos = GUILayout.Window(
48-
GetInstanceID(), guiMainWindowPos, GuiMain, "KIS spawn item dialog", GUILayout.Height(0));
50+
using (new GuiMatrixScope()) {
51+
_guiScale.UpdateMatrix();
52+
guiMainWindowPos = GUILayout.Window(
53+
GetInstanceID(), guiMainWindowPos, GuiMain, "KIS spawn item dialog", GUILayout.Height(0));
54+
}
4955
}
5056
#endregion
5157

@@ -93,7 +99,7 @@ void GuiMain(int windowID) {
9399
}
94100

95101
if (GUILayout.Button("Close")) {
96-
Object.Destroy(gameObject);
102+
Destroy(gameObject);
97103
}
98104
GUI.DragWindow(new Rect(0, 0, 10000, 30));
99105
}
@@ -133,6 +139,7 @@ void Awake() {
133139
createQuantity = "1";
134140
GuiUpdateSearch(searchText);
135141
guiMainWindowPos = new Rect(100, 100, 500, 0);
142+
_guiScale = new GuiScale(getPivotFn: () => new Vector2(guiMainWindowPos.x, guiMainWindowPos.y));
136143
}
137144
#endregion
138145
}

0 commit comments

Comments
 (0)