Jump to content

Sash absorption color change || Uitooltip


Go to solution Solved by mebe,

Recommended Posts

Hey devs, i have a great idea on highlighting something pretty relevant (for me at least), but i don't know how to make it myself.

  • How to make the sash bonus absorption rate in between 20% & 24% to be colored with #fffbe700 and with #fffb9200 for 25% ?

 

As an idea:

Normal sash bonus in between 1-19% color:

G6jzWIs.png

 

For 20% - 24%:

VCBjhVb.png

 

For 25%:

4ytIpau.png

 

Thank you!

Have a great day :D 

 

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

  • Solution

try this

 

add below this: CONDITION_COLOR = 0xffBEB47D

 

	SASH_1 = 0xFFFBE700
	SASH_2 = 0xFFFB9200

 

 

and replace this with your function 

				absChance = int(metinSlot[acce.ABSORPTION_SOCKET])
				if absChance >= 20 and absChance <= 24:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_1)
				elif absChance >= 25:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_2)
				else:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.CONDITION_COLOR)

 

  • Love 1
Link to comment
Share on other sites

4 hours ago, mebe said:

try this

 

add below this: CONDITION_COLOR = 0xffBEB47D

 






	SASH_1 = 0xFFFBE700
	SASH_2 = 0xFFFB9200

 

 

and replace this with your function 






				absChance = int(metinSlot[acce.ABSORPTION_SOCKET])
				if absChance >= 20 and absChance <= 24:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_1)
				elif absChance >= 25:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_2)
				else:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.CONDITION_COLOR)

 

This is so great!! Thank you, kind sir :D I appreciate it!

4e7TQTa.png

 

 

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 2

      Feeding game source to LLM

    2. 0

      Target Information System

    3. 2

      Feeding game source to LLM

    4. 2

      anti exp explanation pls

    5. 2

      Feeding game source to LLM

    6. 2

      anti exp explanation pls

    7. 0

      [GR2] Positioning an object added with "Attach"

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.