hobbits icon indicating copy to clipboard operation
hobbits copied to clipboard

Option to display offsets in hex

Open hut8 opened this issue 2 years ago • 2 comments

It would be super great if these offsets could optionally be displayed in hex rather than decimal:

image

I'll try to get to this myself!

hut8 avatar May 14 '23 19:05 hut8

I would be happy to pull this in if you added it. I think you would do the hex text rendering somewhere in here: https://github.com/Mahlet-Inc/hobbits/blob/master/src/hobbits-widgets/displayhelper.cpp#L298

And then if you wanted per-display toggles, you'd need to add a control for that in each display plugin's AbstractParameterEditor implementation: https://github.com/Mahlet-Inc/hobbits/blob/master/src/hobbits-plugins/displays/Hex/hexform.cpp

and then a way to read and use that parameter configuration: https://github.com/Mahlet-Inc/hobbits/blob/master/src/hobbits-plugins/displays/Hex/hex.cpp#L12

Or, as a lazy option, you could make it a global setting (src/hobbitscore/settings*)

hello-adam avatar May 18 '23 13:05 hello-adam

Oh wow, thanks for the guidance! Very much appreciated. I'll get to this ASAP

hut8 avatar May 18 '23 16:05 hut8