This adds getSpritePatch to the BLUA HUD functions.
NOTE: The function is structured similarly to 2.2's getSprite2Patch function, and not the standard getSpritePatch function, due to the player-sprite handling:
v.getSpritePatch(string/int skin, string/int sprite, [int frame, [int rotation, [angle_t rollangle]]])
getSpritePatch allows for advanced HUD capabilities by drawing object sprites on the HUD, allowing for the following features:
Draw object sprites on the screen, with support for 8 angles. Good for stuff like lua menus.
Draw rotating patches on the screen. Good for flashier HUD effects, or things like a dial speedometer.
NOTE: This is disabled if Sprite Rotation is turned off.
This adds
getSpritePatch
to the BLUA HUD functions. NOTE: The function is structured similarly to 2.2'sgetSprite2Patch
function, and not the standardgetSpritePatch
function, due to the player-sprite handling:v.getSpritePatch(string/int skin, string/int sprite, [int frame, [int rotation, [angle_t rollangle]]])
getSpritePatch
allows for advanced HUD capabilities by drawing object sprites on the HUD, allowing for the following features:I've attached a test lua for this addition: bananatest.txt (save as a .lua file!)
Should everything work fine, you should see two rotating sprites (a banana, and Tails with the default green) on the upper left corner of the screen: