@coldandtiredFor multiple values, basically... #17


  • Accepted
  • Defect
Open
Assigned to coldandtired
  • coldandtired created this issue Apr 3, 2012
    Owner

    @coldandtired

    For multiple values, basically just used as a way to have a drop down menu or slider set multiple different commands on a single page. I don't really know how well it would even work in practice, and there is probably a better way to implement it anyways. Example would be for use on a page that handles classes in Heroes. With no limit to the number of extra values, one drop down box could modify every button on a page to be specific to the value of that selection.

      I keep thinking of some way to use the hidden button value in combination with this, but I'd imagine it would take FAR more name value keys to get a page to show/hide values when selecting from the drop down, like a name key for every single form that would need to be hidden as a value for every entry in the combo box. I could probably elaborate, or make an example, but now that I've written what's the example below down, I don't see it being needed as much.

    Example:

      - type: combo_box
        text: Combo Box
        items:
        - text: Rouge
          selected_value: rouge & backstab & extra damage when attacking in the back & skill & skilltooltip
        - text: Mage
          selected_value: mage & icebolt & shoots a bolt of ice for 5 damage & skill & skilltooltip
          name1: classname
          name2: skill1
          name3: skill1tooltip
          name4: skill2
          name5: skill2tooltip
      - type: texture
        mode: skin
        name: ^classname^
      - type: button
        text: Set Class
        command: /hero choose ^classname^;/hero confirm
        confirm_command: yes
      - type: button
        text: Bind ^skill1^
        info: ^skill1tooltip^
        command: /bind ^skill1^
      - type: button
        text: Bind ^skill2^
        info: ^skill2tooltip^

  • coldandtired added the tags Defect Accepted Apr 3, 2012

To post a comment, please login or register a new account.