TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Proposal: Add 'allowBid' and 'defaultBid' attributes to '<player>' node

    Scheduled Pinned Locked Moved Map Making
    1 Posts 1 Posters 268 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LaFayetteL Offline
      LaFayette Admin
      last edited by

      Proposal

      Add optional attributes to <player> node:

      • allowBid | boolean | default = true
      • defaultBid | number | default = 0

      For backward compatibility the existing bid <property> would continue to work and could be used if a min and max bid were needed.

      Example, before:

      <playerList>
        <player name="Americans"/>
      </playerList>
      
      <propertyList>
        <property name="Americans bid" value="30" editable="true">
              <number min="0" max="1000"/>
        </property>
      </propertyList>
      

      Example, after:

      The above before example would be equivalent to:

      <playerList>
        <player name="Americans"/>
      </playerList>
      

      With default attribute values specified explicitly:

      <playerList>
        <player name="Americans" allowBid="true" defaultBid="0"/>
      </playerList>
      

      If wanting to disable bid:

      <playerList>
        <player name="Americans" allowBid="false"/>
      </playerList>
      

      If wanting to set a default bid:

      <playerList>
        <player name="Americans" defaultBid="30"/>
      </playerList>
      
      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post
      Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums