Jump to content

Problem: Alignment window


Go to solution Solved by HITRON,

Recommended Posts

Hey all, I put my mouse in character window in the name but align window with alignment: xxxx dont Appearance and show me, any solution? Image: https://metin2.download/picture/OEt1Yq595pN8dyvfz542O6ttX8wWLLdD/.png

 

Client Sysser is empty.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/2206-problem-alignment-window/
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

  • 7 months later...
  • 4 years later...
  • 2 months later...

I know this post is old but i figured out where was the problem.
It was at the "ui.py" and inside the "class ImageBox(Window):"

i just change the whole thing in this class just like this 

#############################################

class ImageBox(Window):
    def __init__(self, layer = "UI"):
        Window.__init__(self, layer)

        self.eventDict={}

    def __del__(self):
        Window.__del__(self)

    def RegisterWindow(self, layer):
        self.hWnd = wndMgr.RegisterImageBox(self, layer)

    def LoadImage(self, imageName):
        self.name=imageName
        wndMgr.LoadImage(self.hWnd, imageName)

        if len(self.eventDict)!=0:
            print "LOAD IMAGE", self, self.eventDict

    def SetAlpha(self, alpha):
        wndMgr.SetDiffuseColor(self.hWnd, 1.0, 1.0, 1.0, alpha)

    def GetWidth(self):
        return wndMgr.GetWidth(self.hWnd)

    def GetHeight(self):
        return wndMgr.GetHeight(self.hWnd)

    def OnMouseOverIn(self):
        try:
            self.eventDict["MOUSE_OVER_IN"]()
        except KeyError:
            pass

    def OnMouseOverOut(self):
        try:
            self.eventDict["MOUSE_OVER_OUT"]()
        except KeyError:
            pass

    def SAFE_SetStringEvent(self, event, func):
        self.eventDict[event]=__mem_func__(func)

 

############################################

why am i writing this out?

because I couldn't find a solution for this
maybe someone found this post and make his life easier.
peace out.

 

Link to comment
https://metin2.dev/topic/2206-problem-alignment-window/#findComment-121177
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.