Dateien

> > CS2D > Lua Scripts > VisualLua [v1.3]
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch VisualLua [v1.3] >

119 Kommentare7 kb, 1.557 Downloads

alt 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:
Mehr >


Examples of usage:
Mehr >


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.
6× editiert, zuletzt 10.03.15 14:48:50
Zugelassen von Starkkz

Download Download

7 kb, 1.557 Downloads

Kommentare

119 Kommentare
Seite
Zum Anfang Vorherige 1 2 3 4 5 6 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

xSkyLordx
User Off Offline

Yes, amazing!
Ich mag es!

alt

Big Bang Mafia
User Off Offline

it's amazing i love it
Ich mag es!

alt

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!
1× editiert, zuletzt 23.02.12 14:16:10

alt

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.
Ich mag es!

alt

EngiN33R
Moderator Off Offline

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

alt

Cherno
User Off Offline

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

alt

KenGar07
User Off Offline

this lua is awesome me like it
Ich mag es!

alt

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!
Ich mag es!

alt

EngiN33R
Moderator Off Offline

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

alt

Glix
User Off Offline

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

alt

zygint
User Off Offline

awesome mod good for admins who are Lazy to type ill try it out
Ich mag es!

alt

EngiN33R
Moderator Off Offline

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

alt

StirlizZ-Fapicon
Super User Off Offline

I miss this upload. Good job Engineer!
Ich mag es!

alt

Passer
User Off Offline

Cool Lua IMG:https://www.laymark.com/i/o/07.gif
Ich mag es!

alt

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.

alt

Apache uwu
User Off Offline

lolol I like the third image,

is there

1
window.visible=true?
Ich mag es!

alt

DemonicWare
User Off Offline

good job its really helpfull i like to see such a great ideas!
Ich mag es!

alt

EngiN33R
Moderator Off Offline

Tanks. Dun furget to geev credits.

alt

Tenaika
User Off Offline

l33t script. Goin' to use this in mai weiwen's RPG modification. Kthxbai.
Ich mag es!
Zum Anfang Vorherige 1 2 3 4 5 6 Nächste Zum Anfang