mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
[editor] Searchbar <none> label
This commit is contained in:
parent
ec61734f5d
commit
fce5f23a49
1 changed files with 2 additions and 2 deletions
|
|
@ -724,13 +724,13 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
|||
button.resizeImage(8 * 4f);
|
||||
button.update(() -> button.setChecked(editor.drawBlock == block));
|
||||
group.add(button);
|
||||
blockSelection.add(button).size(50f).grow().top().left().tooltip(block.localizedName);
|
||||
blockSelection.add(button).size(50f).tooltip(block.localizedName);
|
||||
|
||||
if(++i % 4 == 0) blockSelection.row();
|
||||
}
|
||||
|
||||
if(group.getButtons().isEmpty()){
|
||||
blockSelection.add("@none");
|
||||
blockSelection.add("@none").padLeft(80f).padTop(10f);
|
||||
}else{
|
||||
// Select first block
|
||||
group.getButtons().first().fireClick();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue