upadate ui
This commit is contained in:
parent
f3b42cef6a
commit
3b44694641
@ -24,6 +24,10 @@ def drawInfo(display, tractor, tillageUnit, field, direction, weather, day_time,
|
|||||||
hitches = tractor.hitch
|
hitches = tractor.hitch
|
||||||
if isinstance(tractor.hitch, TillageUnit):
|
if isinstance(tractor.hitch, TillageUnit):
|
||||||
hitches = "Tillage Unit"
|
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}"
|
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))
|
textsurface = myfont.render(text, False, (0, 0, 0))
|
||||||
|
2
main.py
2
main.py
@ -53,7 +53,7 @@ while working:
|
|||||||
|
|
||||||
field = board[tractor.horizontal_index][tractor.vertical_index]
|
field = board[tractor.horizontal_index][tractor.vertical_index]
|
||||||
|
|
||||||
if weatherTimer == 10:
|
if weatherTimer == 30:
|
||||||
weatherTimer = 0
|
weatherTimer = 0
|
||||||
weather, day_time, temperature, wind, humidy = WeatherConditions.checkConditions()
|
weather, day_time, temperature, wind, humidy = WeatherConditions.checkConditions()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user