Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[New Year 2019] VPS Hosting

To celebrate the new year of 2019, we will do a giveaway at 01/01/2019 20:00 UTC.

Board Rules

Read the board rules in the link bellow.

Lunmea Partnership

20% off on HMedium plan or higher in Shared Web Hosting
20% off on Double Micro VPS or higher in VPS

Use TLTHINGS.NET coupon as discount.

Sign in to follow this  
wery

Mudar Cor Do Gold No Inventario

Recommended Posts

estava andando por alguns servidores e vi que no balerion2 o gold muda de cor ao atingir um certo valor, digamos que 100kk seja vermelho, 200kk azul etc alguem saberia como fazer isso?

Share this post


Link to post
Share on other sites

Deverá ser algo assim no uiinventory.py, na def RefreshStatus

 

def RefreshStatus(self):

 

money = player.GetElk()

if money <= 1000000:

self.wndMoney.SetFontColor(122, 231, 93)

elif money >= 1000001 and money <= 10000000:

self.wndMoney.SetFontColor(255, 215, 76)

elif money >= 10000001:

self.wndMoney.SetFontColor(128, 192, 255)

self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))

 

Podes adicionar novos elif para outros valores, sendo que a cor é este código:

 

self.wndMoney.SetFontColor(128, 192, 255)

 

As cores estão em RGB.

 

Por exemplo:

Please login or register to see this link.

  • Upvote 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.