Signup Now
Results 1 to 3 of 3
  1. #1
    Free User betonebula's Avatar
    Join Date
    May 2014
    Posts
    6
    Reputation
    10
    Rep Power
    0

    Post "checkbox" that makes "combobox" optional if marked/unmarked

    Hello, I'm doing my own setup to make my own scripts and I got a situation here...
    I have added a "checkbox" here for greats or ultimates (in case the player wants to take only GHPs or only UHPs to respawn), also I have added a "combobox" for GHPs and UHPs, but I want one of those "combobox" to be used only in if the "checkbox" for GHP or UHP is marked....

    Let's suppose, I want to use only greats in my hunt, then I mark the "checkbox" Great Health Potions and select the ammount, but if I try to change the amount of ultimates I can't...

    I don't want people who are going to use my scripts to think that they have to use both kinds of potions, that's why I want to keep it simple and keep one kind of potions not touchable, so that there won't be any missunderstandings...

    I hope I am in the right thread, I'm new to forums!
    Last edited by betonebula; 05-03-2014 at 03:31 PM. Reason: wrote something wrong

  2. #2
    Free User
    Join Date
    Apr 2014
    Location
    Netherlands
    Posts
    219
    Reputation
    13
    Rep Power
    21
    Hi there betonebula,

    I think this works better:

    Potion Setup
    Potions to use [combobox]
    Amount of potions [spinbox]



    What you could do is this:

    Code:
    {
    	"type"     	: "group",
    	"name"     	: "potionsetup",
    	"text"	: "Potion Setup",
    	"children" 	: [
    		{
    			"type"        : "combobox",
    			"name"        : "potiontype",
    			"text"        : "Potion to use",
    			"description" : "Which potions do you want to use?",
    			"items"       : ["great health potion", "ultimate health potion"]
    		},
    		{
    			"type"  : "spinbox",
    			"name"  : "potionamount",
    			"text"  : "Amount of potions",
    			"min"	: 15,
    			"value" : 50
    		}
    	]
    }
    It will let the user pick between 1 type of potion, and select the amount to get below.

    getuseroption('potiontype')
    getuseroption('potionamount')


    Yours,

  3. #3
    Banned
    Join Date
    Feb 2014
    Location
    Leetstreet
    Posts
    324
    Reputation
    38
    Rep Power
    0
    You can hide it with a lua code showuseroption('maxuhp', true/false)


    Tanochis way is better though

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •