Пример #1
0
 /// <summary>
 /// Updates the input texture-control text field with the texture-set names for this model.  Disables field if no texture sets found, enables field if more than one texture set is available.
 /// </summary>
 /// <param name="module"></param>
 /// <param name="fieldName"></param>
 /// <param name="currentTexture"></param>
 public virtual void updateTextureUIControl(PartModule module, string fieldName, string currentTexture)
 {
     string[] names = modelDefinition.getTextureSetNames();
     module.updateUIChooseOptionControl(fieldName, names, names, true, currentTexture);
     module.Fields[fieldName].guiActiveEditor = names.Length > 1;
 }
Пример #2
0
 public virtual void updateTextureUIControl(PartModule module, string fieldName, string currentTexture)
 {
     string[] names = modelDefinition.getTextureSetNames();
     module.updateUIChooseOptionControl(fieldName, names, names, true, currentTexture);
 }