I got the dockscreens to work together, the prototype is
here. Please note that some things were deleted so old saves won't work.
Is that what you had in mind alterecco?
The new arrangment feels more fragile, while putting the two together I managed to break both of them a few times, and I have no idea how some of the problems got fixed, or what went wrong in the first place, but is seems to work now.
Two problems
1. the "more data" option in the event viewer works ok, but the screens don't return to it, they go to the other screens that launch them. I'll fix that before final release.
2. the next and previous options inside system details don't work with the arrows, the list does instead.
EDIT: I am converting captain's log to use a list to store data more like system log (the more I look, the more I understand it). This way I can change the display related code and retro-actively adjust how data for all logged systems are displayed without flying back through all of them again, which gets very annoying very quickly, too bad I didn't do this sooner.
EDIT2: the station list and system type are now figured out at time of display from data stored earlier. The link above is outdated.
I noticed that the inventory of stations in the system log was not being deleted once I bought the item (on an ice farm specifically, which showed it still had its goods but it was actually empty because I bought it all), so I copied and modifed the station update function to update all the station's inventories on gate out or before display, problem solved.
I am also seeing a lot of destroyed stations in the station list, is this intended or did I break something?
EDIT3: It seems like the player ship is being un-registered for events when leaving the system (breaking the onObjDocked event), I've added a check so the player is re-registered when returning to the system.
This is most likely the reason for inventory not updating from edit 2, but I will leave the new code in because the inventory should be updated after the player leaves the station, not just when he/she docks as it is liable to change.
EDIT4: As a result of edits 1 and 2 adding a filter so it doesn't show the defense turrets and satellites on the main screen turned out to be completely painless.