mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-06-29 11:40:38 +00:00
Makes sure percentage reaches 100% at the end of Help update.
This commit is contained in:
parent
bd529ffa07
commit
a953611c00
|
@ -13855,7 +13855,7 @@ SUB ideupdatehelpbox
|
||||||
NEXT i
|
NEXT i
|
||||||
|
|
||||||
COLOR 0, 7
|
COLOR 0, 7
|
||||||
IF UpdateStep >= 5 THEN
|
IF UpdateStep = 5 THEN
|
||||||
maxprogresswidth = 52 'arbitrary
|
maxprogresswidth = 52 'arbitrary
|
||||||
percentage = INT(n / c * 100)
|
percentage = INT(n / c * 100)
|
||||||
percentagechars = INT(maxprogresswidth * n / c)
|
percentagechars = INT(maxprogresswidth * n / c)
|
||||||
|
@ -13863,6 +13863,10 @@ SUB ideupdatehelpbox
|
||||||
percentageMsg$ = STRING$(percentagechars, 219) + STRING$(maxprogresswidth - percentagechars, 176) + STR$(percentage) + "%"
|
percentageMsg$ = STRING$(percentagechars, 219) + STRING$(maxprogresswidth - percentagechars, 176) + STR$(percentage) + "%"
|
||||||
LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1
|
LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1
|
||||||
PRINT percentageMsg$;
|
PRINT percentageMsg$;
|
||||||
|
ELSEIF UpdateStep = 6 THEN
|
||||||
|
percentageMsg$ = STRING$(maxprogresswidth, 219) + "100%"
|
||||||
|
LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1
|
||||||
|
PRINT percentageMsg$;
|
||||||
END IF
|
END IF
|
||||||
'-------- end of custom display changes --------
|
'-------- end of custom display changes --------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue