Jump to content

Recommended Posts

  • Premium
This is the hidden content, please

Alternative download links →

This is the hidden content, please

 

Hello!

I share this little modifications, made by @peaceofficial
(He gave me rights to share it.)
(The thinboard will be different for you.)
Here is GIF, how is it looks like:
 

 

Edited by Ulthar
Core X - External 2 Internal
  • Metin2 Dev 133
  • Good 34
  • muscle 1
  • Love 2
  • Love 72

Ulthar

Link to comment
https://metin2.dev/topic/31328-py-minimap-information-tooltip-renewal/
Share on other sites

  • 1 year later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

if someone want to auto resize and adapt with atlas this it's solution

in class AtlasWindow(ui.ScriptWindow): search: def OnUpdate(self):

under search:   

Spoiler

self.tooltipInfo.SetTop()

add this        

Spoiler

        (bGet, sizeX, sizeY) = miniMap.GetAtlasSize()
        if bGet:
            # pozi?ia atlasului
            atlasX, atlasY = self.AtlasMainWindow.GetLocalPosition()
        
            # total height necesar pentru text
            text1_width, text1_height = self.info_text1.GetTextSize()
            text2_width, text2_height = self.info_text2.GetTextSize()
            total_height = text1_height + text2_height + 15  # +15 padding
        
            # setam box-ul sa aiba la?imea atlasului ?i height calculat
            self.info.SetSize(sizeX, total_height)
        
            # pozitionam box-ul imediat sub atlas
            self.info.SetPosition(atlasX, atlasY + sizeY + 7)
        
            # text ramâne în stânga, cu padding 10
            self.info_text1.SetPosition(10, 5)
            self.info_text2.SetPosition(10, 5 + text1_height)

 

if someone want to move guild mark in info bord 

search in class AtlasWindow(ui.ScriptWindow):

Spoiler

def OnUpdate(self):

and replace
 

Spoiler

        if 0 != dwGuildID:
            textWidth, textHeight = self.tooltipInfo.GetTextSize()
            self.infoGuildMark.SetIndex(dwGuildID)
            self.infoGuildMark.SetPosition(mouseX - x - textWidth - 18 - 5, mouseY - y)
            self.infoGuildMark.Show()

with 
 

Spoiler

        if 0 != dwGuildID:
            self.infoGuildMark.SetIndex(dwGuildID)
            self.infoGuildMark.SetParent(self.info)
            text1_x, text1_y = self.info_text1.GetGlobalPosition()
            info_x, info_y = self.info.GetGlobalPosition()
            rel_x = text1_x - info_x + self.info_text1.GetTextSize()[0] + 5
            rel_y = text1_y - info_y
            self.infoGuildMark.SetPosition(rel_x, rel_y)
            self.infoGuildMark.Show()

https://metin2.download/picture/VE465irmdcKE4Ta58ZicoVAH0AdTBhI0/.png

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.