Register for your free account! | Forgot your password?

You last visited: Today at 20:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Show/Hide quest/whisper buttons

Discussion on [Release]Show/Hide quest/whisper buttons within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Arrow [Release]Show/Hide quest/whisper buttons

(sorry for my bad english, my original topic: )
If you don't know, the latest metin2 official update has introduced the save of the shortcut Ctrl+Q when you relog.

This release contains this update + a my edit to show/hide the whisper buttons with the shortcut Ctrl+K.

Video:

##game.py
Code:
#into def __BuildKeyDict:
		onPressKeyDict[app.DIK_Q] = self.__PressQKey
		onPressKeyDict[app.DIK_K] = self.__PressKKey

#bottom of the class:
	def __PressQKey(self):
		if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
			if 0==interfaceModule.IsQBHide:
				interfaceModule.IsQBHide = 1
				self.interface.HideAllQuestButton()
			else:
				interfaceModule.IsQBHide = 0
				self.interface.ShowAllQuestButton()
		else:
			app.RotateCamera(app.CAMERA_TO_NEGATIVE)

	def __PressKKey(self):
		if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
			if 0==interfaceModule.IsKBHide:
				interfaceModule.IsKBHide = 1
				self.interface.HideAllWhisperButton()
			else:
				interfaceModule.IsKBHide = 0
				self.interface.ShowAllWhisperButton()
game.py file (latest file from metin2.it) with my edit:

##interfacemodule.py
Code:
#before the Interface class:
IsQBHide = 0
IsKBHide = 0
#into def __ShowWindows:

		global IsQBHide
		if not IsQBHide:
			self.ShowAllQuestButton()
		else:
			self.HideAllQuestButton()
		global IsKBHide
		if not IsKBHide:
			self.ShowAllWhisperButton()
		else:
			self.HideAllWhisperButton()
#bottom of the def __ArrangeQuestButton:
			global IsQBHide
			if IsQBHide:
				btn.Hide()
			else:
				btn.Show()
#bottom of the def __ArrangeWhisperButton:
			global IsKBHide
			if IsKBHide:
				button.Hide()
			else:
				button.Show()
interfacemodule.py file (latest file from metin2.it) with my edit:


If you cannot understand how to implement this release, you can merge these files with yours using .
Attached Files
File Type: rar showhidepvtbutton01.rar (21.1 KB, 136 views)
lollo_9_1 is offline  
Thanks
4 Users
Old 10/11/2012, 20:15   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 184
Received Thanks: 44
Thank you I will try it soon.
Blacky33 is offline  
Reply

Tags
lollo_9_1, metin2, retro, server, whisper


Similar Threads Similar Threads
Hide/show jquery
05/08/2012 - Web Development - 6 Replies
Nabend com, ich habe mir hier etwas zusammen gefummelt Edit this Fiddle - jsFiddle es funktioniert auch wie es soll, nur ich würde es gerne erst versteckt haben und dann ausklappbar. kann mir dabei jemand helfen, wie ich das bewerkstelligen kann? danke im vorraus
Hide/Show
03/30/2012 - .NET Languages - 3 Replies
short Präkambrium, Kambrium, Silur, Devon, Karbon, Perm, Trias, Jura, Kreide, Teritär, Quartär; Präkambrium = 0; if (32 == Präkambrium) { PräkambriumTier1.Hide(); }
[Release] Hide and Seek quest/event
08/29/2011 - EO PServer Guides & Releases - 4 Replies
sorry, mod plz delete this thread
show/hide befehl
03/15/2010 - AutoIt - 4 Replies
wie kann man in ein bot mehr hotkey das fenster in hintergrundsetzen(hide) und wieder aufrufen(show) oder anders gesagt geht das überhaupt mit autoit bei machnchen c++ bots gehts das weis ich THX
NoDc+Show+Hide
06/14/2008 - SRO Hacks, Bots, Cheats & Exploits - 2 Replies
xD deleted



All times are GMT +1. The time now is 20:27.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.