Esempio n. 1
0
 public STBPrintable(AvailablePart apart)
 {
     this.iconRes     = 64;
     this.apart       = apart;
     this._iconViewer = new KIS_IconViewer(apart.partPrefab, this.iconRes);
     this.icon        = this._iconViewer.texture;
 }
Esempio n. 2
0
 public STBPrintable(string partName)
 {
     this.iconRes     = 64;
     this.apart       = PartLoader.getPartInfoByName(partName);
     this._iconViewer = new KIS_IconViewer(this.apart.partPrefab, this.iconRes);
     this.icon        = this._iconViewer.texture;
 }
Esempio n. 3
0
 public void DisableIcon()
 {
     Debug.Log("[OSE] - DisableIcon for " + Part.name);
     if (Icon != null)
     {
         Icon.Dispose();
         Icon = null;
     }
 }
Esempio n. 4
0
 public void DisableIcon()
 {
     WorkshopUtils.LogVerbose("DisableIcon for " + Part.name);
     if (Icon != null)
     {
         Icon.Dispose();
         Icon = null;
     }
 }
Esempio n. 5
0
 public void EnableIcon(int resultion)
 {
     Debug.Log("[OSE] - EnableIcon for " + Part.name);
     DisableIcon();
     Icon = new KIS_IconViewer(Part.partPrefab, resultion);
 }
Esempio n. 6
0
 public void DisableIcon()
 {
     Debug.Log("[OSE] - DisableIcon for " + Part.name);
     Icon = null;
 }
Esempio n. 7
0
 public void EnableIcon(int resultion)
 {
     WorkshopUtils.LogVerbose("EnableIcon for " + Part.name);
     DisableIcon();
     Icon = new KIS_IconViewer(Part.partPrefab, resultion);
 }