0

Closed

ListBox like control

description

You have to:
 
  • Implement "IControl"
     
    Prerequisites for "Init":
     
  • Accept an initialisation value
  • Accept the list items
  • Accept the needed Textures (It's up to you how you arrange the Textures.)
     
    Prerequisites for "Draw":
     
  • No calcs as you already know.
  • Render the current value and bar
     
    Prerequisites for "Update":
     
  • Be able to change the Value over the mouse. I would prefer up&down arrows
    Prerequistes for "State(Parameter)":
     
  • Return every important var. MustHaves: Current Item(default state), List of items
     
    Prerequisites for "State":
     
  • Return the Value as default value for state
     
    Prerequisites of the property "this[string key]":
     
  • Use the same key definitions as in the "State" - sub
  • Be able to set the most "State"s over the same key
  • throw an error if the key is read only.
  • Call "State(Parameter)" for the "Get" part of the property
Closed Apr 29, 2011 at 6:42 PM by VisibleBasix

comments