Lua How to add Textfields and Buttons.

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Lua How to add Textfields and Buttons.

Post 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...
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Lua How to add Textfields and Buttons.

Post 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/?
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: Lua How to add Textfields and Buttons.

Post 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.
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Lua How to add Textfields and Buttons.

Post by Isaac »

SnowyOwl47 wrote:@isaac

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