HairyMeets Posted January 21, 2018 Share Posted January 21, 2018 I want to learn how to make arrow control so that you can select certain categories in the interface, like in the NFS Probably here need a bindKey Are there any examples of such events? Link to comment
DRW Posted January 21, 2018 Share Posted January 21, 2018 If you talk about doing this with GUI and interact with it, I don't see how. If you talk about dxDraw events, it is indeed possible, though you would need some knowledge. Create a table and make arrow keys responsible of highlighting certain options, by looping through the table and setting different data per option. It's the only way I can think of something similar. 1 Link to comment
HairyMeets Posted January 21, 2018 Author Share Posted January 21, 2018 1 hour ago, MadnessReloaded said: If you talk about doing this with GUI and interact with it, I don't see how. If you talk about dxDraw events, it is indeed possible, though you would need some knowledge. Create a table and make arrow keys responsible of highlighting certain options, by looping through the table and setting different data per option. It's the only way I can think of something similar. I have not worked with tables and loops yet, but I think there will be no problems, considering that I am learning very fast, thank you Link to comment
alonemta Posted January 21, 2018 Share Posted January 21, 2018 Can you help me I'm using this for marker purpose i want a script which is count players travel time from marker to marker. start time and end time. the time is stored somewhere and the best time (the shortest) is callable and taken element data in server side so that all can see who got the best time to reach end marker Link to comment
HairyMeets Posted January 21, 2018 Author Share Posted January 21, 2018 1 hour ago, alonemta said: Can you help me I'm using this for marker purpose i want a script which is count players travel time from marker to marker. start time and end time. the time is stored somewhere and the best time (the shortest) is callable and taken element data in server side so that all can see who got the best time to reach end marker Create another topic and describe your problem there Link to comment
Moderators IIYAMA Posted January 21, 2018 Moderators Share Posted January 21, 2018 (edited) @HairyMeets function keyDetection (key, keyState) iprint("key:", key, ", keystate:", keyState) end bindKey ( "arrow_u", "down", keyDetection ) bindKey ( "arrow_d", "down", keyDetection ) Untested, but should activate a single function with the keys arrow UP and DOWN. (clientside) Edited January 21, 2018 by IIYAMA Link to comment
HairyMeets Posted January 22, 2018 Author Share Posted January 22, 2018 10 hours ago, IIYAMA said: @HairyMeets function keyDetection (key, keyState) iprint("key:", key, ", keystate:", keyState) end bindKey ( "arrow_u", "down", keyDetection ) bindKey ( "arrow_d", "down", keyDetection ) Untested, but should activate a single function with the keys arrow UP and DOWN. (clientside) I'll try this later, thanks Link to comment
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