Files

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

English VisualLua [v1.3] >

119 comments7 kb, 1,567 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,567 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

StirlizZ-Fapicon
Super User Off Offline

Perfect script Eng, perfect!

@ LoRdEnPeRoR: u nub
I like it!

old

Occasus
User Off Offline

@ LoRdEnPeRoR
I guess you're doing something wrong in the process though

@ Script
I liked it very much with this script I thank thee for making it
I like it!

old

KimKat
GAME BANNED Off Offline

Indeed, there is insufficient information on how to create a window and what is the "disabled button" for? it's not even used in the script, also it doesn't follow the style of the other buttons. Hmm, I didn't get that nice welcome window when I started server with that Lua script for some reason. The Lua script added simply three hooks which were the clientdata(), attack() and ms100().
I like it!

old

Picias
BANNED Off Offline

give me information for how i can work it?

old

EngiN33R
Moderator Off Offline

@Picias it seems that you're doing something wrong on your side - it works for everyone else, at least I so hope.

old

Picias
BANNED Off Offline

OMG
really this is new idea
and Awesome awesome
i think this is best idea

BRAVOO!

Spoiler >

old

EngiN33R
Moderator Off Offline

KimKat7 has written
By the way, do you think it's possible to make these windows customized in order to add possibilities to create different window styles with rounded corners, shapes and so on.

EngiN33R has written
Create UI elements - windows, buttons, text; Customize them any way you want - style sheet tables

EngiN33R has written
windows, buttons

EngiN33R has written
Customize them any way you want

Durr. I have style tables to customize everything. Well, almost.
@xByte39x, I didn't really experience any slowness while using this script. Metatables are probably good when there's a lot of data going through, but if there isn't - regular tables are okay too.

old

mafia_man
User Off Offline

@KimKat7 everything is possible.

@The Script
You use array's that's really slow you should use metatables (i think), I was think about making something like this but I think it's pointless because we have build in menu's.

old

archmage
User Off Offline

user KimKat has written
Do you think it's possible to also do scrollbars in Lua? to navigate inside a window. That'd be pretty cool. By the way, do you think it's possible to make these windows customized in order to add possibilities to create different window styles with rounded corners, shapes and so on.

Yes, that is possible.
I like it!

old

KimKat
GAME BANNED Off Offline

This is the most impressive Lua script of the week, most probably. Do you think it's possible to also do scrollbars in Lua? to navigate inside a window. That'd be pretty cool. By the way, do you think it's possible to make these windows customized in order to add possibilities to create different window styles with rounded corners, shapes and so on. Great upload EngiN33R, this is one mighty VisualLua script.
I like it!

old

EngiN33R
Moderator Off Offline

This kind of an auxiliary mod is oriented more on scripters rather than general users - it's like a library for them to use.

old

Alistaire
User Off Offline

At sight of the title I thought someone made a Lua application which could change VBS to Lua..?

Oh and yea I like it 5/5 etc.. just don't need it.
I like it!

old

0a
User Off Offline

So creative. Keep it up to good work!
(i hate those facking words-want write my words. damn)
I like it!

old

EngiN33R
Moderator Off Offline

Dark Byte has written
There is a way, but it is OS dependent.

I'm not really good at OS dependent stuff, unlike you Furthermore it will require DLLs to be downloaded, and that's not that good.

old

archmage
User Off Offline

user EngiN33R has written
Well there's this thing about text boxes - how would you select text inside them and how would you delete text? And drop-down lists are planned for one of the next versions to come.

Yeah I just thought of that. There is a way, but it is OS dependent.
I like it!

old

EngiN33R
Moderator Off Offline

Well there's this thing about text boxes - how would you select text inside them and how would you delete text? And drop-down lists are planned for one of the next versions to come.

old

archmage
User Off Offline

Great job. You should add text boxes and drop-down lists. That would be great.
I like it!

old

FaqAp
User Off Offline

Wow, It's so AWESOME!!!
I like it!

old

Vectarrio
User Off Offline

good idea, good script. wait... That's not good, that's AWESOME!
I like it!
To the start Previous 1 2 3 4 5 6 Next To the start