gui: Fix cattlelog button positioning
This commit is contained in:
parent
c524a638c2
commit
eab342282a
2 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@ from toontown.toonbase import ToontownGlobals
|
|||
from toontown.toonbase import TTLocalizer
|
||||
from direct.gui.DirectGui import *
|
||||
from pandac.PandaModules import *
|
||||
CatalogNotifyBaseXPos = 0.4
|
||||
CatalogNotifyBaseXPos = -0.93
|
||||
|
||||
class CatalogNotifyDialog:
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('CatalogNotifyDialog')
|
||||
|
@ -15,7 +15,7 @@ class CatalogNotifyDialog:
|
|||
from toontown.toon import LocalToon
|
||||
if LocalToon.WantNewsPage:
|
||||
framePosX += LocalToon.AdjustmentForNewsButton
|
||||
self.frame = DirectFrame(relief=None, sortOrder=DGG.BACKGROUND_SORT_INDEX - 2, image=DGG.getDefaultDialogGeom(), image_color=ToontownGlobals.GlobalDialogColor, image_scale=(1.2, 1.0, 0.4), text=message[0], text_wordwrap=16, text_scale=0.06, text_pos=(-0.1, 0.1), pos=(framePosX, 0, 0.78))
|
||||
self.frame = DirectFrame(relief=None, parent=base.a2dTopRight, sortOrder=DGG.BACKGROUND_SORT_INDEX - 2, image=DGG.getDefaultDialogGeom(), image_color=ToontownGlobals.GlobalDialogColor, image_scale=(1.2, 1.0, 0.4), text=message[0], text_wordwrap=16, text_scale=0.06, text_pos=(-0.1, 0.1), pos=(framePosX, 0, -0.22))
|
||||
buttons = loader.loadModel('phase_3/models/gui/dialog_box_buttons_gui')
|
||||
cancelImageList = (buttons.find('**/CloseBtn_UP'), buttons.find('**/CloseBtn_DN'), buttons.find('**/CloseBtn_Rllvr'))
|
||||
okImageList = (buttons.find('**/ChtBx_OKBtn_UP'), buttons.find('**/ChtBx_OKBtn_DN'), buttons.find('**/ChtBx_OKBtn_Rllvr'))
|
||||
|
|
|
@ -60,7 +60,7 @@ from toontown.toontowngui import NewsPageButtonManager
|
|||
if WantNewsPage:
|
||||
from toontown.shtiker import NewsPage
|
||||
AdjustmentForNewsButton = -0.275
|
||||
ClaraBaseXPos = 1.45
|
||||
ClaraBaseXPos = 0.12
|
||||
if (__debug__):
|
||||
import pdb
|
||||
|
||||
|
@ -1025,14 +1025,14 @@ class LocalToon(DistributedToon.DistributedToon, LocalAvatar.LocalAvatar):
|
|||
icon.setColor(white)
|
||||
claraXPos = ClaraBaseXPos
|
||||
newScale = oldScale = 0.5
|
||||
newPos = (claraXPos, 1.0, 0.37)
|
||||
newPos = (claraXPos, 1.0, -0.63)
|
||||
if WantNewsPage:
|
||||
claraXPos += AdjustmentForNewsButton
|
||||
oldPos = ((claraXPos, 1.0, 0.37),)
|
||||
oldPos = ((claraXPos, 1.0, -0.63))
|
||||
newScale = oldScale * ToontownGlobals.NewsPageScaleAdjust
|
||||
newPos = (claraXPos - 0.1, 1.0, 0.45)
|
||||
newPos = (claraXPos - 0.1, 1.0, -0.63)
|
||||
self.__clarabelleButton = DirectButton(relief=None, image=circle, text='', text_fg=(1, 1, 1, 1), text_shadow=(0, 0, 0, 1), text_scale=0.1, text_pos=(-1.06, 1.06), text_font=ToontownGlobals.getInterfaceFont(), pos=newPos, scale=newScale, command=self.__handleClarabelleButton)
|
||||
self.__clarabelleButton.reparentTo(aspect2d, DGG.BACKGROUND_SORT_INDEX - 1)
|
||||
self.__clarabelleButton.reparentTo(base.a2dTopRight, DGG.BACKGROUND_SORT_INDEX - 1)
|
||||
button = self.__clarabelleButton.stateNodePath[0]
|
||||
self.__clarabelleFlash = Sequence(LerpColorInterval(button, 2, white, blendType='easeInOut'), LerpColorInterval(button, 2, rgba, blendType='easeInOut'))
|
||||
self.__clarabelleFlash.loop()
|
||||
|
|
Loading…
Reference in a new issue