[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()
|
sel_gc = area.window.new_gc()
|
||||||
col = area.get_colormap().alloc_color("red")
|
col = area.get_colormap().alloc_color("red")
|
||||||
sel_gc.foreground = col
|
sel_gc.foreground = col
|
||||||
|
inert_gc = area.window.new_gc()
|
||||||
|
col = area.get_colormap().alloc_color("grey")
|
||||||
|
inert_gc.foreground = col
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
area.window.draw_rectangle(bg_gc, True, 0, 0, ww, wh)
|
area.window.draw_rectangle(bg_gc, True, 0, 0, ww, wh)
|
||||||
@ -341,6 +344,8 @@ class space:
|
|||||||
# Draw circle.
|
# Draw circle.
|
||||||
if sys_name == self.space_sel:
|
if sys_name == self.space_sel:
|
||||||
gc = sel_gc
|
gc = sel_gc
|
||||||
|
elif len(system["planets"]) == 0:
|
||||||
|
gc = inert_gc
|
||||||
else:
|
else:
|
||||||
gc = sys_gc
|
gc = sys_gc
|
||||||
if sys_name == self.__curSystem():
|
if sys_name == self.__curSystem():
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user