SA-MP Forums Archive
Selectable Textdraws. - 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: Selectable Textdraws. (/showthread.php?tid=376297)



Selectable Textdraws. - Roel - 09.09.2012

Hello, I'm working on a funiture system for my house system.
I have this buy page or and everything works except one button.
I know why it doesn't work, but i don't know how to fix it.

Here you have a picture:
http://epic-play.com/bug.png

And here are the textdraws:
Код:
	FUN_CLICK_Bedroom = TextDrawCreate(68.000000, 159.000000, "BEDROOM");
	TextDrawAlignment(FUN_CLICK_Bedroom, 2);
	TextDrawBackgroundColor(FUN_CLICK_Bedroom, 255);
	TextDrawFont(FUN_CLICK_Bedroom, 1);
	TextDrawLetterSize(FUN_CLICK_Bedroom, 0.400000, 1.000000);
	TextDrawColor(FUN_CLICK_Bedroom, 255);
	TextDrawSetOutline(FUN_CLICK_Bedroom, 0);
	TextDrawSetProportional(FUN_CLICK_Bedroom, 1);
	TextDrawSetShadow(FUN_CLICK_Bedroom, 0);
	TextDrawUseBox(FUN_CLICK_Bedroom, 1);
	TextDrawBoxColor(FUN_CLICK_Bedroom, -1);
	TextDrawTextSize(FUN_CLICK_Bedroom, 20.000000, 110.000000);
	TextDrawSetSelectable(FUN_CLICK_Bedroom, 1);
	
	FUN_CLICK_Kitchen = TextDrawCreate(68.000000, 143.000000, "KITCHEN");
	TextDrawAlignment(FUN_CLICK_Kitchen, 2);
	TextDrawBackgroundColor(FUN_CLICK_Kitchen, 255);
	TextDrawFont(FUN_CLICK_Kitchen, 1);
	TextDrawLetterSize(FUN_CLICK_Kitchen, 0.400000, 1.000000);
	TextDrawColor(FUN_CLICK_Kitchen, 255);
	TextDrawSetOutline(FUN_CLICK_Kitchen, 0);
	TextDrawSetProportional(FUN_CLICK_Kitchen, 1);
	TextDrawSetShadow(FUN_CLICK_Kitchen, 0);
	TextDrawUseBox(FUN_CLICK_Kitchen, 1);
	TextDrawBoxColor(FUN_CLICK_Kitchen, -1);
	TextDrawTextSize(FUN_CLICK_Kitchen, 20.000000, 110.000000);
	TextDrawSetSelectable(FUN_CLICK_Tables, 1);
	
	FUN_CLICK_Tables = TextDrawCreate(68.000000, 127.000000, "TABLES");
	TextDrawAlignment(FUN_CLICK_Tables, 2);
	TextDrawBackgroundColor(FUN_CLICK_Tables, 255);
	TextDrawFont(FUN_CLICK_Tables, 1);
	TextDrawLetterSize(FUN_CLICK_Tables, 0.400000, 1.000000);
	TextDrawColor(FUN_CLICK_Tables, 255);
	TextDrawSetOutline(FUN_CLICK_Tables, 0);
	TextDrawSetProportional(FUN_CLICK_Tables, 1);
	TextDrawSetShadow(FUN_CLICK_Tables, 0);
	TextDrawUseBox(FUN_CLICK_Tables, 1);
	TextDrawBoxColor(FUN_CLICK_Tables, -1);
	TextDrawTextSize(FUN_CLICK_Tables, 20.000000, 110.000000);
	TextDrawSetSelectable(FUN_CLICK_Tables, 1);
It seems that the select area's of those buttons are bigger then the white box is.
All my other buttons doesn't have this problem.
Anyone knows how to fix it?

Thanks...


Re: Selectable Textdraws. - HuSs3n - 09.09.2012

Код:
	FUN_CLICK_Kitchen = TextDrawCreate(68.000000, 143.000000, "KITCHEN");
	TextDrawAlignment(FUN_CLICK_Kitchen, 2);
	TextDrawBackgroundColor(FUN_CLICK_Kitchen, 255);
	TextDrawFont(FUN_CLICK_Kitchen, 1);
	TextDrawLetterSize(FUN_CLICK_Kitchen, 0.400000, 1.000000);
	TextDrawColor(FUN_CLICK_Kitchen, 255);
	TextDrawSetOutline(FUN_CLICK_Kitchen, 0);
	TextDrawSetProportional(FUN_CLICK_Kitchen, 1);
	TextDrawSetShadow(FUN_CLICK_Kitchen, 0);
	TextDrawUseBox(FUN_CLICK_Kitchen, 1);
	TextDrawBoxColor(FUN_CLICK_Kitchen, -1);
	TextDrawTextSize(FUN_CLICK_Kitchen, 20.000000, 110.000000);
	TextDrawSetSelectable(FUN_CLICK_Tables, 1);
shouldnt it be
TextDrawSetSelectable(FUN_CLICK_Kitchen, 1);

??


Re: Selectable Textdraws. - Roel - 09.09.2012

Haha thanks man, epic fail.
I just didn't saw it.