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