import __builtin__ class game: process = 'client' __builtin__.game = game #from lib.toontown.makeatoon.MakeAToon import MakeAToon #from lib.toontown.toon.Toon import Toon base.cr = ClientRepository(['astron/direct.dc']) base.cr.isShowingPlayerIds = False base.cTrav = CollisionTraverser() base.camLens.setMinFov(70.0 / (4./3.)) DGG.setDefaultRolloverSound(base.loadSfx('phase_3/audio/sfx/GUI_rollover.mp3')) DGG.setDefaultClickSound(base.loadSfx('phase_3/audio/sfx/GUI_create_toon_fwd.mp3')) DGG.setDefaultFont(loader.loadFont('phase_3/models/fonts/ImpressBT.ttf')) def make_light(btn, foo): btn['text_fg'] = (1, 1, 1, 1) def make_dark(btn, foo): btn['text_fg'] = (0.8, 0.8, 0.8, 1) def make_button(text, pos, parent, command = None): btn = DirectButton(text = text, relief = None, scale = 0.15, pressEffect = 0, text_fg = (1, 1, 1, 1), text_shadow = (0, 0, 0, 1), pos = pos, text_align = TextNode.ACenter, parent = parent, command = command) btn.bind(DGG.ENTER, make_dark, [btn]) btn.bind(DGG.EXIT, make_light, [btn])