config: finish cleanup

This commit is contained in:
John Cote 2020-01-05 20:41:44 -05:00
parent 2f0de649ef
commit 665c5ae39e
4 changed files with 0 additions and 25 deletions

View file

@ -12,12 +12,8 @@ require-window 0
icon-filename phase_3/models/gui/toontown.ico
dx-management 1
tt-specific-login 1
decompressor-buffer-size 32768
extractor-buffer-size 32768
patcher-buffer-size 512000
downloader-timeout 15
downloader-timeout-retries 4
downloader-disk-write-frequency 4
downloader-byte-rate 125000
downloader-frequency 0.1
http-connect-timeout 20
@ -27,8 +23,6 @@ aux-display pandagl
aux-display pandadx9
aux-display tinydisplay
depth-bits 24
win-size 800 600
fullscreen #t
early-random-seed 1
respect-prev-transform 1
default-directnotify-level info
@ -43,7 +37,6 @@ decompressor-step-time 0.5
extractor-step-time 0.5
required-login playToken
server-failover 80 443
want-fog #t
dx-use-rangebased-fog #t
aspect-ratio 1.333333
on-screen-debug-font ImpressBT.ttf
@ -60,8 +53,6 @@ audio-library-name null
cursor-filename phase_3/models/gui/toonmono.cur
audio-sfx-active #t
audio-music-active #t
audio-master-sfx-volume 1
audio-master-music-volume 1
want-dev 0
schellgames-dev 0
text-minfilter linear_mipmap_linear

View file

@ -43,14 +43,6 @@ class Settings:
def getToonChatSounds():
return 1
@staticmethod
def getMusicVolume():
return 1
@staticmethod
def getSfxVolume():
return 1
@staticmethod
def setResolutionDimensions(_, __):
pass

View file

@ -27,8 +27,6 @@ class DisplayOptions:
music = Settings.getMusic()
sfx = Settings.getSfx()
toonChatSounds = Settings.getToonChatSounds()
musicVol = Settings.getMusicVolume()
sfxVol = Settings.getSfxVolume()
resList = [(640, 480),
(800, 600),
(1024, 768),
@ -57,8 +55,6 @@ class DisplayOptions:
self.notify.debug('settings full screen mode=%s' % str(mode))
loadPrcFileData('toonBase Settings Music Active', 'audio-music-active %s' % music)
loadPrcFileData('toonBase Settings Sound Active', 'audio-sfx-active %s' % sfx)
loadPrcFileData('toonBase Settings Music Volume', 'audio-master-music-volume %s' % musicVol)
loadPrcFileData('toonBase Settings Sfx Volume', 'audio-master-sfx-volume %s' % sfxVol)
loadPrcFileData('toonBase Settings Toon Chat Sounds', 'toon-chat-sounds %s' % toonChatSounds)
self.settingsFullScreen = mode
self.settingsWidth = res[0]

View file

@ -27,8 +27,6 @@ class ToonBase(OTPBase.OTPBase):
music = Settings.getMusic()
sfx = Settings.getSfx()
toonChatSounds = Settings.getToonChatSounds()
musicVol = Settings.getMusicVolume()
sfxVol = Settings.getSfxVolume()
resList = [(640, 480),
(800, 600),
(1024, 768),
@ -43,8 +41,6 @@ class ToonBase(OTPBase.OTPBase):
loadPrcFileData('toonBase Settings Window FullScreen', 'fullscreen %s' % mode)
loadPrcFileData('toonBase Settings Music Active', 'audio-music-active %s' % music)
loadPrcFileData('toonBase Settings Sound Active', 'audio-sfx-active %s' % sfx)
loadPrcFileData('toonBase Settings Music Volume', 'audio-master-music-volume %s' % musicVol)
loadPrcFileData('toonBase Settings Sfx Volume', 'audio-master-sfx-volume %s' % sfxVol)
loadPrcFileData('toonBase Settings Toon Chat Sounds', 'toon-chat-sounds %s' % toonChatSounds)
OTPBase.OTPBase.__init__(self)
if not self.isMainWindowOpen():