public STBPrintable(AvailablePart apart) { this.iconRes = 64; this.apart = apart; this._iconViewer = new KIS_IconViewer(apart.partPrefab, this.iconRes); this.icon = this._iconViewer.texture; }
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; }
public void DisableIcon() { Debug.Log("[OSE] - DisableIcon for " + Part.name); if (Icon != null) { Icon.Dispose(); Icon = null; } }
public void DisableIcon() { WorkshopUtils.LogVerbose("DisableIcon for " + Part.name); if (Icon != null) { Icon.Dispose(); Icon = null; } }
public void EnableIcon(int resultion) { Debug.Log("[OSE] - EnableIcon for " + Part.name); DisableIcon(); Icon = new KIS_IconViewer(Part.partPrefab, resultion); }
public void DisableIcon() { Debug.Log("[OSE] - DisableIcon for " + Part.name); Icon = null; }
public void EnableIcon(int resultion) { WorkshopUtils.LogVerbose("EnableIcon for " + Part.name); DisableIcon(); Icon = new KIS_IconViewer(Part.partPrefab, resultion); }