Merge branch 'master' of gitlab.com:ToontownUnited/src

This commit is contained in:
Zach 2015-04-21 22:33:18 -05:00
commit 4b5c0e29be
3 changed files with 23 additions and 23 deletions

View file

@ -117,7 +117,7 @@ speedChatStyles = (
(210 / 255.0, 200 / 255.0, 180 / 255.0)
)
)
PageMode = PythonUtil.Enum('Options, Codes, MoreOptions')
PageMode = PythonUtil.Enum('Options, Codes, Extra')
class OptionsPage(ShtikerPage.ShtikerPage):
@ -128,11 +128,11 @@ class OptionsPage(ShtikerPage.ShtikerPage):
self.optionsTabPage = None
self.codesTabPage = None
self.moreOptionsTabPage = None
self.extraOptionsTabPage = None
self.title = None
self.optionsTab = None
self.codesTab = None
self.moreOptionsTab = None
self.extraOptionsTab = None
def load(self):
ShtikerPage.ShtikerPage.load(self)
@ -141,8 +141,8 @@ class OptionsPage(ShtikerPage.ShtikerPage):
self.optionsTabPage.hide()
self.codesTabPage = CodesTabPage(self)
self.codesTabPage.hide()
self.moreOptionsTabPage = MoreOptionsTabPage(self)
self.moreOptionsTabPage.hide()
self.extraOptionsTabPage = ExtraOptionsTabPage(self)
self.extraOptionsTabPage.hide()
self.title = DirectLabel(
parent=self, relief=None, text=TTLocalizer.OptionsPageTitle,
@ -173,16 +173,16 @@ class OptionsPage(ShtikerPage.ShtikerPage):
image2_color=rolloverColor, image3_color=diabledColor,
text_fg=Vec4(0.2, 0.1, 0, 1), command=self.setMode,
extraArgs=[PageMode.Codes], pos=(-0.12, 0, 0.77))
self.moreOptionsTab = DirectButton(
parent=self, relief=None, text=TTLocalizer.MoreOptionsPageTitle,
text_scale=TTLocalizer.OPmoreOptionsTab, text_align=TextNode.ALeft,
text_pos=(-0.035, 0.0, 0.0),
self.extraOptionsTab = DirectButton(
parent=self, relief=None, text=TTLocalizer.ExtraOptionsPageTitle,
text_scale=TTLocalizer.OPextraOptionsTab, text_align=TextNode.ALeft,
text_pos=(0.027, 0.0, 0.0),
image=gui.find('**/tabs/polySurface2'), image_pos=(0.12, 1, -0.91),
image_hpr=(0, 0, -90), image_scale=(0.033, 0.033, 0.035),
image_color=normalColor, image1_color=clickColor,
image2_color=rolloverColor, image3_color=diabledColor,
text_fg=Vec4(0.2, 0.1, 0, 1), command=self.setMode,
extraArgs=[PageMode.MoreOptions], pos=(0.42, 0, 0.77))
extraArgs=[PageMode.Extra], pos=(0.42, 0, 0.77))
gui.removeNode()
def enter(self):
@ -234,24 +234,24 @@ class OptionsPage(ShtikerPage.ShtikerPage):
self.optionsTabPage.enter()
self.codesTab['state'] = DGG.NORMAL
self.codesTabPage.exit()
self.moreOptionsTab['state'] = DGG.NORMAL
self.moreOptionsTabPage.exit()
self.extraOptionsTab['state'] = DGG.NORMAL
self.extraOptionsTabPage.exit()
elif mode == PageMode.Codes:
self.title['text'] = TTLocalizer.CdrPageTitle
self.optionsTab['state'] = DGG.NORMAL
self.optionsTabPage.exit()
self.moreOptionsTab['state'] = DGG.NORMAL
self.moreOptionsTabPage.exit()
self.extraOptionsTab['state'] = DGG.NORMAL
self.extraOptionsTabPage.exit()
self.codesTab['state'] = DGG.DISABLED
self.codesTabPage.enter()
elif mode == PageMode.MoreOptions:
self.title['text'] = TTLocalizer.MoreOptionsPageTitle
elif mode == PageMode.Extra:
self.title['text'] = TTLocalizer.ExtraOptionsPageTitle
self.optionsTab['state'] = DGG.NORMAL
self.optionsTabPage.exit()
self.codesTab['state'] = DGG.NORMAL
self.codesTabPage.exit()
self.moreOptionsTab['state'] = DGG.DISABLED
self.moreOptionsTabPage.enter()
self.extraOptionsTab['state'] = DGG.DISABLED
self.extraOptionsTabPage.enter()
class OptionsTabPage(DirectFrame):
notify = directNotify.newCategory('OptionsTabPage')
@ -700,8 +700,8 @@ class CodesTabPage(DirectFrame):
self.codeInput['focus'] = 1
self.submitButton['state'] = DGG.NORMAL
class MoreOptionsTabPage(DirectFrame):
notify = directNotify.newCategory('MoreOptionsTabPage')
class ExtraOptionsTabPage(DirectFrame):
notify = directNotify.newCategory('ExtraOptionsTabPage')
def __init__(self, parent = aspect2d):
self.parent = parent
@ -758,4 +758,4 @@ class MoreOptionsTabPage(DirectFrame):
def __setCogLevelGuiButton(self):
self.cogLevel_label['text'] = TTLocalizer.CogLevelLabelOn if settings['cogLevel'] else TTLocalizer.CogLevelLabelOff
self.cogLevel_toggleButton['text'] = TTLocalizer.OptionsPageToggleOff if settings['cogLevel'] else TTLocalizer.OptionsPageToggleOn
self.cogLevel_toggleButton['text'] = TTLocalizer.OptionsPageToggleOff if settings['cogLevel'] else TTLocalizer.OptionsPageToggleOn

View file

@ -3847,7 +3847,7 @@ MapPageYouAreAtHome = 'You are at\nyour estate'
MapPageYouAreAtSomeonesHome = 'You are at %s estate'
MapPageGoTo = 'Go To\n%s'
OptionsPageTitle = 'Options'
MoreOptionsPageTitle = 'More Options'
ExtraOptionsPageTitle = 'Extra'
OptionsTabTitle = 'Options\n& Codes'
OptionsPageExitToontown = 'Exit Toontown'
OptionsPageMusicOnLabel = 'Music is on.'

View file

@ -236,7 +236,7 @@ TPstartFrame = 0.12
TPendFrame = 0.12
SBpageTab = 0.75
OPoptionsTab = 0.07
OPmoreOptionsTab = 0.06
OPextraOptionsTab = 0.075
OPCodesInstructionPanelTextPos = (0, -0.01)
OPCodesInstructionPanelTextWordWrap = 6
OPCodesResultPanelTextPos = (0, 0.35)