English VisualLua [v1.3] icon

119 comments
16.05.11 08:21:49 pm
like 59 like it!
7 kb, 1,084 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
17.05.11 05:43:51 am
like I like it!
Up
StirlizZ-Fapicon
Super User
Offline Off
Perfect script Eng, perfect!

@ LoRdEnPeRoR: u nub
17.05.11 02:39:26 am
like I like it!
Up
Occasus
User
Offline Off
@ 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
16.05.11 11:26:33 pm
like I like it!
Up
KimKat
GAME BANNED
Offline Off
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().
16.05.11 10:45:54 pm
Up
Picias
BANNED
Offline Off
give me information for how i can work it?
16.05.11 10:29:59 pm
Up
EngiN33R
Moderator
Offline Off
@Picias it seems that you're doing something wrong on your side - it works for everyone else, at least I so hope.
16.05.11 10:18:09 pm
Up
Picias
BANNED
Offline Off
OMG
really this is new idea
and Awesome awesome
i think this is best idea

BRAVOO!

Spoiler >
16.05.11 10:03:13 pm
Up
EngiN33R
Moderator
Offline Off
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.
16.05.11 09:41:27 pm
Up
mafia_man
User
Offline Off
@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.
16.05.11 09:41:24 pm
like I like it!
Up
archmage
User
Offline Off
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.
16.05.11 09:33:59 pm
like I like it!
Up
KimKat
GAME BANNED
Offline Off
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.
16.05.11 09:27:45 pm
Up
EngiN33R
Moderator
Offline Off
This kind of an auxiliary mod is oriented more on scripters rather than general users - it's like a library for them to use.
16.05.11 09:17:06 pm
like I like it!
Up
Alistaire
User
Offline Off
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.
16.05.11 08:58:53 pm
like I like it!
Up
0a
User
Offline Off
So creative. Keep it up to good work!
(i hate those facking words-want write my words. damn)
16.05.11 08:53:30 pm
Up
EngiN33R
Moderator
Offline Off
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.
16.05.11 08:50:07 pm
like I like it!
Up
archmage
User
Offline Off
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.
16.05.11 08:47:53 pm
Up
EngiN33R
Moderator
Offline Off
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.
16.05.11 08:42:19 pm
like I like it!
Up
archmage
User
Offline Off
Great job. You should add text boxes and drop-down lists. That would be great.
16.05.11 08:31:28 pm
like I like it!
Up
FaqAp
User
Offline Off
Wow, It's so AWESOME!!!
16.05.11 08:23:54 pm
like I like it!
Up
Vectarrio
User
Offline Off
good idea, good script. wait... That's not good, that's AWESOME!
To the start Previous 1 2 3 4 5 6 Next To the start