Color Gui Textdraw

Started by MEGAMIND, Sep 15, 2016, 01:57 PM

Previous topic - Next topic

MEGAMIND

HOW TO ADD COLOR TO GUI TEXTDRAW

Memo <- null;
function Script::ScriptLoad()
{
Memo <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50 ),  Colour( 255, 100, 255));------->this line has color here but ingame it show me black color what ever i do it is black
Memo.AddLine( "[0.4]" );
Memo.AddLine( "VCMP.TDC" );
Memo.RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER );
Memo.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_ITALIC;
Memo.FontName = "Tahoma";
Memo.FontSize = 15;
}

KAKAN

oh no

MEGAMIND

Memo.Colour(any color here)??

Kewun

i think
Memo.Colour = RGB(red, green, blue)

example
Memo.Colour  = RGB(255,125,0)

orange colour

MEGAMIND


Kewun

hmm

Memo.Colour = 1
 Memo.Colour = 2

 try them maybe


MEGAMIND

Quote from: Kewun on Sep 15, 2016, 07:18 PMhmm

Memo.Colour = 1
 Memo.Colour = 2

 try them maybe

nah bro it needs c++ code like this try it and it works perfect

TDCS <- null;
function Script::ScriptLoad()
{
 {
TDCS <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50), Colour(255,255,255));
TDCS.AddLine( "[0.4]", Colour(255,265,234) );
TDCS.AddLine( "VCMP-TDC", Colour(255,255,0));
TDCS.RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER );
TDCS.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_ITALIC;
TDCS.FontName = "Tahoma";
TDCS.FontSize = 15;
  }
{
Console.Print("test");
}
 {
Print("Client side scripts loaded.");
}
 }


MEGAMIND

the uper red circle area which u can see in the pic is GUI injected..!
it happened due to this code
{
Console.Print("test");
}

and the other down right corner textdraw color hapeend due to this code
TDCS.AddLine( "VCMP-TDC", Colour(255,255,0));


DizzasTeR

Read the f*ing GUI topic and learn the syntax

Its GUI.Colour = Colour ( Red, Green, Blue, Alpha );

In your case

Memo.Colour = Colour ( Red, Green, Blue, Alpha )

Xmair

Quote from: MEGAMIND on Sep 15, 2016, 07:25 PM
Quote from: Kewun on Sep 15, 2016, 07:18 PMhmm

Memo.Colour = 1
 Memo.Colour = 2

 try them maybe

nah bro it needs c++ code like this try it and it works perfect

TDCS <- null;
function Script::ScriptLoad()
{
 {
TDCS <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50), Colour(255,255,255));
TDCS.AddLine( "[0.4]", Colour(255,265,234) );
TDCS.AddLine( "VCMP-TDC", Colour(255,255,0));
TDCS.RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER );
TDCS.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_ITALIC;
TDCS.FontName = "Tahoma";
TDCS.FontSize = 15;
  }
{
Console.Print("test");
}
 {
Print("Client side scripts loaded.");
}
 }


How the f* can you call that C++?

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Kewun

Quote from: Doom_Kill3R on Sep 16, 2016, 01:32 AMRead the f*ing GUI topic and learn the syntax

Its GUI.Colour = Colour ( Red, Green, Blue, Alpha );

In your case

Memo.Colour = Colour ( Red, Green, Blue, Alpha )

no need to be angry, he was just asking and you treat him like that..

MEGAMIND

#11
the problem is that u guyyz cant code for ur selfs u guyyz just read the topic and copy paste it try making newcodes for ur self...
@Kewun thnx for appreciating and the rest of u 2 dont show that u know everything (gharoor)..