Jump to content

Colored Quest Scrolls - V1


Recommended Posts

  • 2 weeks later...
  • 1 month later...

 

 

 

40k interface module.py:

 

		if localeInfo.IsSINGAPORE() or localeInfo.IsEUROPE():
			if name[0] == '*':
				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_blue.tga")
				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_blue.tga")
				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_blue.tga")
				name = name[1:]
			elif name[0] == '~':
				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_golden.tga")
				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_golden.tga")
				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_golden.tga")
				name = name[1:]
			elif name[0] == '&':
				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_green.tga")
				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_green.tga")
				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_green.tga")
				name = name[1:]
			elif name[0] == '+':
				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_purple.tga")
				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_purple.tga")
				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_purple.tga")
				name = name[1:]
			else:
				btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
				btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
				btn.SetDownVisual(localeInfo.GetLetterOpenImageName())
		else:
			btn.SetUpVisual(buttonImageFileName)
			btn.SetOverVisual(buttonImageFileName)
			btn.SetDownVisual(buttonImageFileName)
			btn.Flash()
		# END_OF_QUEST_LETTER_IMAGE

 

  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
  • 4 weeks later...
  • 3 months later...

Hello Same problem =

interfacemodule.py:

Spoiler

 

##!! 20061026.levites.퀘스트_이미지_교체
        import item
        if "item"==iconType:
            item.SelectItem(int(iconName))
            buttonImageFileName=item.GetIconImageFileName()
        else:
            buttonImageFileName=iconName

        if localeInfo.IsEUROPE():
            if name[0] == '*':
                btn.SetUpVisual("locale/de/ui/questicon/scroll_close_blue.tga")
                btn.SetOverVisual("locale/de/ui/questicon/scroll_open_blue.tga")
                btn.SetDownVisual("locale/de/ui/questicon/scroll_open_blue.tga")
                name = name[1:]
            elif name[0] == '~':
                btn.SetUpVisual("locale/de/ui/questicon/scroll_close_golden.tga")
                btn.SetOverVisual("locale/de/ui/questicon/scroll_open_golden.tga")
                btn.SetDownVisual("locale/de/ui/questicon/scroll_open_golden.tga")
                name = name[1:]
            elif name[0] == '&':
                btn.SetUpVisual("locale/de/ui/questicon/scroll_close_green.tga")
                btn.SetOverVisual("locale/de/ui/questicon/scroll_open_green.tga")
                btn.SetDownVisual("locale/de/ui/questicon/scroll_open_green.tga")
                name = name[1:]
            elif name[0] == '+':
                btn.SetUpVisual("locale/de/ui/questicon/scroll_close_purple.tga")
                btn.SetOverVisual("locale/de/ui/questicon/scroll_open_purple.tga")
                btn.SetDownVisual("locale/de/ui/questicon/scroll_open_purple.tga")
                name = name[1:]
            else:
                btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
                btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
                btn.SetDownVisual(localeInfo.GetLetterOpenImageName())
        else:
            btn.SetUpVisual(buttonImageFileName)
            btn.SetOverVisual(buttonImageFileName)
            btn.SetDownVisual(buttonImageFileName)
            btn.Flash()
        # END_OF_QUEST_LETTER_IMAGE

 

uicharacter.py
 

Spoiler

 

for i in questRange[:questCount]:
            (questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i)
            # start colored scrolls
            if questName[0] == '*':
                questName = questName[1:]
            elif questName[0] == '&':
                questName = questName[1:]
            elif questName[0] == '~':
                questName = questName[1:]
            elif questName[0] == '+':
                questName = questName[1:]
            # end colored scrolls
            self.questNameList.SetText(questName)
            self.questNameList.Show()
            self.questLastCountList.Show()
            self.questLastTimeList.Show()

            if len(questCounterName) > 0:
                self.questLastCountList.SetText("%s : %d" % (questCounterName, questCounterValue))
            else:
                self.questLastCountList.SetText("")

 



512a8c20ac677e1d95081f527f1d5fa8.png

 

Spoiler

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
  • 2 weeks later...
4 hours ago, ReFresh said:

ref

You spamm too much.

 

Check your syserr, maybe you have some problems in python code.

You may have missing parts...

zoEza40.gif

Don't waste your time. 

Try everything and you will learn something new.

https://www.youtube.com/watch?v=c6rP-YP4c5I

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 9 months later...
On 2/17/2014 at 12:03 PM, .plechito' said:

For files 40250:

 

interfacemodule:


		# QUEST_LETTER_IMAGE
		##!! 20061026.levites.Äù½ºÆ®_À̹ÌÁö_±³Ã¼
		import item
		if "item"==iconType:
			item.SelectItem(int(iconName))
			buttonImageFileName=item.GetIconImageFileName()
		else:
			buttonImageFileName=iconName

		if localeInfo.IsEUROPE():
			if name[0] == '*':
				btn.SetUpVisual("locale/cz/icon/scroll_close_green.tga")
				btn.SetOverVisual("locale/cz/icon/scroll_open_green.tga")
				btn.SetDownVisual("locale/cz/icon/scroll_open_green.tga")
				name = name[1:]
			elif name[0] == '&':
				btn.SetUpVisual("locale/cz/icon/scroll_close_blue.tga")
				btn.SetOverVisual("locale/cz/icon/scroll_open_blue.tga")
				btn.SetDownVisual("locale/cz/icon/scroll_open_blue.tga")
				name = name[1:]
			else:
				btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
				btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
				btn.SetDownVisual(localeInfo.GetLetterOpenImageName())				
				if "highlight" == iconType:
					btn.SetUpVisual("locale/ymir_ui/highlighted_quest.tga")
					btn.SetOverVisual("locale/ymir_ui/highlighted_quest_r.tga")
					btn.SetDownVisual("locale/ymir_ui/highlighted_quest_r.tga")
				else:
					btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
					btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
					btn.SetDownVisual(localeInfo.GetLetterOpenImageName())				
		else:
			btn.SetUpVisual(buttonImageFileName)
			btn.SetOverVisual(buttonImageFileName)
			btn.SetDownVisual(buttonImageFileName)
			btn.Flash()
		# END_OF_QUEST_LETTER_IMAGE

uicharacter:


		for i in questRange[:questCount]:
			(questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i)
			if questName[0] == '*':
				questName = questName[1:]
			elif questName[0] == '&':
				questName = questName[1:]
			elif questName[0] == '~':
				questName = questName[1:]
			self.questNameList[i].SetText(questName)
			self.questNameList[i].Show()
			self.questLastCountList[i].Show()
			self.questLastTimeList[i].Show()
On 2/5/2014 at 1:08 PM, Shogun said:

Thanks ?

 

 

On 2/17/2014 at 12:03 PM, .plechito' said:

For files 40250:

 

interfacemodule:


		# QUEST_LETTER_IMAGE
		##!! 20061026.levites.Äù½ºÆ®_À̹ÌÁö_±³Ã¼
		import item
		if "item"==iconType:
			item.SelectItem(int(iconName))
			buttonImageFileName=item.GetIconImageFileName()
		else:
			buttonImageFileName=iconName

		if localeInfo.IsEUROPE():
			if name[0] == '*':
				btn.SetUpVisual("locale/cz/icon/scroll_close_green.tga")
				btn.SetOverVisual("locale/cz/icon/scroll_open_green.tga")
				btn.SetDownVisual("locale/cz/icon/scroll_open_green.tga")
				name = name[1:]
			elif name[0] == '&':
				btn.SetUpVisual("locale/cz/icon/scroll_close_blue.tga")
				btn.SetOverVisual("locale/cz/icon/scroll_open_blue.tga")
				btn.SetDownVisual("locale/cz/icon/scroll_open_blue.tga")
				name = name[1:]
			else:
				btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
				btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
				btn.SetDownVisual(localeInfo.GetLetterOpenImageName())				
				if "highlight" == iconType:
					btn.SetUpVisual("locale/ymir_ui/highlighted_quest.tga")
					btn.SetOverVisual("locale/ymir_ui/highlighted_quest_r.tga")
					btn.SetDownVisual("locale/ymir_ui/highlighted_quest_r.tga")
				else:
					btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
					btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
					btn.SetDownVisual(localeInfo.GetLetterOpenImageName())				
		else:
			btn.SetUpVisual(buttonImageFileName)
			btn.SetOverVisual(buttonImageFileName)
			btn.SetDownVisual(buttonImageFileName)
			btn.Flash()
		# END_OF_QUEST_LETTER_IMAGE

uicharacter:


		for i in questRange[:questCount]:
			(questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i)
			if questName[0] == '*':
				questName = questName[1:]
			elif questName[0] == '&':
				questName = questName[1:]
			elif questName[0] == '~':
				questName = questName[1:]
			self.questNameList[i].SetText(questName)
			self.questNameList[i].Show()
			self.questLastCountList[i].Show()
			self.questLastTimeList[i].Show()
On 2/5/2014 at 1:08 PM, Shogun said:

Thanks ?

 

 

Link to comment
Share on other sites

Announcements



×
×
  • 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.