Jump to content

Event module loading .txt


Recommended Posts

Hello guys, i have one problem when i load txt files using event module.

I will left a gif here 

2182d474be3aac11e14f575b0bb2879e.gif The problem is, when u click in next page the text will move down, and this shouldnt happen. I was looking for 1h and i cant find any solution.

Someone know how to fix it?
I will left here the code.

 

http://pastebin.com/VrHzcMEp

 

	    class DescriptionBox(ui.Window):
        def __init__(self):
            ui.Window.__init__(self)
            self.descIndex = 0
        def __del__(self):
            ui.Window.__del__(self)
        def SetIndex(self, index):
            self.descIndex = index
        def OnRender(self):
            event.RenderEventSet(self.descIndex)    
	        self.descriptionBox = self.DescriptionBox()
        self.descriptionBox.Show()
	    def PrevDescriptionPage(self):
        if event.IsWait(self.descIndex) == TRUE:
            if event.GetVisibleStartLine(self.descIndex)-14 >= 0:
                event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex)-14)
                event.Skip(self.descIndex)
        else:
            event.Skip(self.descIndex)
	    def NextDescriptionPage(self):
        if TRUE == event.IsWait(self.descIndex):
            event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex)+14)
            event.Skip(self.descIndex)
        else:
            event.Skip(self.descIndex)
	    def OnUpdate(self):
        chr.Update()
        (xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition()
        event.UpdateEventSet(self.descIndex, xposEventSet+7, -(yposEventSet+7))
        self.descriptionBox.SetIndex(self.descIndex)
	
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.