NodotProject / nodot

A node composition library for Godot 4
https://nodotproject.github.io/nodot/
MIT License
332 stars 12 forks source link

Various fixes #155

Closed krazyjakee closed 10 months ago

krazyjakee commented 10 months ago

Includes various fixes that improve the project. Here's a summary of the changes:

  1. In the InputManager.gd file:

    • Added the default_input_actions variable to store the default input actions.
    • Modified the load function to remove the reload_scene parameter and its related code.
    • Added the reset_to_defaults function to set all input actions to their default values.
    • Added the set_all_input_actions function to set all input actions based on a given dictionary.
    • Added the get_all_input_actions function to retrieve all input actions as a dictionary.
  2. In the SaveManager.gd file:

    • Removed the reload_scene parameter from the load function and its related code.
  3. In the Fire3D.gd file:

    • Added the emission_direction variable to control the direction of the fire.
    • Modified the _emission_direction_set function to update the direction of the fire particles.
    • Updated the _setup_fire_particle function to use the emission_direction variable.
  4. In the Laser3D.gd file:

    • Added the transparency variable to control the transparency of the laser.
    • Added the gi_mode variable to control the GI mode of the laser.
    • Added the gi_lightmap_scale variable to control the GI lightmap scale of the laser.
    • Modified the _enter_tree function to set the transparency, GI mode, and GI lightmap scale of the laser.
  5. In the Pause.gd file:

    • Added the release_mouse_on_pause variable to control whether the mouse is released on pause.
    • Added the saved_mouse_mode variable to store the mouse mode before pausing.
    • Modified the _set_pause function to release the mouse when pausing and restore the previous mouse mode when unpausing.

These changes fix various issues and add new functionality to the project, improving its overall stability and user experience.