Exemple #1
0
// ObtainUIStates():
bool Nullify_Interface::ObtainUIStates() {
  if( panel == NULL ) 
    return false;

  nullify_decendants  = (FGETINT( xpanels, panel, NUI_NULLIFY_DECENDANTS  ) > 0) ? true : false;
  remove_bones        = (FGETINT( xpanels, panel, NUI_REMOVE_BONES        ) > 0) ? true : false;
  disable_shadows     = (FGETINT( xpanels, panel, NUI_DISABLE_SHADOWS     ) > 0) ? true : false;
  store_original_name = (FGETINT( xpanels, panel, NUI_STORE_ORIGINAL_NAME ) > 0) ? true : false;
  remove_morph_mixer  = (FGETINT( xpanels, panel, NUI_REMOVE_MORPH_MIXER  ) > 0) ? true : false;

  char * new_prefix = (char *)(*xpanels->formGet)( panel, NUI_PREFIX );
  strcpy( prefix, ((new_prefix == NULL) ? "" : new_prefix) );

  char * new_suffix = (char *)(*xpanels->formGet)( panel, NUI_SUFFIX );
  strcpy( suffix, ((new_suffix == NULL) ? "" : new_suffix) );

  return true;
}
Exemple #2
0
// ObtainUIStates():
bool ObjectShadowOptions_Interface::ObtainUIStates() {
  if( panel == NULL ) 
    return false;

  limit_to         = FGETINT( xpanels, panel, OUI_LIMIT_TO         );
  match_toggle     = FGETINT( xpanels, panel, OUI_MATCH_TOGGLE     );
  self_shadow      = FGETINT( xpanels, panel, OUI_SELF_SHADOW      );
  receive_shadow   = FGETINT( xpanels, panel, OUI_RECEIVE_SHADOW   );
  cast_shadow      = FGETINT( xpanels, panel, OUI_CAST_SHADOW      );
  unseen_by_camera = FGETINT( xpanels, panel, OUI_UNSEEN_BY_CAMERA );
  unseen_by_rays   = FGETINT( xpanels, panel, OUI_UNSEEN_BY_RAYS   );

  char * new_string = (char *)(*xpanels->formGet)( panel, OUI_MATCH_STRING );
  strcpy( match_string, ((new_string == NULL) ? "" : new_string) );

  return true;
}