upadate ui

This commit is contained in:
secret_dude 2021-05-19 05:12:42 +02:00
parent f3b42cef6a
commit 3b44694641
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ def drawInfo(display, tractor, tillageUnit, field, direction, weather, day_time,
hitches = tractor.hitch
if isinstance(tractor.hitch, TillageUnit):
hitches = "Tillage Unit"
if decision == [0]:
decision = "Wait"
else:
decision = "Make Action"
text = f"(Q)Hitches: {hitches} (W)Header: {tractor.header} (R)Engine working: {tractor.engineWorking} (T)Autodrive: {tractor.autodrive} Fuel: {tractor.fuel_tank}"
textsurface = myfont.render(text, False, (0, 0, 0))

View File

@ -53,7 +53,7 @@ while working:
field = board[tractor.horizontal_index][tractor.vertical_index]
if weatherTimer == 10:
if weatherTimer == 30:
weatherTimer = 0
weather, day_time, temperature, wind, humidy = WeatherConditions.checkConditions()