Jump to content

Recommended Posts

  • Active+ Member

Hey guys,

is here someone who know how to hide quests when character window is opened? I mean hide the quests when you open the character window manually (by clicking on the icon at taskbar) or by shortcut keys (C, V, B, N) and let them show again when you press ESC (escape key to close the character window)

Thanks for answers!

Sincerely,

ReFresh

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/22092-hide-quests/
Share on other sites

  • Honorable Member
@ interfaceModule.py
''' 1. '''
# Search
		self.wndCharacter = uiCharacter.CharacterWindow()

# Add below
		self.wndCharacter.BindInterface(self)


@ uiCharacter.py
''' 1. '''
# Search @ def __init__(self):
		ui.ScriptWindow.__init__(self)

# Add below
		self.interface = None

''' 2. '''
# Search
	def Show(self):
		self.__LoadWindow()

# Add above
	def BindInterface(self, interface):
		from _weakref import proxy
		self.interface = proxy(interface)

''' 3. '''
# Search
	def Show(self):
		self.__LoadWindow()

# Add below
		if self.interface:
			self.interface.HideAllQuestButton()

''' 4. '''
# Search
	def Close(self):
		if 0 != self.toolTipSkill:
			self.toolTipSkill.Hide()

# Add below
		if self.interface:
			self.interface.HideAllQuestButton()

Not sure if this is what you really want but it will hide quest scrolls when opening the character window and show them again once closed.

m8gTyc2.gif

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
https://metin2.dev/topic/22092-hide-quests/#findComment-120190
Share on other sites

  • Active+ Member

@Owsap Nice thanks! But there is a problem. Try to close the character window by pressing for example V shortcut key. Quests are still hidden. Quests will be shown again only when you press Escape key to close the character window.

Btw. I edited your tutorial a little bit, because lot of functions were already created so I did it like below because I think it's the same, but I'm getting the problem mentioned above in this comment:

Spoiler

interfaceModule.py
------------------
Search:
		self.wndCharacter = uiCharacter.CharacterWindow()

Add below:
		wndCharacter.BindInterface(self)
---------------------------------------------------------

uiCharacter.py
--------------
Search:
    def Show(self):
		self.__LoadWindow()

Add below:
		if self.interface:
			self.interface.HideAllQuestButton()

Search:
	def Close(self):
		if 0 != self.toolTipSkill:
			self.toolTipSkill.Hide()

Add below:
		if self.interface:
			self.interface.ShowAllQuestButton()

 

Maybe @VegaS™ could help to correct us?

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/22092-hide-quests/#findComment-120193
Share on other sites

  • 1 month 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.