Skip to content

Commit 437ea15

Browse files
committed
Allow for opacity of 0 & disable overlay drawing if opacity is set to 0 - allows for deactivating the overlay while still showing the temperature display
1 parent 3fd2119 commit 437ea15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
0 Bytes
Binary file not shown.

src/HeatMap/Main.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public void UpdateHeatMap()
2727
if (_heatMap == null)
2828
_heatMap = new HeatMap();
2929

30-
_heatMap.Update(_updateDelay);
30+
if (_opacity > 0)
31+
_heatMap.Update(_updateDelay);
3132
}
3233

3334
public void UpdateOutdoorThermometer()
@@ -157,7 +158,7 @@ public override void DefsLoaded()
157158
_opacity = Settings.GetHandle(
158159
"opacity", "FALCHM.OverlayOpacity".Translate(),
159160
"FALCHM.OverlayOpacityDesc".Translate(), 30,
160-
Validators.IntRangeValidator(1, 100));
161+
Validators.IntRangeValidator(0, 100));
161162

162163
_opacity.ValueChanged += val => { _heatMap?.Reset(); };
163164

0 commit comments

Comments
 (0)