Register for your free account! | Forgot your password?

You last visited: Today at 02:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



IG Uhr

Discussion on IG Uhr within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 841
Received Thanks: 111
IG Uhr

Hallo,

habe vorhin die Ingame Uhr eingefügt.
Habe allerdings Probleme mit der Farbe.

Folgendes:

PHP Code:
self.timeLine.SetFontColor(  255045,   0
Wenn ich das in

PHP Code:
self.timeLine.SetFontColor(  255255,   255
ändere, ist es komplett schwarz.

Was mache ich falsch?

Danke
IceCreamx3 is offline  
Old 12/04/2014, 19:00   #2
 
.Despero™'s Avatar
 
elite*gold: 75
Join Date: Mar 2012
Posts: 2,655
Received Thanks: 742
self.timeLine.SetFontColor( 255, 255, 255)
=
self.timeLine.SetFontColor( R, G, B)

und die RGB Farben findest du z.B hier
.Despero™ is offline  
Old 12/04/2014, 19:32   #3
 
Dyshaxo's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 665
Received Thanks: 444
Das Problem hatte ich auch, funktioniert irgendwie umgekehrt und nicht ganz RGB sondern BGR oder GRB oder so.

Lösung - Taste dich ran versuch' 0/0/255 - 0/255/0 - 255/0/0 etc., und irgendwann erreichst du deine gewünschte Farbe
Dyshaxo is offline  
Old 12/04/2014, 21:46   #4
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 841
Received Thanks: 111
Quote:
Originally Posted by DaisukeBanned View Post
Das Problem hatte ich auch, funktioniert irgendwie umgekehrt und nicht ganz RGB sondern BGR oder GRB oder so.

Lösung - Taste dich ran versuch' 0/0/255 - 0/255/0 - 255/0/0 etc., und irgendwann erreichst du deine gewünschte Farbe
Okey, danke für den Tipp.
Sollte aber nicht bei 255/255/255 die Farbe Weiß rauskommen, sodass die Reihenfolge keine Rolle spielt?
Ist ja immer der gleiche Wert.


Danke
IceCreamx3 is offline  
Old 12/06/2014, 11:59   #5
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 841
Received Thanks: 111
Schaffe es leider nicht, es ist immer schwarz.
Egal, welche Farbwerte ich nehme.
IceCreamx3 is offline  
Old 12/06/2014, 13:07   #6

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,258
Versuch mal jede Zahl nochmal mit 255 zumultiplizieren.

Beispiel:
Code:
self.timeLine.SetFontColor(255*255, 255*255, 255*255)
.yorliK is offline  
Thanks
1 User
Old 12/08/2014, 11:30   #7
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 841
Received Thanks: 111
Quote:
Originally Posted by Kilroy. View Post
Versuch mal jede Zahl nochmal mit 255 zumultiplizieren.

Beispiel:
Code:
self.timeLine.SetFontColor(255*255, 255*255, 255*255)
Danke. Funktioniert wunderbar
IceCreamx3 is offline  
Reply




All times are GMT +2. The time now is 02:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.