Page 1 of 1

Lua How to add Textfields and Buttons.

Posted: Thu Oct 02, 2014 11:01 pm
by SnowyOwl47
Hey guys I'm still new to lua and i couldn't find anythgin really explaining how to make textfields and buttons so I made this in hopes
someone would answer.

So how do you do this in legend of grimrock in normal lua i can do it but not in rimrock...

Re: Lua How to add Textfields and Buttons.

Posted: Fri Oct 03, 2014 12:55 am
by Isaac
Text fields... What ~precisely~ is meant here?
So how do you do this in legend of grimrock in normal lua i can do it but not in rimrock...
Aha... so it's not unfamiliarity with the editor.

For text and GUI button input from the user, look to John Wordsworth's notebook mod: http://www.nexusmods.com/grimrock/mods/355/?

Re: Lua How to add Textfields and Buttons.

Posted: Fri Oct 03, 2014 10:55 pm
by SnowyOwl47
@isaac

If your familiar to GrimWidgets I downloaded them and installed them but... Every time I try to make any dialog or anything for example:

Code: Select all

Function pressed()
Dialog.quickDialog([[bla bla
Bla bla
Bla bla]], clicked)
End
Function clicked()
             hudPrint("something!")
End
That's just an example it's not a copy paste so there are some errors because of auto correct.

If I use anything with Dialog I get an parameter error. Even by reading the manuals I download and installed all the required stuff and set up all the required script_entity files that set up the GrimWidgets for use.

Re: Lua How to add Textfields and Buttons.

Posted: Fri Oct 03, 2014 11:21 pm
by Isaac
SnowyOwl47 wrote:@isaac

If your familiar to GrimWidgets...
Not enough... but I mentioned the thread to one of its developers.