Rework scenariomodule, group offset editor and other changes - #43
Merged
Conversation
AMPW-german
commented
Jul 31, 2025
- Reworked the scenario module to use the current saving methods for static instances and added support for groups and map decals
- Added a group offset editor to change the position of all of the static instances relativ to the group center which is useful when creating the base groups for the KC mod, see attached screenshoots
- Added range limits to the group editor with range = 0 disables it
- The group editor window size now gets changed to properly fit everything in the window, previously when changing the name some buttons were not visible
- Some changes to access modifiers
…increment/decrement button/repeatbutton combinations to prevent buttons disappearing while the repeatbutton is active
* Reworked the existing static instance saving for the scenario module to use the normal saving except for writing the config to the disk
…cal group list to prevent a nullref exception when deleting groups via the api
… the instances because it caused issues when there are only instances in the savegame but not in the global storage
…e group itself to better align the basegroups for the KC mod * Made the Actions in the API public to allow the KC group editor to trigger them the old "selectedgroup.save()" does not work with groups in a savegame
…ersion as requirement for KC
* Groupcenters/staticinstances that were previously not in a savegame now get their global config files cleared/deleted
* Delete mapdecal config files upon deletion of the assosciated mapdecal * Don't assign a config path to savegame map decals * Check the correct location (with the ksp application path) if there's already a config file for the new mapdecal config path
… if the active instance gets deleted (nullref exception when a savegame group is the active group and it gets unloaded)
…ALL bases, including from other bodies, are drawn on the current body.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.