rpgtkoolmv / corescript

http://www.rpgmakerweb.com/products/programs/rpg-maker-mv
MIT License
311 stars 75 forks source link

Fix progress bar width for small width games #205

Open rutan opened 5 years ago

rutan commented 5 years ago

Fixed an issue where the progress bar was larger than the game screen, if I set the screenWidth value to less than 610 in CommunityBasic.js (It is happen with a game for smartphones :sob: :iphone: )

Video: https://youtu.be/urLdUwQpIOM


I tried the following two changes! :laughing:

(1) I added a process to recalculate the width to Graphics._updateProgress. (like Graphics._updateErrorPrinter)

(2) I added border-box style to Graphics._barElement. Graphics._barElement has a width of 100% and has a 5px border. Therefore, the element width was 610 px ( 100% + 5 px * 2 )