Skip to content

Commit

Permalink
Add RNDX.SetFlag function for flag manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Srlion committed Feb 3, 2025
1 parent 1cb1e47 commit 228eaaf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rndx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,12 @@ RNDX.SHAPE_IOS = SHAPE_IOS

RNDX.BLUR = BLUR

function RNDX.SetFlag(flags, flag, bool)
if tobool(bool) then
return bit.bor(flags, flag)
else
return bit.band(flags, bit.bnot(flag))
end
end

return RNDX

0 comments on commit 228eaaf

Please sign in to comment.