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

Better SceneTags #2361

Merged
merged 11 commits into from Sep 16, 2023
Merged

Conversation

NotThorny
Copy link
Member

Description

Better handling and implementations for scene tags.

  • Adds LUA handling of scenetags
  • De-hardcodes scenetags so that they can be properly added and removed
  • Add command to manually add and remove scenetags

Type of changes

  • Bug fix
  • New feature
  • Enhancement
  • Documentation

Checklist:

  • My code follows the style guidelines of this project
  • My pull request is unique and no other pull requests have been opened for these changes
  • I have read the Contributing note and Code of conduct
  • I am responsible for any copyright issues with my code if it occurs in the future.

logger.warn("[LUA] Call unimplemented AddSceneTag with {}, {}", sceneId, sceneTagId);
//TODO implement
logger.debug("[LUA] Call AddSceneTag with {}, {}", sceneId, sceneTagId);
sceneScriptManager.get().getScene().getHost().getProgressManager().addSceneTag(sceneId, sceneTagId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is probably a better way of getting the scene or the host

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at other methods but it seemed like this was going to be the cleanest method from within ScriptLib. If you'd prefer new imports & methods I'm open to suggestion.

NotThorny and others added 5 commits September 14, 2023 22:49
…and.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
…and.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
@KingRainbow44 KingRainbow44 merged commit 0e44d18 into Grasscutters:development Sep 16, 2023
2 checks passed
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.

None yet

3 participants