Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #3
0
 public void DisableIcon()
 {
     Debug.Log("[OSE] - DisableIcon for " + Part.name);
     if (Icon != null)
     {
         Icon.Dispose();
         Icon = null;
     }
 }
Beispiel #4
0
 public void DisableIcon()
 {
     WorkshopUtils.LogVerbose("DisableIcon for " + Part.name);
     if (Icon != null)
     {
         Icon.Dispose();
         Icon = null;
     }
 }
Beispiel #5
0
 public void EnableIcon(int resultion)
 {
     Debug.Log("[OSE] - EnableIcon for " + Part.name);
     DisableIcon();
     Icon = new KIS_IconViewer(Part.partPrefab, resultion);
 }
Beispiel #6
0
 public void DisableIcon()
 {
     Debug.Log("[OSE] - DisableIcon for " + Part.name);
     Icon = null;
 }
Beispiel #7
0
 public void EnableIcon(int resultion)
 {
     WorkshopUtils.LogVerbose("EnableIcon for " + Part.name);
     DisableIcon();
     Icon = new KIS_IconViewer(Part.partPrefab, resultion);
 }