//
    // Color::Setup
    //
    // Setup the control
    void Color::Setup(FScope *fScope)
    {
      switch (fScope->NameCrc())
      {
        case 0x12F4AA17: // "CurColorVar"
          ConfigureVar(colorCurrent, fScope);
          break;

        case 0x2CF75C50: // "SelColorVar"
          ConfigureVar(colorSelected, fScope);
          break;

        default:
          IControl::Setup(fScope);
          break;
      }
    }
Esempio n. 2
0
//
// Setup
//
// Setup this control from one scope function
//
void ColorButton::Setup(FScope *fScope)
{
  switch (fScope->NameCrc())
  {
    case 0x742EA048: // "UseVar"
      ConfigureVar(var, fScope);
      break;

    default:
      // Unknown scopes get passed down
      ICButton::Setup(fScope);
      break;
  }
}
Esempio n. 3
0
//
// ICListBox::SetSelectedItemVar
//
// Set the var to use for the selected item
//
void ICListBox::SetSelectedItemVar(const char *name)
{
    ConfigureVar(selectedVar, name);
}