mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Wegame adjustments 2/2
This commit is contained in:
		
							parent
							
								
									74ab44df3a
								
							
						
					
					
						commit
						cd086f7fd0
					
				@ -249,10 +249,10 @@ export function formatBigNumber(num, separator = T.global.decimalSeparator) {
 | 
			
		||||
    } else {
 | 
			
		||||
        if (G_WEGAME_VERSION) {
 | 
			
		||||
            if (num < 1000000) {
 | 
			
		||||
                if (num < 100000) {
 | 
			
		||||
                if (num < 10000) {
 | 
			
		||||
                    return sign + String(num).replace(".0", "").replace(".", separator);
 | 
			
		||||
                } else {
 | 
			
		||||
                    return sign + Math.round(num / 10000.0) + T.global.suffix.thousands;
 | 
			
		||||
                    return sign + round2Digits(num / 10000.0) + T.global.suffix.thousands;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -346,15 +346,11 @@ export class PreloadState extends GameState {
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="failureInner">
 | 
			
		||||
                    <div class="errorHeader">
 | 
			
		||||
                    Failed to initialize application!
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="errorMessage">
 | 
			
		||||
                        ${this.currentStatus} failed:<br/>
 | 
			
		||||
                        ${text}
 | 
			
		||||
                    应用初始化失败!
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                    <div class="lower">
 | 
			
		||||
                        <button class="resetApp styledButton">Reset App</button>
 | 
			
		||||
                        <i>Build ${G_BUILD_VERSION} @ ${G_BUILD_COMMIT_HASH}</i>
 | 
			
		||||
                        <i>建造。${G_BUILD_VERSION} @ ${G_BUILD_COMMIT_HASH}</i>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
        `;
 | 
			
		||||
@ -362,9 +358,6 @@ export class PreloadState extends GameState {
 | 
			
		||||
        this.htmlElement.classList.add("failure");
 | 
			
		||||
        this.htmlElement.appendChild(subElement);
 | 
			
		||||
 | 
			
		||||
        const resetBtn = subElement.querySelector("button.resetApp");
 | 
			
		||||
        this.trackClicks(resetBtn, this.showResetConfirm);
 | 
			
		||||
 | 
			
		||||
        this.hintsText.remove();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user