ValueBar like Control


You have to:
  • Implement "IControl"
    Prerequisites for "Init":
  • Accept an initialisation value
  • Accept the minimum and maximum
  • 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 Drag&Drop for the Bar
    Prerequistes for "State(Parameter)":
  • Return every important var. MustHaves: Value(default state), minimum and maximum
    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 25, 2011 at 11:06 AM by VisibleBasix