Jump to content
  • Create New...
  • 0

Event module loading .txt



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.




	    class DescriptionBox(ui.Window):
        def __init__(self):
            self.descIndex = 0
        def __del__(self):
        def SetIndex(self, index):
            self.descIndex = index
        def OnRender(self):
	        self.descriptionBox = self.DescriptionBox()
	    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)
	    def NextDescriptionPage(self):
        if TRUE == event.IsWait(self.descIndex):
            event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex)+14)
	    def OnUpdate(self):
        (xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition()
        event.UpdateEventSet(self.descIndex, xposEventSet+7, -(yposEventSet+7))
Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021

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.