VisualLua [v1.3] 
119 comments 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
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:
Examples of usage:
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.
Sorry everyone, the window creating function was absent in the uploaded version! Thanks to

Features:




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:
Examples of usage:
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

Comments
119 commentsLog in!
You need to log in to be able to write comments!Log in
@
Lubo: If you don't understand a shit from lau, it's probably not the right tool for you, unless you have the need to make custom interfaces - then you'll have to begin understanding at least a shit from lau.


can you show an tutorial how to make an inventory where you can store weapon id stuffs on it?
@
Trixx: The VisualLua library is only server-side, so people don't have to download it to see your stuff - you probably didn't put all graphics that you used for your windows and buttons in servertransfer.lst.


I suggest u message DC to update all The CS2D of players to put this visual lua to all players cuz when someone join my server(my server has a visual lua), they dont see some of my luas and features. I keep saying download visual lua but some ppl nowadays just dont listen. Pls put this to all CS2D of players. (sorry for my bad english)

i watched your Video about this Lua.
It's Cool
Window mod, Epic!
Watch this video if you don't get the idea.
VIDEO
It's Cool

Watch this video if you don't get the idea.
VIDEO
I uploaded a version with a very major bug fixed concerning multi-player game. To everyone using this library in their mods - please update!
Thank you for the positive feedback.
@
Pirtyu: Please elaborate, what do you think should be added/changed/fixed?
@
