Salut, aici va voi arata o metoda ca sa puteti colora yang-ul.In uiinventory cautam def RefreshStatus(self):
Si daca vreti cum e in poza, ar fi rosu->portocaliu->galben->verde.
Cod: Selectaţi tot
def RefreshStatus(self):
money = player.GetElk()
if money <= 100000000:
self.wndMoney.SetFontColor(1.0, 0.2, 0.2)
elif money >= 100000001 and money <= 1000000000:
self.wndMoney.SetFontColor(1.0, 0.6, 0.2)
elif money >= 1000000001 and money <= 1500000000:
self.wndMoney.SetFontColor(1.0, 1.0, 0.2)
elif money >= 1500000001:
self.wndMoney.SetFontColor(0.6, 1.0, 0.2)
self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))
Valoarea trebuie sa divida intre 255.
Puteti sa schimbati si cantitatea si culoarea dupa cum vreti.
Sa nu uitati de tabele.
Sper sa va fie de folos, bafta.
DACA VA ESTE DE FOLOS ACEST TUTORIAL PUTETI DA SI UN THANKS CA NU SE STRICA NIMIC




