import { Mod } from "../mod" ; /**
 * This mod add the possibility to hide the floating shop button
 */ export class HideShop extends Mod { private hidden_shop : boolean ; startMod ( ) { this . hidden_shop = this . settings . option . general . hidden_shop ; const toggle = ( ) => { if ( this . hidden_shop ) this . wGame . gui . shopFloatingToolbar . hide ( ) ; else this . wGame . gui . shopFloatingToolbar . show ( ) ; } ; this . on ( this . wGame . gui . fightManager , 'fightEnd' , toggle ) ; setTimeout ( toggle , 1000 ) ; } }