Files

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

English VisualLua [v1.3] >

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

Tajifun
User Off Offline

Okay, that's by far the best own-usage script I've ever seen.
Thank ya so much for sharing. It's amazing!
I like it!

old

Surplus
User Off Offline

Wich he will probrably do, like he does with every script he gets e_e
I like it!

old

Quit123
User Off Offline

ok thx man GooD Luck you good lua maker
I like it!

old

EngiN33R
Moderator Off Offline

Well this script is made so you could edit it to fit to your needs. Don't claim the edited version as yours though.

old nice

Quit123
User Off Offline

can i edit ? it please ohhh and GooD Luck
I like it!

old

EngiN33R
Moderator Off Offline

Thanks for ruining the rating.

You put the content of the visuallua folder into your CS2D folder. You won't see any changes in the game, this script is mostly for experienced scripters!

If the script doesn't work FOR YOU it doesn't mean it deserves 1 star.

old

ArChaLV
User Off Offline

This Script not working!How to make it work?Please help!
edited 1×, last 21.05.11 05:22:07 pm

old

Picias
BANNED Off Offline

Spoiler >


Lol -,-

old

Andrez
User Off Offline

Fucking awesome

5/5!
I like it!

old

Picias
BANNED Off Offline

Tobey
i try it too
but its fail

old I lol'd

CY
Reviewer Off Offline

At the comment below, oh yes. Another great upload by Sir Engy!
I like it!

old

RAVENOUS
BANNED Off Offline

Stupid Picias has written
dofile("sys/VisualLua.lua)"


Boy, it's

1
dofile("sys/lua/VisualLua.lua)"
I like it!

old

Picias
BANNED Off Offline

i know its work
but i dont know where i put it
i puted it in server.lua its not work
i puted it in sys/lua
and write in server.lua
dofile("sys/VisualLua.lua)"
and its not work..
-,-

old

DannyDeth
User Off Offline

Oh, come on, Picias. It works fine, you just don't know how to GET it working. Scripts do not just magically work!
I like it!

old

Picias
BANNED Off Offline

help me good man
its not work -,-

old

DannyDeth
User Off Offline

Nice, Engi Imma check out this source code, by the looks of things you made it image-based ( I highly doubt you made it in another fashion ).
I like it!

old

EngiN33R
Moderator Off Offline

You put everything that's inside the visuallua directory in the archive in your CS2D folder.

old

Picias
BANNED Off Offline

Man , help me where i put this -,-


More >

old

Infinite Rain
Reviewer Off Offline

Great, that script is nice!
BTW
LoRdEnPeRoR
If u cant use scripts just stfu and leave it...
I like it!

old

EngiN33R
Moderator Off Offline

@KimKat
I think I put a comment before every function explaining how to use it, what do the arguments mean and what are their possible values. I can as well post examples.

Welcome window, as I mentioned in the video preview, isn't in the final release, it was purely for testing purposes. I may as well use it as the example for creating windows and all these things.

@LoRdEnPeRoR Durr, thanks for ruining my mod overall rating, pardn'r.

EDIT 1: Now added style tables documentation and examples of the script usage (Welcome screen yay)
edited 2×, last 17.05.11 06:56:29 am
To the start Previous 1 2 3 4 5 6 Next To the start