Jump to content
UBot Underground

User Interface Question.


Recommended Posts

I need a UI command when the user can input there own products in a box, and have it seperated on a new line like:

 

sofa

couch

television

 

Then have UB loop and take an item (ie sofa), search for it (then delete it), and then take the following item (ie couch, and then delete when taken), etc. I've tried using UI command: block text, but it lumps all the items together. I don't want to have the user open a file, so how can I achieve this?

 

Thanks.

Link to post
Share on other sites

ui block text("Items",#items)
clear list(%items)
add list to list(%items,$list from text(#items,$new line),"Delete","Global")
loop($list total(%items)) {
set(#item,$list item(%items,0),"Global")
alert("current item is: {#item}")
remove from list(%items,0)
set(#items,$text from list(%items,$new line),"Global")
}
Link to post
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.

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.

Loading...
×
×
  • Create New...