Example #1
0
 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);
     }
 }
Example #2
0
 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;
     }
 }