Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shock tuning script (+ scripting improvements) #2920

Merged
merged 7 commits into from
Sep 29, 2024

Commits on Sep 29, 2024

  1. Configuration menu
    Copy the full SHA
    c3513c9 View commit details
    Browse the repository at this point in the history
  2. Created proof-of-concept shock tuning script.

    Uses DearIMGUI graphs to visualize shock spring/damp/velo values.
    ohlidalp committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    8dd17e0 View commit details
    Browse the repository at this point in the history
  3. script_editor.as: Fixed broken autosaves (missing folds)

    Also improved quality of life: editor now recognizes _AUTOSAVE suffix and loads under orig name.
    ohlidalp committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    45bd0c8 View commit details
    Browse the repository at this point in the history
  4. script_editor.as: Fixed angelscript panic (ExceptionCallback) handling.

    The STOP/RUN button now recognizes the crash and resets.
    The exceptions panel now stays open and shows the errors. There are new buttons [clear] per line and [clear all].
    
    Unrelated: cleaned lots of older DBG messages.
    ohlidalp committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    0c37c2b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6dac2af View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    467f7ee View commit details
    Browse the repository at this point in the history
  7. 👼Script: Fixed open param of ImGui::Begin()

    This snowballed into a big grooming of scripts:
    - all individual scripts, including all examples, had to be fixed.
    - a helper class `CloseWindowPrompt` was added to 'imgui_utils.as'
    - Bindings of 'ImGuiCol_' enum were added to the game, copypasted constants were removed from all scripts.
    - a copypasted helper `getDummyFullscreenWindow()` was also added to 'imgui_utils.as' - related because it uses ImGuiCol_ constant.
    - the Tutorial script in script_editor.as was updated to use `CloseWindowPrompt` from 'imgui_utils.as' - the separate example script was removed.
    ohlidalp committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    4141d0c View commit details
    Browse the repository at this point in the history