mirror of
https://github.com/norohind/EDMC_SpanshRouter.git
synced 2025-06-04 17:40:58 +03:00
Prefill the source system
This commit is contained in:
parent
15f1f2bd84
commit
38b27c2579
@ -132,7 +132,6 @@ class AutoCompleter(Entry, PlaceHolder):
|
||||
while 1:
|
||||
lista = self.queue.get_nowait()
|
||||
self.show_results(lista)
|
||||
|
||||
self.update_idletasks()
|
||||
except Queue.Empty:
|
||||
pass
|
||||
|
13
load.py
13
load.py
@ -131,9 +131,12 @@ def show_plot_gui(show=True):
|
||||
this.cancel_plot.grid()
|
||||
|
||||
# Workaround because EDMC keeps switching the placeholder to bright white
|
||||
this.source_ac.force_placeholder_color()
|
||||
this.dest_ac.force_placeholder_color()
|
||||
this.range_entry.force_placeholder_color()
|
||||
if this.source_ac.get() == this.source_ac.placeholder:
|
||||
this.source_ac.force_placeholder_color()
|
||||
if this.dest_ac.get() == this.dest_ac.placeholder:
|
||||
this.dest_ac.force_placeholder_color()
|
||||
if this.range_entry.get() == this.range_entry.placeholder:
|
||||
this.range_entry.force_placeholder_color()
|
||||
show_route_gui(False)
|
||||
|
||||
else:
|
||||
@ -303,6 +306,10 @@ def update_route(direction=1):
|
||||
copy_waypoint(this.parent)
|
||||
|
||||
def journal_entry(cmdr, is_beta, system, station, entry, state):
|
||||
if entry["StarSystem"]:
|
||||
this.source_ac.delete(0, tk.END)
|
||||
this.source_ac.insert(0, entry["StarSystem"])
|
||||
this.source_ac["fg"] = this.source_ac.default_fg_color
|
||||
if (entry['event'] == 'FSDJump' or entry['event'] == 'Location') and entry["StarSystem"] == this.next_stop:
|
||||
update_route()
|
||||
elif entry['event'] in ['SupercruiseEntry', 'SupercruiseExit'] and entry['StarSystem'] == this.next_stop:
|
||||
|
Loading…
x
Reference in New Issue
Block a user