Skip to content

Commit

Permalink
Allow flags' keys to be passed as strings or just directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Srlion committed Feb 3, 2025
1 parent 228eaaf commit b2d2c8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rndx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ RNDX.SHAPE_IOS = SHAPE_IOS
RNDX.BLUR = BLUR

function RNDX.SetFlag(flags, flag, bool)
flag = RNDX[flag] or flag
if tobool(bool) then
return bit.bor(flags, flag)
else
Expand Down

0 comments on commit b2d2c8c

Please sign in to comment.