Forum

> > CS2D > Scripts > Visual lua using?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Visual lua using?

9 replies
To the start Previous 1 Next To the start

old Visual lua using?

Mora
User Off Offline

Quote
Hello all, just i pm @user EngiN33R: for help, but he didn't answer me -.-
So, i writte here one topic for ask one thing:
how to use this visual lua? >.>
example of one, i just press F2 and got this "pressable" menu...
i tried to do something with, but i got wrong...
Thank you all for help

old Re: Visual lua using?

Bounty Hunter
BANNED Off Offline

Quote
user EngiN33R has written
vl.createWindow(1,1,320,240,9,7,true,1,"Welcome screen")
local txt1=vl.createText(0,"000000000","Hello! This server uses the VisualLua mod by",180,160)
local txt2=vl.createText(0,"000000000","EngiN33R. Have fun!",180,175)
vl.createButton(1,1,384,310,2,"",function() vl.closeWindow(1) vl.removeButton(1) vl.removeText(txt1) vl.removeText(txt2) end)

old Re: Visual lua using?

Mora
User Off Offline

Quote
@user Bounty Hunter: how do you use it?...

1
LUA ERROR: sys/lua/VisualLua.lua:131: attempt to index field '?' (a nil value)
Spoiler >

old Re: Visual lua using?

Bounty Hunter
BANNED Off Offline

Quote
vl.createButton( button id , player id , x , y , style , caption , function )
vl.createWindow( window id , player id , x , y , scale x , scale y , style , border , headline )
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview