[Add] Draw systems with no planets grey.
This commit is contained in:
parent
5346dc540b
commit
e0f8aae668
@ -318,6 +318,9 @@ class space:
|
||||
sel_gc = area.window.new_gc()
|
||||
col = area.get_colormap().alloc_color("red")
|
||||
sel_gc.foreground = col
|
||||
inert_gc = area.window.new_gc()
|
||||
col = area.get_colormap().alloc_color("grey")
|
||||
inert_gc.foreground = col
|
||||
|
||||
# Cleanup.
|
||||
area.window.draw_rectangle(bg_gc, True, 0, 0, ww, wh)
|
||||
@ -341,6 +344,8 @@ class space:
|
||||
# Draw circle.
|
||||
if sys_name == self.space_sel:
|
||||
gc = sel_gc
|
||||
elif len(system["planets"]) == 0:
|
||||
gc = inert_gc
|
||||
else:
|
||||
gc = sys_gc
|
||||
if sys_name == self.__curSystem():
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user