VisualLua [v1.3] 
119 comments Some of you have probably noticed that CS2D has few UI functions. It's not enough for me, so I decided to make UI functions myself. And therefore, behold - the VisualLua mod!
Sorry everyone, the window creating function was absent in the uploaded version! Thanks to
tom282f3 for pointing that out. Updated now.
Features:
Create UI elements - windows, buttons, text
Customize them any way you want - style sheet tables
Hover and click states for buttons
Assign ANY Lua functions to buttons - they will be executed on button click
Documentation about style sheet tables is INSIDE the archive in a txt file. Read it if you want to add your own styles.
Comments about usage of functions and their arguments are in the script before every function.
Write anything that's not clear to you in the comments - I'll gladly explain.
Video preview: http://www.youtube.com/watch?v=WKPjjVrtNog
Style tables documentation:
Examples of usage:
EDIT 1: If box versions of this are ever to be released, then they'll probably look like the third image
Download, rate and comment, but most importantly - have fun.
Sorry everyone, the window creating function was absent in the uploaded version! Thanks to

Features:




Documentation about style sheet tables is INSIDE the archive in a txt file. Read it if you want to add your own styles.
Comments about usage of functions and their arguments are in the script before every function.
Write anything that's not clear to you in the comments - I'll gladly explain.
Video preview: http://www.youtube.com/watch?v=WKPjjVrtNog
Style tables documentation:
Examples of usage:
EDIT 1: If box versions of this are ever to be released, then they'll probably look like the third image

Download, rate and comment, but most importantly - have fun.
edited 6×, last 10.03.15 02:48:50 pm

Comments
119 commentsLog in!
You need to log in to be able to write comments!Log in
@
tom282f3: Thank you for the detailed criticism.
Unfortunately, even if I try and script this with as much thinking power as possible, there is no way to capture a mouse click aside from the attack hook, so sadly, that's as much as we can get. (EDIT 1: Well, you can, but using external libraries which I don't want to use.)
And about the folders - yeah, I tend to do that, I guess it will be better to do it the way you say. Cheers!

Unfortunately, even if I try and script this with as much thinking power as possible, there is no way to capture a mouse click aside from the attack hook, so sadly, that's as much as we can get. (EDIT 1: Well, you can, but using external libraries which I don't want to use.)
And about the folders - yeah, I tend to do that, I guess it will be better to do it the way you say. Cheers!
edited 1×, last 23.02.12 02:16:10 pm

I think this is great but the functions of clicks(button,etc.) is depending on the "fire" that lead to some problems(example: You cannot click button when you are spectating). I think it's probably because CS2D cannot support the "click" function completely. It might be solved by some smart scripters like you, so do you have some other solution about this?
Another thing: you can put "gfx/" and "sfx/" directly into the zip instead of put it in another folder and then compress it. I will be appreciate if I can just select the folder of "CS2D" and decompress it, not put them into "CS2D" manually. THX BUDDY.
Another thing: you can put "gfx/" and "sfx/" directly into the zip instead of put it in another folder and then compress it. I will be appreciate if I can just select the folder of "CS2D" and decompress it, not put them into "CS2D" manually. THX BUDDY.
@
Cherno: I don't teach people, you have to learn somehow else, I only help with problems.


AWSOME
hope still free 4ever,but i don't know how to make script...
can you teach me ENGIN33R?

can you teach me ENGIN33R?

Very nice, I've made an awesome defuse bomb mode with this, "you need click in the correct number sequency or.. BOOOMMM" later I'll post here!
@
Glix: Sorry for the delay. Yes, they will. It works in multiplayer too.


If i make with this script and play on online. Will players see that. Buttons and all things...