Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: MEGAMIND on Sep 13, 2016, 04:10 PM

Title: Gui Textdraws Style Help
Post by: MEGAMIND on Sep 13, 2016, 04:10 PM
how i can i put in other style textdraws mine is like this
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi68.tinypic.com%2Ffd55yu.jpg&hash=d8d58d3bcfceb63c95626994dec129e16f502961)
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

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi67.tinypic.com%2F2vc9dg4.jpg&hash=0da6afad42c18e3f5dba327941fe5b416887323b)
Title: Re: Gui Textdraws Style Help
Post by: Xmair on Sep 13, 2016, 05:45 PM
Use GUILabel(s) and position the gui using mofiki's coordinate finder.
Title: Re: Gui Textdraws Style Help
Post by: KAKAN on Sep 13, 2016, 05:58 PM
RemoveFlags( GUI_BACKGROUND ) or something like that. Search it in the main topic about GUIs or in the wiki
Title: Re: Gui Textdraws Style Help
Post by: MEGAMIND on Sep 14, 2016, 08:52 AM
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
Title: Re: Gui Textdraws Style Help
Post by: KAKAN on Sep 14, 2016, 01:14 PM
Your_GUI.RemoveFlags( GUI_FLAG_BACKGROUND | GUI_FLAG_BORDER ) try playing with that.
Title: Re: Gui Textdraws Style Help
Post by: MEGAMIND on Sep 14, 2016, 01:52 PM
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
Title: Re: Gui Textdraws Style Help
Post by: KAKAN on Sep 14, 2016, 05:22 PM
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 );
}
Title: Re: Gui Textdraws Style Help
Post by: MEGAMIND on Sep 14, 2016, 07:27 PM
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;
}