Files

> > CS2D > Lua Scripts > VisualLua [v1.3]
Files overviewCS2D overviewLua Scripts overview

English VisualLua [v1.3] >

119 comments7 kb, 1,565 Downloads

old VisualLua [v1.3]

EngiN33R
Moderator Off Offline

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.
edited 6×, last 10.03.15 02:48:50 pm
Approved by Starkkz

Download Download

7 kb, 1,565 Downloads

Comments

119 comments
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

old

xSkyLordx
User Off Offline

Yes, amazing!
I like it!

old

Big Bang Mafia
User Off Offline

it's amazing i love it
I like it!

old

EngiN33R
Moderator Off Offline

@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

old

tom282f3
User Off Offline

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.
I like it!

old

EngiN33R
Moderator Off Offline

@user Cherno: I don't teach people, you have to learn somehow else, I only help with problems.

old

Cherno
User Off Offline

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

old

KenGar07
User Off Offline

this lua is awesome me like it
I like it!

old

4Vendetta
User Off Offline

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!
I like it!

old

EngiN33R
Moderator Off Offline

@user Glix: Sorry for the delay. Yes, they will. It works in multiplayer too.

old

Glix
User Off Offline

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

old

zygint
User Off Offline

awesome mod good for admins who are Lazy to type ill try it out
I like it!

old

EngiN33R
Moderator Off Offline

Thank you everyone for the 300 downloads. I really appreciate it

old

StirlizZ-Fapicon
Super User Off Offline

I miss this upload. Good job Engineer!
I like it!

old

Passer
User Off Offline

Cool Lua IMG:https://www.laymark.com/i/o/07.gif
I like it!

old

EngiN33R
Moderator Off Offline

Unfortunately there isn't such a function as of yet, I'll be sure to add it in the next version.

old

Apache uwu
User Off Offline

lolol I like the third image,

is there

1
window.visible=true?
I like it!

old

DemonicWare
User Off Offline

good job its really helpfull i like to see such a great ideas!
I like it!

old

EngiN33R
Moderator Off Offline

Tanks. Dun furget to geev credits.

old

Tenaika
User Off Offline

l33t script. Goin' to use this in mai weiwen's RPG modification. Kthxbai.
I like it!
To the start Previous 1 2 3 4 5 6 Next To the start