Add bitmap layer studio usage examples#718
Open
222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
Open
Add bitmap layer studio usage examples#718222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
Conversation
Add Bitmap Layer Studio usage examples in multiple languages: C# (OOP and top-level), C++, and Python, plus a PNG preview and short text blurb. Examples demonstrate loading four bitmap layers, alpha blending guides, and back-to-front compositing for parallax/depth. Also normalize category capitalization in scripts/json-files/guides-groups.json ("camera" -> "Camera", "graphics" -> "Graphics") for consistency.
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Add API-aware URL resolution and expand usage example registry. Introduces getApiFunctionLookup and getExampleUrl in scripts/usage-example-scraping.cjs to decide whether an example should link to /api/... or /usage-examples/... based on api.json. Updates scripts/json-files/usage-example-references.json with new example entries (color, several geometry and graphics examples, a windows category, etc.), reorders/removes a duplicate lines_intersect entry, and adjusts example titles. These changes ensure example links point to the correct destination and register newly added examples.
Update usage example links to point at /api instead of /usage-examples and make the scraping/testing scripts more robust. Changes: adjusted JSON references to /api/, changed scraping fallback to return /api/<category>, simplified getFunctionLink to prefer unique_global_name anchors (stable API anchors), and added support for both nested and flat usage-example layouts by detecting folder structure and computing txt/code/output paths accordingly. These changes ensure links/anchors remain correct and examples are found for different repository layouts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new integrated Graphics usage example bundle for Bitmap Layer Studio across C++, C# (top-level + OOP), and Python, along with a PNG preview and a short title/description text file.
Motivation:
Related issue:
Dependencies:
Type of change
How Has This Been Tested?
Executed and verified:
Notes:
Testing Checklist
Checklist
If involving code
If modified config files
Folders and Files Added/Modified
Additional Notes