mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 16:57:54 +00:00
18 lines
1,007 B
Python
18 lines
1,007 B
Python
from pandac.PandaModules import *
|
|
from otp.otpbase.OTPGlobals import *
|
|
from direct.gui.DirectGui import *
|
|
from MultiPageTextFrame import *
|
|
from otp.otpbase import OTPLocalizer
|
|
from otp.otpgui import OTPDialog
|
|
|
|
class SecretFriendsInfoPanel(getGlobalDialogClass()):
|
|
|
|
def __init__(self, doneEvent, hidePageNum = 0, pageChangeCallback = None):
|
|
dialogClass = getGlobalDialogClass()
|
|
dialogClass.__init__(self, parent=aspect2d, dialogName='secretFriendsInfoDialog', doneEvent=doneEvent, okButtonText=OTPLocalizer.SecretFriendsInfoPanelClose, style=OTPDialog.Acknowledge, text='', topPad=1.5, sidePad=1.2, pos=(0, 0, 0.1), scale=0.9)
|
|
self.textPanel = MultiPageTextFrame(parent=self, textList=OTPLocalizer.SecretFriendsInfoPanelText, hidePageNum=hidePageNum, pageChangeCallback=pageChangeCallback)
|
|
self['image'] = self['image']
|
|
self['image_pos'] = (0, 0, -.1)
|
|
self['image_scale'] = (2, 1, 1.3)
|
|
closeButton = self.getChild(0)
|
|
closeButton.setZ(-.56)
|