-
Notifications
You must be signed in to change notification settings - Fork 98
Add image overlay support to possession mode lenses #4506
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
485867e
Add image overlay support to possession mode lenses
Cerwym dd22e83
refactored to use json loading
Cerwym f35386e
added example mod for lens overlay
Cerwym 03b31b7
Merge branch 'master' into pr/4506
Loobinex 971e0cb
changed load bit flags to descriptive enums
Cerwym fd8420e
Merge branch 'feature/lens-overlay' of github.com:Cerwym/keeperfx int…
Cerwym 3af40d0
corrected render order of swipe effect and lenses
Cerwym 11ce658
thing creature view now scales lens effect for viewport area correctly
Cerwym d65b056
ci added properties json for vscode mingw intellisense
Cerwym 3fe10b1
feat allowe dfor custom lens mist effects, added logic to gracefull l…
Cerwym 8a6de5f
refactor: extract mod fallback file loading into reusable helper func…
Cerwym 819f549
refactor: apply mod fallback helper to mist file loading
Cerwym f249a5f
fix: correct mod fallback helper to check mod_dir flag and file exist…
Cerwym edb4221
feat: added try_load_file_from_mods_with_fallback to consolidate load…
Cerwym 008bda5
chore: log cleanup
Cerwym 2e64ad5
fix: decoupled lens overlay data from save code
Cerwym bf1af73
Some documentation.
Loobinex f1dc88b
fix magenta 255 is now the transparent colour
Cerwym c2b22fa
Merge branch 'feature/lens-overlay' of github.com:Cerwym/keeperfx int…
Cerwym 7ad9f6c
fix added pallete conversion when loading the pngs preserve greyscale
Cerwym b4966e3
fix clear mist flag and biffer if lens has no overlay
Cerwym 755f43f
remove justlog
Cerwym c8c9859
Removed one more JUSTLOG
Loobinex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ; IMP with helmet visor overlay lens + mist effect | ||
|
|
||
| [senses] | ||
| EyeEffect = TEST_WITH_MIST |
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| ; Test Lens Overlay Configuration for KeeperFX | ||
| ; This demonstrates the new ZIP+JSON lens overlay system | ||
|
|
||
| ; NEW TEST LENS WITH OVERLAY GRAPHIC ONLY | ||
| [lens15] | ||
| Name = LENS_HELMET_VISOR | ||
| ; This uses the new overlay system - name references the overlay in lenses.json | ||
| OVERLAY = TUNNELER_VISOR 200 | ||
| ; Alpha transparency: 0-255 (0=fully transparent, 255=fully opaque) | ||
|
|
||
| [lens16] | ||
| Name = TEST_WITH_MIST | ||
| ; You can combine overlays with mist effects | ||
| Mist = frac09.raw 4 0 | ||
| OVERLAY = TUNNELER_VISOR 180 |
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
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
Oops, something went wrong.
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.
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.
value_overlay() uses SYNCLOG for routine parsing traces. This is very noisy during normal config loading; please switch these to SYNCDBG at an appropriate level (or remove once validated) so logs aren’t polluted in non-debug runs.