Jump to content

Lua properties issue: Choice dropdowns


AggrorJorn
 Share

Recommended Posts

Besides all the bugs that are currently happening with Lua properties:

Default values error: http://www.leadwerks...et-for-vectors/

Material crash: http://www.leadwerks...material-crash/

Entity property doesn't work: http://www.leadwerks...lecting-entity/

Path filter doesn't work: http://www.leadwerks...er-doesnt-work/

 

I have some issues with creating 'Choice' and 'Edit Choice' properties in Lua. The dropdown is not filled with my options. The documentation specifies the following:

Script.mode = nill --choice "Mode" "Happy,Angry,Sad,Thoughtful"

 

I tried the following:

Script.mode = --choice "a choice" "Happy,Angry,Sad,Thoughtful"
Script.mode = 0 --choice "a choice" "Happy,Angry,Sad,Thoughtful"
Script.mode = "" --choice "a choice" "Happy,Angry,Sad,Thoughtful"
Script.mode = nill --choice "a choice" "Happy,Angry,Sad,Thoughtful"

This doesn't do anything at all. Either the documentation is wrong or it is another bug.

Has anybody been able to successfully do this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...