Jump to content

Recommended Posts

[File: root/uiQuest.py ]

#1.) Search:        

		if entire_questbutton_number >= self.QUEST_BUTTON_MAX_NUM:
			self.nextbutton.Show()

Change with this:  
		if entire_questbutton_number >= self.QUEST_BUTTON_MAX_NUM:
			self.nextbutton.Hide()
Oth:
			if cur_questpage_number == 1:
				self.prevbutton.Hide()
				self.nextbutton.Show()
				
			elif cur_questpage_number == entire_questpage_number:
				self.prevbutton.Show()
				self.nextbutton.Hide()
			else:
				self.prevbutton.Show()
				self.nextbutton.Show()

You can change the number buttons when xx is greater than the next display that button.
	    QUEST_BUTTON_MAX_NUM = 8

 
  • Love 1
  • Active+ Member
2 hours ago, VegaS said:

[File: root/uiQuest.py ]

#1.) Search:        


		if entire_questbutton_number >= self.QUEST_BUTTON_MAX_NUM:
			self.nextbutton.Show()

Change with this:  

		if entire_questbutton_number >= self.QUEST_BUTTON_MAX_NUM:
			self.nextbutton.Hide()

Oth:

			if cur_questpage_number == 1:
				self.prevbutton.Hide()
				self.nextbutton.Show()
				
			elif cur_questpage_number == entire_questpage_number:
				self.prevbutton.Show()
				self.nextbutton.Hide()
			else:
				self.prevbutton.Show()
				self.nextbutton.Show()

You can change the number buttons when xx is greater than the next display that button.

	    QUEST_BUTTON_MAX_NUM = 8


 

Thank you! :) And how can I change number of letter on the one line of quest?

I'll be always helpful!  😉

[File: Src/Client/UserInterface/Locale_inc.h]

#define __ENABLE_CHARACTER_COUNT_QUEST 75

[File: Src/Client/UserInterface/PythonEventManager.cpp]

	rEventSet.iRestrictedCharacterCount = __ENABLE_CHARACTER_COUNT_QUEST;

[File: root/interfaceModule.py]

For arrange you can change from here:

	def __ArrangeQuestButton(self):
		screenWidth = wndMgr.GetScreenWidth()
		screenHeight = wndMgr.GetScreenHeight()

		if self.wndParty.IsShow():
			xPos = 100 + 30
		else:
			xPos = 20

		if localeInfo.IsARABIC():
			xPos = xPos + 15

		yPos = 170 * screenHeight / 600
		yCount = (screenHeight - 330) / 63

		count = 0
		for btn in self.questButtonList:

			btn.SetPosition(xPos + (int(count/yCount) * 100), yPos + (count%yCount * 63))
			count += 1
			global IsQBHide
			if IsQBHide:
				btn.Hide()
			else:
				btn.Show()

	def __StartQuest(self, btn):
		event.QuestButtonClick(btn.index)
		self.__DestroyQuestButton(btn)

	def __FindQuestButton(self, index):
		for btn in self.questButtonList:
			if btn.index == index:
				return btn

		return 0

 

  • Love 1

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.