Jump to content

Quest text align - HOW ?


Recommended Posts

uiquest.py

Here i think

    def OnUpdate(self):    
        if self.skin == self.SKIN_CINEMA:
            event.UpdateEventSet(self.descIndex, 50, -(wndMgr.GetScreenHeight() - 44))
            
        # AUTO_RESIZE_BOARD
        elif self.skin == 3:            
            if self.board:
                event.UpdateEventSet(self.descIndex, self.board.GetGlobalPosition()[0]+20+self.sx, -self.board.GetGlobalPosition()[1]-20-self.sy)
                event.SetEventSetWidth(self.descIndex, self.board.GetWidth()-40)
        elif self.skin:            
            if self.board:
                event.UpdateEventSet(self.descIndex, self.board.GetGlobalPosition()[0]+20, -self.board.GetGlobalPosition()[1]-20)
                event.SetEventSetWidth(self.descIndex, self.board.GetWidth()-40)

  • Love 1
Link to comment
Share on other sites

4 minutes ago, Thorer said:

uiquest.py

Here i think

    def OnUpdate(self):    
        if self.skin == self.SKIN_CINEMA:
            event.UpdateEventSet(self.descIndex, 50, -(wndMgr.GetScreenHeight() - 44))
            
        # AUTO_RESIZE_BOARD
        elif self.skin == 3:            
            if self.board:
                event.UpdateEventSet(self.descIndex, self.board.GetGlobalPosition()[0]+20+self.sx, -self.board.GetGlobalPosition()[1]-20-self.sy)
                event.SetEventSetWidth(self.descIndex, self.board.GetWidth()-40)
        elif self.skin:            
            if self.board:
                event.UpdateEventSet(self.descIndex, self.board.GetGlobalPosition()[0]+20, -self.board.GetGlobalPosition()[1]-20)
                event.SetEventSetWidth(self.descIndex, self.board.GetWidth()-40)

Okey and how do I need to edit it ?  please

 

EDIT:  OK THANK YOU I CHANGED THE VALUE AND IT'S WORKING NOW :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.