private void DrawIcon(ModuleSTBBlockCompresser.STBPrintable b) { if (GUILayout.Button(new GUIContent(b.apart.title, b.icon, b.apart.description), new GUILayoutOption[0])) { this.IconClicked(b); } }
private void IconClicked(ModuleSTBBlockCompresser.STBPrintable b) { if (this.queue.Count == this.maxQueue) { ScreenMessages.PostScreenMessage("Queue limit reached! Hold on!", 2f, ScreenMessageStyle.UPPER_CENTER); } else { this.queue.Add(b); this.isBusy = true; this._guiVisible = false; } }