Thank you RDB and the P3D team

This commit is contained in:
John 2015-06-17 20:18:11 +03:00
parent 4a5f177318
commit 09f8e68410
2 changed files with 4 additions and 2 deletions

View file

@ -69,7 +69,9 @@ class OTPDialog(DirectDialog):
('button_relief', None, None),
('button_text_pos', (0, -0.1), None),
('fadeScreen', 0.5, None),
('image_color', OTPGlobals.GlobalDialogColor, None))
('image_color', OTPGlobals.GlobalDialogColor, None),
('image', DGG.getDefaultDialogGeom(), None),
('relief', None, None))
self.defineoptions(kw, optiondefs)
DirectDialog.__init__(self, parent)
self.initialiseoptions(OTPDialog)

View file

@ -440,7 +440,7 @@ class NameShop(StateData.StateData):
imageList = (guiButton.find('**/QuitBtn_UP'), guiButton.find('**/QuitBtn_DN'), guiButton.find('**/QuitBtn_RLVR'))
buttonImage = [imageList, imageList]
buttonText = [TTLocalizer.NameShopContinueSubmission, TTLocalizer.NameShopChooseAnother]
self.approvalDialog = DirectDialog(dialogName='approvalstate', topPad=0, fadeScreen=0.2, pos=(0, 0.1, 0.1), button_relief=None, image_color=GlobalDialogColor, text_align=TextNode.ACenter, text=TTLocalizer.NameShopToonCouncil, buttonTextList=buttonText, buttonImageList=buttonImage, buttonValueList=[1, 0], command=self.approvalAction)
self.approvalDialog = DirectDialog(relief=None, image=DGG.getDefaultDialogGeom(), dialogName='approvalstate', topPad=0, fadeScreen=0.2, pos=(0, 0.1, 0.1), button_relief=None, image_color=GlobalDialogColor, text_align=TextNode.ACenter, text=TTLocalizer.NameShopToonCouncil, buttonTextList=buttonText, buttonImageList=buttonImage, buttonValueList=[1, 0], command=self.approvalAction)
self.approvalDialog.buttonList[0].setPos(0, 0, -.3)
self.approvalDialog.buttonList[1].setPos(0, 0, -.43)
self.approvalDialog['image_scale'] = (0.8, 1, 0.77)