Jump to content

Recommended Posts

spacer.png

 

Maybe many of you didn't even notice or just don't mind showing that "info" when you hover your mouse over an NPC, guild spot, portal, etc.. To get rid of text overlap with other "squares" on the minimap, I created a display, immediately below the window, which indicates in a much more airy way the name and coordinates of a point on the map. 

I know that maybe for many it seems like a easy thing and/or they didn't use the directions provided anyway, but for others it might even be a plus. I leave you with a final sentence: Details make the difference!

Tutorial:


atlaswindow.py (uiscript.eix/.epk)

This is the hidden content, please

uiminimap.py (root.eix/.epk)

This is the hidden content, please

 

I welcome any kind of feedback from you and if anyone tries this display mode, don't forget to post a picture here as well.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 77
  • kekw 1
  • Flame 1
  • Good 16
  • Love 1
  • Love 52
Link to comment
https://metin2.dev/topic/30354-py-show-map-information/
Share on other sites

  • 3 months later...
On 2/11/2023 at 3:42 PM, Robert. said:

spacer.png

 

Maybe many of you didn't even notice or just don't mind showing that "info" when you hover your mouse over an NPC, guild spot, portal, etc.. To get rid of text overlap with other "squares" on the minimap, I created a display, immediately below the window, which indicates in a much more airy way the name and coordinates of a point on the map. 

I know that maybe for many it seems like a easy thing and/or they didn't use the directions provided anyway, but for others it might even be a plus. I leave you with a final sentence: Details make the difference!

Tutorial:


atlaswindow.py (uiscript.eix/.epk)

Hidden Content

  • Search:

     

    	"title" : uiScriptLocale.ZONE_MAP,
    },

    Add below:

    {
    	"name" : "info",
    	"type" : "board",
      
    	"x" : 0,
    	"y" : 0,
    
    	"width" : 10,
    	"height" : 10,
    
    	"children" : 
    	(
    		{
    			"name" : "info_text1",
    			"type" : "text",
    
    			"x" : 15,
    			"y" : 17,
    
    			"text" : "Nume",
    		},
    		{
    			"name" : "info_text2",
    			"type" : "text",
    
    			"x" : 15,
    			"y" : 32,
    
    			"text" : "Coordonate ",
    		}
    	),
    },

    Result:

    spacer.png

     

 

uiminimap.py (root.eix/.epk)

Hidden Content

 

Search:

self.board = 0

Add below:

self.info = 0

Result:

spacer.png

Search:

self.board = self.GetChild("board")

Add below:

self.info = self.GetChild("info")
self.info_text1 = self.GetChild("info_text1")
self.info_text2 = self.GetChild("info_text2")

Result:

spacer.png

Search:

self.board = None

Add below:

self.info = None

Result:

spacer.png

Search:

self.tooltipInfo.Hide()

Add below:

self.info.Hide()
self.info_text1.Hide()
self.info_text2.Hide()

Result:

spacer.png

Search:

self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))

Add below:

self.info_text1.SetText("Nume: %s" % (sName))
self.info_text2.SetText("Coordonate: %d, %d" % (iPosX, iPosY))

Result:

spacer.png

Comment:

self.tooltipInfo.Show()

Add below:

self.info.Show()
self.info_text1.Show()
self.info_text2.Show()

Result:

spacer.png

Comment:

self.infoGuildMark.Show()

Result:

spacer.png

Search:

self.board.SetSize(iSizeX + 15, iSizeY + 38)

Add below:

self.info.SetPosition(0, iSizeY + 45)
self.info.SetSize(iSizeX + 15, 10)

Result:

spacer.png

 

 

 

I welcome any kind of feedback from you and if anyone tries this display mode, don't forget to post a picture here as well.

comment: self.infoGuildMark.Show()

Just out of curiosity may I ask why?

Link to comment
https://metin2.dev/topic/30354-py-show-map-information/#findComment-157917
Share on other sites

  • Active+ Member

Thank you it's working. To make this system multi language, you can:

Delete:

self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))

Find:

			self.info_text1.SetText("Nume: %s" % (sName))
			self.info_text2.SetText("Coordonate: %d, %d" % (iPosX, iPosY))

Change:

			self.info_text1.SetText(localeInfo.MAP_NPCNAME % (sName))
			self.info_text2.SetText(localeInfo.MAP_NPCPOS % (iPosX, iPosY))

locale_game.txt

Add:

MAP_NPCNAME	Ad: %s
MAP_NPCPOS	Koordinat: %d, %d

 

Result:

This is the hidden content, please

  • Metin2 Dev 13
  • Good 2
  • Love 9
Link to comment
https://metin2.dev/topic/30354-py-show-map-information/#findComment-157937
Share on other sites

  • 1 year later...

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.