コード例 #1
0
 private void SelectBeacon(ImGui gui, ref bool closed)
 {
     closed = gui.BuildInlineObejctListAndButton <Entity>(Database.allBeacons, DataUtils.DefaultOrdering, sel =>
     {
         if (recipe.modules != null)
         {
             recipe.modules.RecordUndo().beacon = sel;
         }
         contents.Rebuild();
     }, "Select beacon", allowNone: recipe.modules.beacon != null);
 }