Thurion/EDSM-RSE-for-EDMC

Interface elements on the main window

Thurion opened this issue · 2 comments

A frame needs to be shown on the main window if a "red" system was found. If no system was found, the frame needs to be hidden.

Possible way to display the information:

Closest "red" system:  Bleae Aewsy MH-L d8-9
Distance: 100 Ly (±17)

The system name needs to be copyable with a right click like the system the player is currently in and a a left click should open the EDSM page.
The number in parenthesis for the distance shows the worst case. Another possibility would be to show the uncertainty (10 in this case).

Because of thread safety, all updates must trigger an event which is then run by the main thread. The values can be stored in a module wide variable or as an attribute of the background worker thread. The reference to the worker instance is already kept as a module variable.
The values could be passed on as a tuple, a dictionary (preferred) or a class that holds all information. If a dictionary is used, define all keys as "constants".

The UI elements on the main windows were completed with commit 65fd655