de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 A little array puzzle
PostPosted: Sat Jun 11, 2016 9:27 pm 
Offline
Veteran
Hey.

I want use an array where each element is a value which can be selected form a dropdown menu.
How can you do that?

My goal is to have an array with several mistresses, which can be selected from a dropdown menu. If a new mistress is unlocked I want to add the mistress to the array (which should be simple enough) and then the dropdown menu should add it as well. Any suggestions?

for instance
def mistressSelect = getSelectedValue("Select the Mistress you would like to play against", ["***quit***",mistress[0], mistress[1]])

but how would you add anotherm if the array is expanded with one more?


Top
 Profile Send private message 
 
 Re: A little array puzzle
PostPosted: Sun Jun 12, 2016 9:48 am 
Offline
Site Admin
User avatar
You can prepare the array, fill it, then use it.
Code:
def options = ["***quit***",mistress[0], mistress[1]]
if(....)
  options.add(mistress[3])
if(....)
  options.add(mistress[11])
def mistressSelect = getSelectedValue("Select the Mistress you would like to play against", options)


Top
 Profile Send private message 
 
 Re: A little array puzzle
PostPosted: Sun Jun 12, 2016 11:53 am 
Offline
Veteran
doti wrote:
You can prepare the array, fill it, then use it.
Code:
def options = ["***quit***",mistress[0], mistress[1]]
if(....)
  options.add(mistress[3])
if(....)
  options.add(mistress[11])
def mistressSelect = getSelectedValue("Select the Mistress you would like to play against", options)


Fantastic! Just what I was looking for:).
Thanks again, Doti!:)


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.