1) [UNSOLVED] At the moment it is not affected by the statusbarscale variable, i.e. it always remains at 100% size.
It starts like this:
onevent EVENT_DISPLAYSBAR ifvare userdef[].screen_size 4 ifvare userdef[].althud 0 { // Remove default HUD set RETURN -1 [...] } endevent
Which modifications would be required to make scaling work?
------------------------------------------
2) [SOLVED] The calculation for the inventory item percentage is somewhat off compared to the original, most likely due to rounding inaccuracies when dividing the inventory amount value.
Example (Steroids):
getp[].steroids_amount INVPCT div INVPCT 4 digitalnumber THREEBYFIVE 98 190 INVPCT 0 0 272 0 0 xdim ydim
If done like this, the modded display would always be slightly lagging behind the original one. Is there any way to make the conversion more accurate? (In the end it's just a display issue since the original, unconverted value remains the same, it's just about the percentage not matching vanilla.)