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