LiquidGUI [1.1.0.1]
- Added support for minimum and maximum temperatures. - Corrected typo in Calibri font name. - UI tweaks.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class MinMaxCurrent:
|
||||
def __init__(self):
|
||||
self.min = 0
|
||||
self.max = 0
|
||||
self.cur = 0
|
||||
|
||||
def builder(self, _cur: int, _unit: str):
|
||||
self.cur = _cur
|
||||
|
||||
if 0 in [self.max, self.min]:
|
||||
self.max = _cur
|
||||
self.min = _cur
|
||||
|
||||
if self.cur > self.max:
|
||||
self.max = _cur
|
||||
|
||||
if self.cur < self.min:
|
||||
self.min = _cur
|
||||
|
||||
return f"Current: {self.cur}{_unit}\n(Min: {self.min}{_unit} / Max: {self.max}{_unit})"
|
||||
Reference in New Issue
Block a user