Gui Textdraws Style Help

Started by MEGAMIND, Sep 13, 2016, 04:10 PM

Previous topic - Next topic

MEGAMIND

how i can i put in other style textdraws mine is like this

its code is this
Memo <- null;
function Script::ScriptLoad()
{
  Memo <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50 ),  Colour( 250, 250, 250, 100 ) );
Memo.AddLine( "[0.4]CVFRS vcmp 04rel004" );
}
its in
C:\Users\MEGAMIND\Desktop\[0.4]CustomVC-MPFreeRoamServer\store\script\main.nut

i want textdraws to be like this server


Xmair

Use GUILabel(s) and position the gui using mofiki's coordinate finder.

Credits to Boystang!

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

KAKAN

RemoveFlags( GUI_BACKGROUND ) or something like that. Search it in the main topic about GUIs or in the wiki
oh no

MEGAMIND

any example if someone of u can provide by using this

GUILabel

Constructor GUILabel()

Constructor GUILabel(position, colour)
Parameter types: VectorScreen, Colour

Constructor GUILabel(position, colour, text)
Parameter types: VectorScreen, Colour, string

Constructor GUILabel(position, colour, text, flags)
Parameter types: VectorScreen, Colour, string, int

KAKAN

Your_GUI.RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER ) try playing with that.
oh no

MEGAMIND

STILL NO idea kindly tell in proper complete function i.e any example would do

whre should be this line--------------->Your_GUI.RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER )

either in this code or

Memo <- null;
function Script::ScriptLoad()
{
  Memo <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50 ),  Colour( 250, 250, 250, 100 ) );
Memo.AddLine( "[0.4]CVFRS vcmp 04rel004" );
}

or

GUILabel

Constructor GUILabel()

Constructor GUILabel(position, colour)
Parameter types: VectorScreen, Colour

Constructor GUILabel(position, colour, text)
Parameter types: VectorScreen, Colour, string

Constructor GUILabel(position, colour, text, flags)
Parameter types: VectorScreen, Colour, string, int

KAKAN

Memo <- null;
function Script::ScriptLoad()
{
  ::Memo <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50 ),  Colour( 250, 250, 250, 100 ) ).AddLine( "[0.4]CVFRS vcmp 04rel004" ).RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER );
}
oh no

MEGAMIND

PROBLEM solved by mY self
CORRECT CODE IS:-
Memo <- null;
function Script::ScriptLoad()
{
Memo <- GUIMemobox( VectorScreen( 1188, 670 ), VectorScreen( 90,50 ),  Colour( 255, 100, 255));
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;
}