Kvostyc 4 Odesláno: 23. Květen, 2015 Share Odesláno: 23. Květen, 2015 (upraveno) Zdravím, Keď kliknem na textdraw exit tak sa nič nedeje iba sa zmení farba textdrawu no keď dám kurzor myši na back alebo next tak sa nezmení ani ta farba Video: Next = TextDrawCreate(353.000000, 320.000000, "Next"); TextDrawBackgroundColor(Next, 255); TextDrawFont(Next, 1); TextDrawLetterSize(Next, 0.500000, 1.000000); TextDrawColor(Next, 16711935); TextDrawSetOutline(Next, 0); TextDrawSetProportional(Next, 1); TextDrawSetShadow(Next, 1); TextDrawUseBox(Next, 1); TextDrawBoxColor(Next, 1162167621); TextDrawTextSize(Next, 393.000000, 0.000000); TextDrawSetSelectable(Next, true); Back = TextDrawCreate(246.000000, 320.000000, "Back"); TextDrawBackgroundColor(Back, 255); TextDrawFont(Back, 1); TextDrawLetterSize(Back, 0.500000, 1.000000); TextDrawColor(Back, 16711935); TextDrawSetOutline(Back, 0); TextDrawSetProportional(Back, 1); TextDrawSetShadow(Back, 1); TextDrawUseBox(Back, 1); TextDrawBoxColor(Back, 1162167621); TextDrawTextSize(Back, 284.000000, 0.000000); TextDrawSetSelectable(Back, true); Exit = TextDrawCreate(302.000000, 320.000000, "Exit"); TextDrawBackgroundColor(Exit, 255); TextDrawFont(Exit, 1); TextDrawLetterSize(Exit, 0.500000, 1.000000); TextDrawColor(Exit, -16776961); TextDrawSetOutline(Exit, 0); TextDrawSetProportional(Exit, 1); TextDrawSetShadow(Exit, 1); TextDrawUseBox(Exit, 1); TextDrawBoxColor(Exit, 1162167621); TextDrawTextSize(Exit, 333.000000, 40.000000); TextDrawSetSelectable(Exit, true); onplayerpickup pickup: if(pickupid == WangS) { TogglePlayerControllable(playerid,0); TextDrawShowForPlayer(playerid,Back); TextDrawShowForPlayer(playerid,Next); TextDrawShowForPlayer(playerid,Exit); SelectTextDraw(playerid, 0xA3B4C5FF); return 1; } clcked textdraw : if(clickedid == Exit) { TogglePlayerControllable(playerid,1); SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); TextDrawHideForPlayer(playerid,Exit); TextDrawHideForPlayer(playerid,Next); TextDrawHideForPlayer(playerid,Back); CancelSelectTextDraw(playerid); } else if(clickedid == Back) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); } else if(clickedid == Next) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); } Edited 23. Květen, 2015 by AlweR_18 Link to comment Share on other sites More sharing options...
0 Matess 36 Odesláno: 23. Květen, 2015 Share Odesláno: 23. Květen, 2015 Pohraj si s timhle TextDrawTextSize, to by ti mělo vyřešit že pujdou rozlišit jednotlivé oblasti pro klikání na ty TD. Link to comment Share on other sites More sharing options...
0 Kvostyc 4 Odesláno: 23. Květen, 2015 Author Share Odesláno: 23. Květen, 2015 Tým to není A vlastne j je to tým díky moc:-D Link to comment Share on other sites More sharing options...
Dotaz
Kvostyc 4
Zdravím,
Keď kliknem na textdraw exit tak sa nič nedeje iba sa zmení farba textdrawu no keď dám kurzor myši na back alebo next tak sa nezmení ani ta farba
Video:
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now