Skip to content

Set up JavaScript file loading in HTML5 exports#87

Open
GitHusbando wants to merge 2 commits intomasterfrom
julian-javascript-html5-file-loading
Open

Set up JavaScript file loading in HTML5 exports#87
GitHusbando wants to merge 2 commits intomasterfrom
julian-javascript-html5-file-loading

Conversation

@GitHusbando
Copy link
Copy Markdown
Collaborator

Created a singleton to call when loading files from JavaScript.

Replaced file loading when running HTML5 with JavaScript to allow for opening files from the rest of the file system.

Note: the interface is whatever JavaScript uses, not Godot's file dialog, so users are gonna need that to be set up for 2-button navigation, or we're going to have to create a custom file dialog that integrates with JavaScript.

Created a singleton to call when loading files from JavaScript.
Replaced file loading when running HTML5 with JavaScript to allow for opening files from the rest of the file system.
Note: the interface is whatever JavaScript uses, not Godot's file dialog, so users are gonna need that to be set up for 2-button navigation, or we're going to have to create a custom file dialog that integrates with JavaScript.
@GitHusbando GitHusbando requested a review from MacDugRPG February 8, 2026 19:22
Copy link
Copy Markdown
Collaborator

@MacDugRPG MacDugRPG left a comment

Choose a reason for hiding this comment

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

Very cool!

@MacDugRPG
Copy link
Copy Markdown
Collaborator

Hawke looks good to me!

character CSVs should save from the character import scene
note: files will save to the user's downloads folder rather than a specified location; that's just how JavaScript.download_buffer() seems to work
also renamed some functions I made earlier to be more consistent with the other functions
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.

2 participants