TextDrawLetterSize
#1

So pretty much I've been trying to work a Bank Account system all good and okay. Except one thing.
I'm trying to make the "options" for the bank account system. The problem is I get this ugly huge box when I try to make the player be able to select. It worked with my other textdraws, now all of a sudden I get this.
https://ibb.co/mVR1Ja
If i remove the "TextDrawLetterSize" porperty from the textdraws the box dissapears, but by doing so it appears that ugly selection bug
Reply
#2

BUMP? really? nobody knows?
Reply
#3

Code?
Reply
#4

Код:
    //Bank Options
    BankOptions0 = TextDrawCreate(212.799987, 109.013320, "loadsc12:loadsc12");
	TextDrawLetterSize(BankOptions0, 0.000000, 24.799997);
	TextDrawTextSize(BankOptions0, 88.799972, 232.213333);
	TextDrawAlignment(BankOptions0, 1);
	TextDrawColor(BankOptions0, -1);
	TextDrawUseBox(BankOptions0, true);
	TextDrawBoxColor(BankOptions0, 102);
	TextDrawSetShadow(BankOptions0, 0);
	TextDrawSetOutline(BankOptions0, 0);
	TextDrawFont(BankOptions0, 4);

	BankOptions1 = TextDrawCreate(500.400024, 110.513320, "usebox");
	TextDrawLetterSize(BankOptions1, 0.000000, 25.070001);
	TextDrawTextSize(BankOptions1, 295.600006, 0.000000);
	TextDrawAlignment(BankOptions1, 1);
	TextDrawColor(BankOptions1, 0);
	TextDrawUseBox(BankOptions1, true);
	TextDrawBoxColor(BankOptions1, 102);
	TextDrawSetShadow(BankOptions1, 0);
	TextDrawSetOutline(BankOptions1, 0);
	TextDrawFont(BankOptions1, 0);

	BankOptions2 = TextDrawCreate(343.200012, 108.266647, "Bank Account");
	TextDrawLetterSize(BankOptions2, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions2, 1);
	TextDrawColor(BankOptions2, -16776961);
	TextDrawSetShadow(BankOptions2, 0);
	TextDrawSetOutline(BankOptions2, 1);
	TextDrawBackgroundColor(BankOptions2, 51);
	TextDrawFont(BankOptions2, 3);
	TextDrawSetProportional(BankOptions2, 1);

	BankOptions3 = TextDrawCreate(467.600006, 238.193328, "usebox");
	TextDrawLetterSize(BankOptions3, 0.000000, 9.390002);
	TextDrawTextSize(BankOptions3, 326.000000, 0.000000);
	TextDrawAlignment(BankOptions3, 1);
	TextDrawColor(BankOptions3, 0);
	TextDrawUseBox(BankOptions3, true);
	TextDrawBoxColor(BankOptions3, 102);
	TextDrawSetShadow(BankOptions3, 0);
	TextDrawSetOutline(BankOptions3, 0);
	TextDrawFont(BankOptions3, 0);

	BankOptions4 = TextDrawCreate(363.199981, 236.693359, "Transfer");
	TextDrawLetterSize(BankOptions4, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions4, 1);
	TextDrawColor(BankOptions4, -16776961);
	TextDrawSetShadow(BankOptions4, 0);
	TextDrawSetOutline(BankOptions4, 1);
	TextDrawBackgroundColor(BankOptions4, 51);
	TextDrawFont(BankOptions4, 3);
	TextDrawSetProportional(BankOptions4, 1);
	TextDrawSetSelectable(BankOptions4, true);

	BankOptions5 = TextDrawCreate(366.400085, 269.546783, "Deposit");
	TextDrawLetterSize(BankOptions5, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions5, 1);
	TextDrawColor(BankOptions5, -16776961);
	TextDrawSetShadow(BankOptions5, 0);
	TextDrawSetOutline(BankOptions5, 1);
	TextDrawBackgroundColor(BankOptions5, 51);
	TextDrawFont(BankOptions5, 3);
	TextDrawSetProportional(BankOptions5, 1);
	TextDrawSetSelectable(BankOptions5, true);

	BankOptions6 = TextDrawCreate(357.600128, 304.640075, "Withdraw");
	TextDrawLetterSize(BankOptions6, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions6, 1);
	TextDrawColor(BankOptions6, -16776961);
	TextDrawSetShadow(BankOptions6, 0);
	TextDrawSetOutline(BankOptions6, 1);
	TextDrawBackgroundColor(BankOptions6, 51);
	TextDrawFont(BankOptions6, 3);
	TextDrawSetProportional(BankOptions6, 1);
	TextDrawSetSelectable(BankOptions6, true);

	BankOptions7 = TextDrawCreate(363.999877, 121.706581, "Your Bank account");
	TextDrawLetterSize(BankOptions7, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions7, 1);
	TextDrawColor(BankOptions7, -1061109505);
	TextDrawSetShadow(BankOptions7, 0);
	TextDrawSetOutline(BankOptions7, 1);
	TextDrawBackgroundColor(BankOptions7, 51);
	TextDrawFont(BankOptions7, 0);
	TextDrawSetProportional(BankOptions7, 1);

	BankOptions8 = TextDrawCreate(459.599975, 162.779998, "usebox");
	TextDrawLetterSize(BankOptions8, 0.000000, 1.674444);
	TextDrawTextSize(BankOptions8, 334.000000, 0.000000);
	TextDrawAlignment(BankOptions8, 1);
	TextDrawColor(BankOptions8, 0);
	TextDrawUseBox(BankOptions8, true);
	TextDrawBoxColor(BankOptions8, 102);
	TextDrawSetShadow(BankOptions8, 0);
	TextDrawSetOutline(BankOptions8, 0);
	TextDrawFont(BankOptions8, 0);

	BankOptions9 = TextDrawCreate(344.799957, 162.773345, "$ 00000000");
	TextDrawLetterSize(BankOptions9, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions9, 1);
	TextDrawColor(BankOptions9, 16711935);
	TextDrawSetShadow(BankOptions9, 0);
	TextDrawSetOutline(BankOptions9, 1);
	TextDrawBackgroundColor(BankOptions9, 51);
	TextDrawFont(BankOptions9, 1);
	TextDrawSetProportional(BankOptions9, 1);

	BankOptions10 = TextDrawCreate(466.799987, 91.846664, "usebox");
	TextDrawLetterSize(BankOptions10, 0.000000, 1.508518);
	TextDrawTextSize(BankOptions10, 330.000000, 0.000000);
	TextDrawAlignment(BankOptions10, 1);
	TextDrawColor(BankOptions10, 0);
	TextDrawUseBox(BankOptions10, true);
	TextDrawBoxColor(BankOptions10, 102);
	TextDrawSetShadow(BankOptions10, 0);
	TextDrawSetOutline(BankOptions10, 0);
	TextDrawFont(BankOptions10, 0);

	BankOptions11 = TextDrawCreate(374.399810, 88.106658, "Close");
	TextDrawLetterSize(BankOptions11, 0.449999, 1.600000);
	TextDrawAlignment(BankOptions11, 1);
	TextDrawColor(BankOptions11, -16776961);
	TextDrawSetShadow(BankOptions11, 0);
	TextDrawSetOutline(BankOptions11, 1);
	TextDrawBackgroundColor(BankOptions11, 51);
	TextDrawFont(BankOptions11, 3);
	TextDrawSetProportional(BankOptions11, 1);
	TextDrawLetterSize(BankOptions11, 300.0, 40.0);
	TextDrawSetSelectable(BankOptions11, true);

	BankOptions12 = TextDrawCreate(426.799987, 91.846664, "usebox");
	TextDrawLetterSize(BankOptions12, 0.000000, 1.010741);
	TextDrawTextSize(BankOptions12, 363.600006, 0.000000);
	TextDrawAlignment(BankOptions12, 1);
	TextDrawColor(BankOptions12, 0);
	TextDrawUseBox(BankOptions12, true);
	TextDrawBoxColor(BankOptions12, 102);
	TextDrawSetShadow(BankOptions12, 0);
	TextDrawSetOutline(BankOptions12, 0);
	TextDrawFont(BankOptions12, 0);
Код:
new Text:BankOptions0;
new Text:BankOptions1;
new Text:BankOptions2;
new Text:BankOptions3;
new Text:BankOptions4;
new Text:BankOptions5;
new Text:BankOptions6;
new Text:BankOptions7;
new Text:BankOptions8;
new Text:BankOptions9;
new Text:BankOptions10;
new Text:BankOptions11;
new Text:BankOptions12;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)