English VisualLua [v1.3] icon

119 comments
16.05.11 08:21:49 pm
like 59 like it!
7 kb, 1,073 Downloads
EngiN33R
Moderator
Offline Off
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 user 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:
More >


Examples of usage:
More >


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.
imageimageimage
edited 6×, last 10.03.15 02:48:50 pm
ok This file has been reviewed and approved by Starkkz (29.11.15 02:44:45 pm)

Comments

119 comments
Goto Page
To the start Previous 1 2 3 4 5 6 Next To the start

Log in!

You need to log in to be able to write comments!Log in
06.03.12 11:52:52 am
like I like it!
Up
xSkyLordx
User
Offline Off
Yes, amazing!
05.03.12 01:57:44 pm
like I like it!
Up
Big Bang Mafia
User
Offline Off
it's amazing i love it
23.02.12 09:38:36 am
Up
EngiN33R
Moderator
Offline Off
@user 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!
edited 1×, last 23.02.12 02:16:10 pm
21.02.12 02:27:42 pm
like I like it!
Up
tom282f3
User
Offline Off
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.
21.02.12 01:45:26 pm
Up
EngiN33R
Moderator
Offline Off
@user Cherno: I don't teach people, you have to learn somehow else, I only help with problems.
21.02.12 01:09:56 pm
like I like it!
Up
Cherno
User
Offline Off
AWSOME hope still free 4ever,but i don't know how to make script...
can you teach me ENGIN33R?
21.02.12 12:44:55 pm
like I like it!
Up
It kinda blocks the gameplay, but it's still good.
21.02.12 12:37:54 pm
like I like it!
Up
KenGar07
User
Offline Off
this lua is awesome me like it
20.02.12 10:10:00 pm
like I like it!
Up
4Vendetta
User
Offline Off
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!
26.01.12 05:55:15 am
Up
EngiN33R
Moderator
Offline Off
@user Glix: Sorry for the delay. Yes, they will. It works in multiplayer too.
24.01.12 03:15:35 pm
like I like it!
Up
Glix
User
Offline Off
If i make with this script and play on online. Will players see that. Buttons and all things...
08.11.11 10:25:06 am
like I like it!
Up
zygint
User
Offline Off
awesome mod good for admins who are Lazy to type ill try it out
08.11.11 09:46:06 am
Up
EngiN33R
Moderator
Offline Off
Thank you everyone for the 300 downloads. I really appreciate it
07.11.11 11:31:44 pm
like I like it!
Up
StirlizZ-Fapicon
Super User
Offline Off
I miss this upload. Good job Engineer!
31.10.11 02:32:38 pm
like I like it!
Up
Passer
User
Offline Off
Cool Lua IMG:http://www.laymark.com/i/o/07.gif
20.07.11 12:27:23 pm
Up
EngiN33R
Moderator
Offline Off
Unfortunately there isn't such a function as of yet, I'll be sure to add it in the next version.
20.07.11 09:10:13 am
like I like it!
Up
PyKemis
User
Offline Off
lolol I like the third image,

is there

Code:
1
window.visible=true?

08.07.11 07:46:59 pm
like I like it!
Up
DemonicWare
User
Offline Off
good job its really helpfull i like to see such a great ideas!
30.06.11 11:50:45 am
Up
EngiN33R
Moderator
Offline Off
Tanks. Dun furget to geev credits.
30.06.11 10:41:57 am
like I like it!
Up
Tenaika
User
Offline Off
l33t script. Goin' to use this in mai weiwen's RPG modification. Kthxbai.
To the start Previous 1 2 3 4 5 6 Next To the start