Skip to content
Snippets Groups Projects

Some more intermission features for Lua

Merged Golden requested to merge Golden/SRB2:disable-int-emeralds into next

totally not using this to create something

  • Allows Lua to disable the emeralds in the Special Stage intermission from rendering.
  • Allows Lua to disable the title card font text that renders in Co-op and Special Stage intermissions.,
  • Sends IntermissionThinker and intermission hud hooks the stagefailed variable (always false outside of Special Stages)
  • This kinda stretches the definition of "intermission" feature, but I also added level title font drawing capabilities too, with a height and width function to boot.
Edited by Golden

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • James R. added Lua label

    added Lua label

  • Golden added 1 commit

    added 1 commit

    • d89e895f - Allow Lua to stop the intermission level title strings from drawing

    Compare with previous version

  • Golden changed title from Allow Lua to disable the emeralds that appear in the Special Stage intermission. to Allow Lua to disable the emeralds and level title text that appears in the Special Stage intermission.

    changed title from Allow Lua to disable the emeralds that appear in the Special Stage intermission. to Allow Lua to disable the emeralds and level title text that appears in the Special Stage intermission.

  • Author Contributor

    Note: I just allowed Lua to disable level title text that displays in intermissions too.

  • Golden added 1 commit

    added 1 commit

    • d6b1df58 - Send IntermissionThinker and intermission hud hooks `stagefailed`.

    Compare with previous version

  • Golden changed title from Allow Lua to disable the emeralds and level title text that appears in the Special Stage intermission. to Some more intermission features for Lua

    changed title from Allow Lua to disable the emeralds and level title text that appears in the Special Stage intermission. to Some more intermission features for Lua

  • Golden changed the description

    changed the description

  • Author Contributor

    Before anyone asks why a lua_gettop(gL) == 1 check isn't in the IntermissionThinker hook, if I had the check it'd push the hooked function on the first and third calls.

    As it is setup right now there are no apparent issues with how stagefailed is read from the IntermissionThinker hook; I've tested it and it always seems to return the correct boolean without issue.

    Yes, I also tested with multiple hooks.

    Edited by Golden
  • Golden added 1 commit

    added 1 commit

    • 82238447 - Allow Lua to draw level title strings, and get the width and height of what would be drawn

    Compare with previous version

  • Golden changed the description

    changed the description

  • added Feature label

  • Golden added 258 commits

    added 258 commits

    • 82238447...d71b99a5 - 254 commits from branch STJr:next
    • 6c4e7e13 - Allow Lua to disable the emeralds that appear in the Special Stage intermission.
    • aa54a04c - Allow Lua to stop the intermission level title strings from drawing
    • 43c21edc - Send IntermissionThinker and intermission hud hooks `stagefailed`.
    • e7156db7 - Allow Lua to draw level title strings, and get the width and height of what would be drawn

    Compare with previous version

  • merged

  • sphere mentioned in commit 5a91f332

    mentioned in commit 5a91f332

  • sphere changed milestone to %2.2.10

    changed milestone to %2.2.10

  • Radicalicious mentioned in merge request !1532 (merged)

    mentioned in merge request !1532 (merged)

Please register or sign in to reply
Loading