2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

11 Commits

Author SHA1 Message Date
Fred Kuipers
e523dddfe3 Revert LogMonitor/CoreViewModel changes, implement Slider int setting
Also revert the PluginType enum.


Fix more whitespace
2021-08-15 17:02:35 -04:00
Fred Kuipers
3c3aca8bfd Enclose pre-read with Read-all; de-dupe plugin table and show types, etc
A few changes in preparation for the upcoming Announcer plugin.
1) De-dupe entries in the plugin table in the core settings UI when a plugin implements both Worker and Notifier interfaces.
2) Also add a "Types" column to the plugin table indicating the set of implemented interfaces found.
3) Wrap the pre-reading logic in "Read-all" scope to properly suppress  a stampede of notifications (particularly audio ones) when starting the log monitor.
4) Fix the int setting UI. It rendered incorrectly, it didn't get the value from the settings class, nor wrote it back. Also implemented optional value bounding using the new setting attribute (see the related Framework PR). 
5) Applied similar fixes to string setting (addressed rendering, write-back although untested).
6) Minor visual fixes (height/vertical alignment) for non-boolean settings to address cut-off/overlapping inputs.

Sorry for the larger PR, but these *should* be all the loose ends before we could consider including Basic Announcer...
2021-08-14 00:14:13 -04:00
Xjph
51c9dc6c52
Update LogMonitor.cs
fix minor spelling error
2021-07-21 08:33:45 -02:30
Fred Kuipers
13fecfa395 Add a setting to control pre-reading behavior
Also makes adding new rows to the settings grid a little more dynamic.
2021-07-20 19:35:33 -04:00
Fred Kuipers
1ce63c40fc Implement "Pre-reading" of current system context when starting monitor
The first time you click "Start monitor" (assuming you haven't read-all), we read the last 2 log files to find the journal entries for the last system jumped into (if we can find the FSDJump entry) in order to re-populate the information in all interested plugins. Its much faster than reading all to restore current system context.

- For Botanist plugin, this will display what plants/planets you've already sampled and avoids placeholder planet entries with incorrect bio counts.
- For Explorer, it re-lists interesting items, in case you weren't done exploring the system.

See https://github.com/Xjph/ObservatoryCore/issues/5
2021-07-06 02:24:40 -04:00
Xjph
93d691a1f6 Watchers being a little overzealous. 2021-06-30 08:35:18 -02:30
Xjph
ce250e4f84 Don't throw exception when journal path doesn't exist. 2021-06-08 19:26:55 -02:30
Xjph
7d3f7c50de Add error reporting dialog during Read All. 2021-06-08 17:26:40 -02:30
Xjph
a408e802d4 Use same process to determine journal path in JournalPoke method. 2021-06-07 09:20:53 -02:30
Xjph
23ab4f593d Improve tracking of line position in files. Added JournalPoke method. 2021-06-06 10:33:38 -02:30
Xjph
a5154996ee Add project files. 2021-06-03 22:25:32 -02:30