Dateien

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

Englisch VisualLua [v1.3] >

119 Kommentare7 kb, 1.476 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.476 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

StirlizZ-Fapicon
Super User Off Offline

Perfect script Eng, perfect!

@ LoRdEnPeRoR: u nub
Ich mag es!

alt

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

alt

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

alt

Picias
BANNED Off Offline

give me information for how i can work it?

alt

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.

alt

Picias
BANNED Off Offline

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

BRAVOO!

Spoiler >

alt

EngiN33R
Moderator Off Offline

KimKat7 hat geschrieben
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 hat geschrieben
Create UI elements - windows, buttons, text; Customize them any way you want - style sheet tables

EngiN33R hat geschrieben
windows, buttons

EngiN33R hat geschrieben
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.

alt

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.

alt

archmage
User Off Offline

user KimKat hat geschrieben
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.
Ich mag es!

alt

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

alt

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.

alt

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

alt

0a
User Off Offline

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

alt

EngiN33R
Moderator Off Offline

Dark Byte hat geschrieben
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.

alt

archmage
User Off Offline

user EngiN33R hat geschrieben
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.
Ich mag es!

alt

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.

alt

archmage
User Off Offline

Great job. You should add text boxes and drop-down lists. That would be great.
Ich mag es!

alt

FaqAp
User Off Offline

Wow, It's so AWESOME!!!
Ich mag es!

alt

Vectarrio
User Off Offline

good idea, good script. wait... That's not good, that's AWESOME!
Ich mag es!
Zum Anfang Vorherige 1 2 3 4 5 6 Nächste Zum Anfang