mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Change watermark interval
This commit is contained in:
		
							parent
							
								
									344f213566
								
							
						
					
					
						commit
						8b7c0a91cd
					
				| @ -4,6 +4,9 @@ import { T } from "../../../translations"; | ||||
| import { BaseHUDPart } from "../base_hud_part"; | ||||
| import { DynamicDomAttach } from "../dynamic_dom_attach"; | ||||
| 
 | ||||
| const watermarkShowIntervalSeconds = G_IS_DEV ? 120 : 7 * 60; | ||||
| const watermarkShowDuration = 5; | ||||
| 
 | ||||
| export class HUDWatermark extends BaseHUDPart { | ||||
|     createElements(parent) { | ||||
|         this.element = makeDiv( | ||||
| @ -38,7 +41,9 @@ export class HUDWatermark extends BaseHUDPart { | ||||
|     } | ||||
| 
 | ||||
|     update() { | ||||
|         this.domAttach.update(this.root.time.realtimeNow() % (G_IS_DEV ? 20 : 180) < 5); | ||||
|         this.domAttach.update( | ||||
|             this.root.time.realtimeNow() % watermarkShowIntervalSeconds < watermarkShowDuration | ||||
|         ); | ||||
|     } | ||||
| 
 | ||||
|     onWatermarkClick() { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user