-
-
Notifications
You must be signed in to change notification settings - Fork 311
4.5.17 #812
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
4.5.17 #812
Conversation
fix: parser trim behavior
fix: fast cannot cancel when mouse wheel down roll
feat: add set effect debug command
Co-authored-by: HardyNLee <[email protected]>
refactor: perform auto-import using import.meta.glob
feat:support .gif
修改.gitattributes文件:eol=lf
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
… bg enter/exit animation config
Integrate Steamworks
fix: parse argument when say content is blank
feat: allow using `enterDuration` and `exitDurationOfPrev` for figure and bg enter/exit animation config
…ml-4.1.1 build(deps): bump js-yaml from 4.1.0 to 4.1.1
feat: add max_line and max_lineHeight config settings
Custom template font
Summary of ChangesHello @MakinoharaShoko, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request delivers a suite of significant upgrades to the WebGAL engine, enhancing its capabilities in animation, platform integration, and content flexibility. The core purpose is to empower game developers with more control over visual presentation and external services, while also improving the underlying stability and parsing of game scripts. These changes collectively aim to provide a richer development experience and more dynamic game content. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This is a substantial pull request that introduces several major features and architectural improvements. The addition of Steam integration, GIF support, and a new template system for fonts significantly expands the engine's capabilities. The refactoring of the animation and font systems to be data-driven and managed through the Redux store is a fantastic improvement for maintainability and extensibility. Numerous other changes, such as parser improvements, error handling, and code cleanup, further enhance the quality and robustness of the codebase. I have one suggestion for a minor refactoring to simplify the logic in the new callSteam script. Overall, this is an excellent set of changes.
| for (const arg of sentence.args) { | ||
| if (arg.key === 'achievementId') { | ||
| const achievementId = getStringArgByKey(sentence, 'achievementId'); | ||
| if (achievementId) { | ||
| WebGAL.steam | ||
| .unlockAchievement(achievementId) | ||
| .then((result) => { | ||
| logger.info(`callSteam: achievement ${achievementId} unlock ${result ? 'succeeded' : 'failed'}`); | ||
| }) | ||
| .catch((error) => { | ||
| logger.error(`callSteam: achievement ${achievementId} unlock threw`, error); | ||
| }); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The for loop here is redundant. The getStringArgByKey function already iterates through the sentence arguments to find the first one with the specified key. You can simplify this logic by removing the loop and calling getStringArgByKey directly.
const achievementId = getStringArgByKey(sentence, 'achievementId');
if (achievementId) {
WebGAL.steam
.unlockAchievement(achievementId)
.then((result) => {
logger.info(`callSteam: achievement ${achievementId} unlock ${result ? 'succeeded' : 'failed'}`);
})
.catch((error) => {
logger.error(`callSteam: achievement ${achievementId} unlock threw`, error);
});
}
Deploying webgal-dev with
|
| Latest commit: |
f191b10
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b68cddaa.webgal-dev.pages.dev |
No description provided.