Box does not go invisible - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Box does not go invisible (
/showthread.php?tid=658432)
Box does not go invisible -
cellps - 03.09.2018
I want to leave this box clickable and invisible, but it is getting all white, could anyone help me?
Код:
ListBox[0] = TextDrawCreate(76.639778, 191.216567, "LD_SPAC:white");
TextDrawLetterSize(ListBox[0], 0.000000, 0.000000);
TextDrawTextSize(ListBox[0], 144.850631, 15.340006);
TextDrawAlignment(ListBox[0], 1);
TextDrawColor(ListBox[0], 0xFFFFFF00);
TextDrawSetShadow(ListBox[0], 0);
TextDrawSetOutline(ListBox[0], 0);
TextDrawBackgroundColor(ListBox[0], 0xFFFFFF00);
TextDrawBoxColor(ListBox[0], 0xFFFFFF00);
TextDrawFont(ListBox[0], 4);
TextDrawSetProportional(ListBox[0], 0);
TextDrawSetShadow(ListBox[0], 0);
TextDrawSetSelectable(ListBox[0], true);
Re: Box does not go invisible -
ShihabSoft - 03.09.2018
Try setting TextDrawColor to -1 and Background color to 255
Re: Box does not go invisible -
cellps - 03.09.2018
Quote:
Originally Posted by ShihabSoft
Try setting TextDrawColor to -1 and Background color to 255
|
It did not work, it's still the same
Re: Box does not go invisible -
ShihabSoft - 03.09.2018
TextDrawBackgroundColor
TextDrawBoxColor
both to 0x0
do not set
TextDrawColor
try that
Re: Box does not go invisible -
cellps - 03.09.2018
Quote:
Originally Posted by ShihabSoft
Try setting TextDrawColor to -1 and Background color to 255
|
Quote:
Originally Posted by ShihabSoft
TextDrawBackgroundColor
TextDrawBoxColor
both to 0x0
do not set
TextDrawColor
try that
|
Still the same thing, but it got a bit clearer, I removed "LD_SPAC:white" and the box disappeared, but I returned
Код:
ListBox[0] = TextDrawCreate(76.639778, 191.216567, "LD_SPAC:white");
TextDrawLetterSize(ListBox[0], 0.000000, 0.000000);
TextDrawTextSize(ListBox[0], 144.850631, 15.340006);
TextDrawAlignment(ListBox[0], 1);
TextDrawSetShadow(ListBox[0], 0);
TextDrawSetOutline(ListBox[0], 0);
TextDrawBackgroundColor(ListBox[0], 0x0);
TextDrawBoxColor(ListBox[0], 0x0);
TextDrawFont(ListBox[0], 4);
TextDrawSetProportional(ListBox[0], 0);
TextDrawSetShadow(ListBox[0], 0);
TextDrawSetSelectable(ListBox[0], true);