Skip to content

Add welcome popup - #39

Merged
ABKQPO merged 13 commits into
GTNewHorizons:masterfrom
DreamYao520:agent/welcome-popup
Jul 11, 2026
Merged

Add welcome popup#39
ABKQPO merged 13 commits into
GTNewHorizons:masterfrom
DreamYao520:agent/welcome-popup

Conversation

@DreamYao520

@DreamYao520 DreamYao520 commented Jul 9, 2026

Copy link
Copy Markdown
Member

What changed

  • Added a first-open welcome popup when GuideNH is opened.
  • The popup content is loaded from localized resources under assets/guidenh/welcome/ and rendered through the GuideNH page compiler/layout pipeline.
  • Added per-player/per-save seen state so the popup only appears once for that player in that save.
827a8aa3f3b1a92d4424a02fda192b75 ## Summary This PR adds a localized first-open welcome popup for GuideNH.

The popup is shown the first time a player opens GuideNH in a save, giving new users a short introduction to what GuideNH is and how to use it. Its content is resource-driven instead of hardcoded, so pack authors can edit or replace the English and Chinese welcome text through localized resources.

The popup uses the existing GuideNH markdown/MDX rendering pipeline, allowing the welcome page to use supported guide syntax such as formatted text, item icons, keybind hints, and other guide components.

A per-player/per-save seen state is added so the popup does not repeatedly appear after it has been dismissed.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

Comment thread src/main/resources/assets/guidenh/welcome/en_us.md
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md
Comment thread src/main/java/com/hfstudio/guidenh/guide/internal/welcome/GuideWelcomeState.java Outdated
Comment thread src/main/java/com/hfstudio/guidenh/guide/internal/welcome/GuideWelcomeScreen.java Outdated
Comment thread src/main/java/com/hfstudio/guidenh/guide/internal/welcome/GuideWelcomePopup.java Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
Comment thread src/main/resources/assets/guidenh/welcome/zh_cn.md Outdated
DreamYao520 and others added 7 commits July 11, 2026 02:51
Co-authored-by: ABKQPO <93412322+ABKQPO@users.noreply.github.com>
Co-authored-by: ABKQPO <93412322+ABKQPO@users.noreply.github.com>
Co-authored-by: ABKQPO <93412322+ABKQPO@users.noreply.github.com>
Co-authored-by: ABKQPO <93412322+ABKQPO@users.noreply.github.com>
Co-authored-by: ABKQPO <93412322+ABKQPO@users.noreply.github.com>
@Windorain Windorain added the New Feature Add something new. Please explain in detail how it works. label Jul 11, 2026
@ABKQPO
ABKQPO merged commit e2e00cb into GTNewHorizons:master Jul 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Feature Add something new. Please explain in detail how it works.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants