Skip to content

mouseDown on uiImageButton #587

Answered by bijlevel
bijlevel asked this question in Q&A
Dec 31, 2023 · 3 comments · 11 replies
Discussion options

You must be logged in to vote

Well, I solved it. It was wrong coding. I mistakingly use a '.' instead of ':', so instead of db = flags.setBitRangeAsInt() I had to use flags:setBitRangeAsInt(). So now my actual code looks like this:
flagSetting = BigInteger(dbSpecial)

flagSetting:setBitRangeAsInt(3,1,1)
dbSpecial = flagSetting:getBitRangeAsInt(0,8)`

So the set part changes a bit in the byte to 1 and the get part gets the changed value for dbSpecial.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@bijlevel
Comment options

@dobo365
Comment options

@bijlevel
Comment options

@bijlevel
Comment options

Answer selected by bijlevel
@dobo365
Comment options

Comment options

You must be logged in to vote
4 replies
@bijlevel
Comment options

@dnaldoog
Comment options

@dnaldoog
Comment options

@bijlevel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants