Jump to content
  • 0

Sash absorption color change || Uitooltip


Shahin
Go to solution Solved by mebe,

Question

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 

 

Link to post

2 answers to this question

Recommended Posts

  • 0
  • 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 post
  • 0
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 Shahin (see edit history)
  • Love 1
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.