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

Some lua improvements #15088

Open
wants to merge 25 commits into
base: experimental
Choose a base branch
from

Conversation

LarryFrosty
Copy link
Contributor

@LarryFrosty LarryFrosty commented Jul 12, 2024

Additions:

  • Added removeVar
  • Added the group argument to setObjectOrder and getObjectOrder
  • Added support for GF to cameraSetTarget

Changes:

  • Most "set" functions that didn't return the value now return the value for convenience
    • List of functions include:
      setScore, setMisses, setHits, setHealth, setCharacterX, setCharacterY, setRatingPercent, setRatingName, setRatingFC
  • loadSong now mutes opponent vocals.
  • getRunningScripts now includes HScripts

Fixes:

  • Fixed createCallback's 3rd argument only taking it as a valid instance if parentLua isn't null, which made this function practically useless on .hx files
  • Fixed getLuaTween returning a null error if options aren't present
  • getScreenPositionX and getScreenPositionY now use the camera argument
  • Fixed a typo on setPropertyFromClass and createInstance error messages

after like months from my first pr about cameraSetTarget i only realized now why it errors
@LarryFrosty LarryFrosty reopened this Aug 23, 2024
should make github think im not changing this part of the code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants