Skip to content
Snippets Groups Projects

Globalizes local random functions from HUD into random library and experimentally moves HUD non-drawing functions to hud library.

Open Skydusk requested to merge Acelite/SRB2:freevideolibtohud into next

Random lib:

	random.localfixed
	random.localbyte
	random.localkey
	random.localrange
	random.localsignedrandom
	random.localchance

(just take description from current HUD random functions)

However, I still think this should be in its own MR.

HUD lib:

	hud.patchExists
	hud.cachePatch
	hud.getSpritePatch
	hud.getSprite2Patch
	hud.width
	hud.height
	hud.scale
	hud.renderer

(Same thing here)

NOTE: regarding hud.scale, v.dupx and v.dupy are pretty much the same alias function at this point. So I just unify the name.

As another experiment. All HUDONLY guardrails of these functions were removed. While my testing was issue-less, it should warrant some testing.

boldtest.lua

Edited by Skydusk

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
  • Skydusk changed title from Globalizes local random functions from hud into random library and moves to Globalizes local random functions from HUD into random library and experimentally moves HUD non-drawing functions to hud library.

    changed title from Globalizes local random functions from hud into random library and moves to Globalizes local random functions from HUD into random library and experimentally moves HUD non-drawing functions to hud library.

  • Skydusk changed the description

    changed the description

  • LJ Sonic approved this merge request

    approved this merge request

  • Skydusk added 132 commits

    added 132 commits

    Compare with previous version

  • Skydusk added 1 commit

    added 1 commit

    • 9132f690 - Removed getColormap && getStringColormap from hud library (not draw library).

    Compare with previous version

  • Skydusk changed the description

    changed the description

Please register or sign in to reply
Loading