Skip to content

Commit 7249053

Browse files
Updated Changelog
QuickMute 1.4.0.10 Fixed log spam when clicking the button
1 parent a91066b commit 7249053

11 files changed

Lines changed: 39 additions & 137 deletions

File tree

Changelog.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#### Changelog
22

3+
QuickMods 1.4.0.18
4+
QuickMute 1.4.0.10
5+
Fixed log spam when clicking the button
6+
Thanks to github user @Clayell for the following two updates:
7+
QuickStart 2.2.1.4
8+
Add abbreviation for tracking station
9+
QuickGoTo 1.4.0.15
10+
Add some spaces
311

412
QuickMods 1.4.0.17
5-
QuickGoTo 1.4.0.14 (unreleased)
13+
QuickGoTo 1.4.0.14
614
Thanks to github user @Clayell for this:
715
Add UI_Scale for shifting QuickGoTo button
816

QuickGoTo/QuickGoTo.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"MAJOR": 1,
1212
"MINOR": 4,
1313
"PATCH": 0,
14-
"BUILD": 14
14+
"BUILD": 15
1515
},
1616
"KSP_VERSION": {
1717
"MAJOR": 1,

QuickHide/QuickHide.version.1-12-3

Lines changed: 0 additions & 26 deletions
This file was deleted.

QuickMods.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"MAJOR": 1,
1212
"MINOR": 4,
1313
"PATCH": 0,
14-
"BUILD": 17
14+
"BUILD": 18
1515
},
1616
"KSP_VERSION": {
1717
"MAJOR": 1,

QuickMods.version.1-12-3

Lines changed: 0 additions & 26 deletions
This file was deleted.

QuickMute/Object/QVolume.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public float Master {
6262
}
6363

6464
public void Apply() {
65-
Debug.Log("QuickMute.Apply, isMute: " + isMute + ", master: " + master);
66-
Debug.Log("StackTrace: " + Environment.StackTrace);
6765
GameSettings.MASTER_VOLUME = isMute ? 0 : master;
6866
}
6967

QuickMute/QM.cs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@ You should have received a copy of the GNU General Public License
1818

1919
using System.IO;
2020
using System.Reflection;
21-
using System.Collections;
22-
using QuickMute.Object;
21+
using System.Collections;
22+
using QuickMute.Object;
2323
//using QuickMute.Toolbar;
2424
using UnityEngine;
2525

2626
namespace QuickMute {
27-
27+
2828
[KSPAddon (KSPAddon.Startup.EveryScene, true)]
29-
public class QuickMute : MonoBehaviour {
30-
29+
public class QuickMute : MonoBehaviour {
30+
3131
internal static QuickMute Instance;
3232
//[KSPField(isPersistant = true)] internal static QBlizzy BlizzyToolbar;
3333
internal QGui gui;
3434
internal QVolume volume;
3535
QKey qKey;
3636
QLevel level;
3737

38-
internal static string FileConfig = RegisterToolbar.PATH + "/Config.txt";
39-
38+
internal static string FileConfig = RegisterToolbar.PATH + "/Config.txt";
39+
4040
internal bool mouseIsHover {
41-
get {
41+
get {
4242
return gui.isHovering || level.mouseIsHover;
4343
}
4444
}
4545

46-
void Awake() {
46+
void Awake() {
4747
if (Instance != null) {
4848
QDebug.Log("Destroy, already exists!");
4949
Destroy(this);
@@ -59,8 +59,8 @@ void Awake() {
5959
volume = new QVolume(GameSettings.MASTER_VOLUME, QSettings.Instance.Muted);
6060
level = new QLevel(volume);
6161
qKey = new QKey();
62-
gui = new QGui(qKey, level);
63-
DontDestroyOnLoad(this);
62+
gui = new QGui(qKey, level);
63+
DontDestroyOnLoad(this);
6464
QDebug.Log("Awake");
6565

6666
FileConfig = RegisterToolbar.PATH + "/Config.txt";
@@ -75,23 +75,23 @@ IEnumerator Wait(int seconds) {
7575
yield return new WaitForSecondsRealtime(seconds);
7676
gui.draw = false;
7777
QDebug.Log("Wait");
78-
}
79-
78+
}
79+
8080
void Start() {
8181
QDebug.Log("Start");
8282
}
8383

8484
void OnVesselGoOffRails(Vessel vessel) {
8585
QMute.Verify();
8686
QDebug.Log("OnVesselGoOffRails");
87-
}
88-
87+
}
88+
8989
void Update() {
9090
qKey.Update();
91-
if (mouseIsHover) {
91+
if (mouseIsHover) {
9292
if (QSettings.Instance.ScrollLevel && System.Math.Abs(Input.GetAxis("Mouse ScrollWheel")) > float.Epsilon) {
93-
float scroll = Input.GetAxis("Mouse ScrollWheel");
94-
volume.Master += scroll;
93+
float scroll = Input.GetAxis("Mouse ScrollWheel");
94+
volume.Master += scroll;
9595
}
9696
if (!QRender.isLock) {
9797
QRender.Lock(true);
@@ -101,26 +101,26 @@ void Update() {
101101
}
102102
}
103103

104-
void OnGUI() {
104+
void OnGUI() {
105105
gui.Render();
106-
}
107-
106+
}
107+
108108
void OnApplicationQuit() {
109109
volume.Restore();
110-
QDebug.Log("OnApplicationQuit");
110+
QDebug.Log("OnApplicationQuit");
111111
}
112112

113113
public void Mute() {
114114
Mute(!QSettings.Instance.Muted);
115115
}
116116

117117
void Mute(bool mute) {
118-
volume.isMute = mute;
118+
volume.isMute = mute;
119119
Refresh();
120120
if (QSettings.Instance.MuteIcon) {
121121
StartCoroutine(Wait(5));
122-
}
123-
QDebug.Log("Mute");
122+
}
123+
QDebug.Log("Mute");
124124
}
125125

126126
public void Refresh() {
@@ -129,7 +129,7 @@ public void Refresh() {
129129
// }
130130
if (QStock.Instance != null) {
131131
QStock.Instance.Refresh();
132-
}
132+
}
133133
QDebug.Log("Refresh");
134134
}
135135
}

QuickMute/QuickMute.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"MAJOR": 1,
1212
"MINOR": 4,
1313
"PATCH": 0,
14-
"BUILD": 9
14+
"BUILD": 10
1515
},
1616
"KSP_VERSION": {
1717
"MAJOR": 1,

QuickSAS/QuickSAS.version.1-12-3

Lines changed: 0 additions & 26 deletions
This file was deleted.

QuickSearch/QuickSearch.version.1-12-3

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)