Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Add new entries and more#23

Merged
Falki-git merged 38 commits intoMicrologist:mainfrom
Falki-git:new-entries-and-more
Apr 26, 2023
Merged

Add new entries and more#23
Falki-git merged 38 commits intoMicrologist:mainfrom
Falki-git:new-entries-and-more

Conversation

@Falki-git
Copy link
Collaborator

@Falki-git Falki-git commented Apr 15, 2023

Change log:

  • Added 105 new entries
    • Orbital (13):
      • Argument of periapsis, Eccentric anomaly, Longitude of ascending node, Mean anomaly, Orbit percent, Orbit radius, Orbit time, Orbital energy, Orbital speed, Semi latus rectum, Semi major axis, Semi minor axis, True anomaly
    • Surface (5):
      • Altitude from scenery, Dynamic pressure, Static pressure, Atmospheric temperature, External temperature
    • Flight (11):
      • Angle of attack, Drag coefficient, Exposed area, G-Force, Heading, Pitch, Roll, Sideslip, Speed of sound, Yaw, Zenith
    • Vessel (15):
      • Burn time, Command crew capacity, Fuel percentage, Number of parts, Stage fuel percentage, Stage ISP Actual, Stage ISP ASL, Stage ISP Vac, Stage Thrust ASL, Stage Thrust Vac, Stage TWR ASL, Stage TWR Vac, Throttle, Total ∆v ASL, Total ∆v Vac
    • Maneuver (22):
      • Argument of periapsis, Eccentric anomaly, Eccentricity, Inclination, Longitude of ascending node, Mean anomaly, Orbit percent, Orbit time, Orbital energy, Period, Semi latus rectum, Semi major axis, Semi minor axis, Time to apoapsis, Time to periapsis, True anomaly, Universal Time, UT at closest approach, UT at SOI encounter, ∆v prograde, ∆v normal, ∆v radial
    • Target (26):
      • Altitude from sea level, Argument of periapsis, Body radius, Eccentric anomaly, Eccentricity, Inclination, Longitude of ascending node, Mean anomaly, Name, Orbit radius, Orbit time, Orbital speed, Period, Phase Angle, Semi latus rectum, Semi major axis, Semi minor axis, Standard gravitation parameter, Distance at close approach 1, Distance at close approach 2, Relative speed at close approach 1, Relative speed at close approach 2, Time to close approach 1, Time to close approach 2, Transfer Angle, True anomaly
    • Body (2):
      • Radius, Standard gravitation parameter
    • Misc (11):
      • Altimeter mode, Autopilot mode, Autopilot status, Launch time, Local gravity, Speed mode, Start UT, Time since launch, Universal Time, UT Close Approach, UT SOI encounter
  • Added themes support: light, gray, dark + visual overhaul of all buttons/icons
  • Open edit entries window for the particular window directly from the window header
  • Added possibility for decreasing or increasing of number of decimal points per entry
  • Large values are now automatially scaled by changing the unit they're display in. E.g. m -> km -> Mm -> Gm
  • Base unit for Thrust is now kN
  • Maneuver nodes: added possibility for deleting and switching to other active nodes
  • Reordered default entry ordering (can be manually reordered by player)
  • Settings window is no longer toggleable from the toggle bar at the top of Main GUI. It can now be opened by clicking on the dedicated Settings icon (gear)
  • Locked window transparency changed: 80% -> 20%
  • Renamed entries: "Altitude (ASL)" -> "Altitude (Sea)", "Altitude (AGL)" -> "Altitude (Ground)"
  • Optimized OAB updates: they're now done entirelly by messages/events
  • Substantial rewrite of the entire codebase; some bugs are likely so please report them

TODOs:

  • add lots of new entries
  • add maneuver manipulation
  • phase angle calculations
  • manually build the list of entries for each window to prevent adding all entries from a category (define IsDefault)
  • add layout versioning
  • fix OAB updates to use messages, not Update()
  • code refactor to clean up and to separate concerns better
  • settings button instead of settings window,
  • setting for different window background colors
  • # of decimal digits can be changed by user
  • settings button for individual window too
  • new popout button
  • setting for automatic m -> km for large numbers

Change log - dev:

  • Added lots of new entries (TODO: specify which)
  • Renamed MicroWindow to BaseWindow
  • Added new ManeuverWindow that inherits from BaseWindow
  • Moved data refresh from MicroEngineerMod to BaseWindow/ManeuverWindow
  • Renamed MicroStyles to Styles
  • Moved BaseWindow and ManeuverWindow to Windows folder
  • Added manipulation of multiple active nodes, nodes can be deleted, node info can switch to other nodes
  • Fixed OAB torque data updates to use PartManipulationCompletedMessage instead of Update()
  • Simplified instantiation of entries using reflection
  • Reordered entries to have logical ordering
  • Added layout version control, layout will be reset if the layout version is bumped (should be bumped only when there's a breaking change in the window or entry layout)
  • All entries are now of a derived class that coresponds to the category they belong to (ManeuverEntry, OrbitalEntry, etc.)
  • MicroUtility renamed to Utility
  • Removed MetersToDistanceString from Utility to simplify ValueDisplay calls
  • Added phase angle and transfer angle from TransferCalculator-KSP2
  • all other changes are in commits below

- add lots of new entries
- add initial maneuver manipulation
- Rename MicroWindow to BaseWindow
- Add new ManeuverWindow that inherits from BaseWindow
- Move data refresh from MicroEngineerMod to BaseWindow/ManeuverWindow
- Rename MicroStyles to Styles
- Move BaseWindow and ManeuverWindow to Windows folder
- Add manipulation of multiple active nodes, nodes can be deleted, node info can switch to other nodes
- subscribe to ManeuverCreatedMessage: sets the selected node index to the newly created node
- draw new maneuver controls on docked window as well
- Create new ManeuverEntry class, inherits from MicroEntry
- Change ManeuverPrograde, ManeuverNormal, ManeuverRadial category to maneuver
- Fix data refresh from generating NREs if entries are not added to the Maneuver window
- Add new folder Entries
- Move target entries to new file Entries\TargetEntries.cs
- Add new class TargetEntry that inherits from MicroEntry
- All target entries are now TargetEntry
- Move maneuver entries to new file Entries\ManeuverEntries.cs
- Add static UniversalTime to MicroUtility
- Move vessel entries to new file Entries\VesselEntries.cs
- Add new class VesselEntry that inherits from MicroEntry
- All vessel entries are now VesselEntry
- Move flight entries to new file Entries\FlightEntries.cs
- Add new class FlightEntry that inherits from MicroEntry
- All flight entries are now FlightEntry
- Add AngleOfAttack and SideSlip
- Move MicroUtility to Utilities folder
- Move AeroForces to a new file -> Utilities\AeroForces.cs
- Add new class TransferInfo -> Utilities\TransferInfo.cs
- Add TransferAngle
- Move Orbital, Surface, OabStage and MicroEntries to their respective Entries\<file>.cs
- Remove MetersTODistanceString (MicroUtility) to clean up more
- Add BodyEntry
- Further entry refactoring
- Add Themes functionality -> munix, Gray and Black themes
- Add textures for newly added themes ..\assets\images\x.png
- New Settings window that is always drawn popped out
- Settings window: edit windows, save-load-reset layout, theme selection
- Add Settings button with a new texture, button drawn on the top-left of MainGuiWindow ..\assets\images\settings-30.png
- Move entry windows to new EntryWindow class (inherits from BaseWindow)
- Move MainGui window to new MainGuiWindow class (inherits from BaseWindow)
- Move Settings window to new SettingsWindow class (inherits from BaseWindow)
- Locked transparency 80% -> 20%
Also:
- rename MicroEntry to BaseEntry
- move save/load/reset layout to Manager
- Manager is making sure that every instance has an up-to-date version of windows and entries
- reset layout now also rebuilds entries
- Add new textures for close button, settings button, pop out button
- Clicking on each settings button opens edit window with that section/window selected
- Move Pop out button to the right of the section
@Falki-git Falki-git marked this pull request as ready for review April 26, 2023 21:12
@Falki-git Falki-git merged commit afccff6 into Micrologist:main Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant