mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Fix Scaling on Objective Dialogs (#8646)
This commit is contained in:
parent
ab95b88c05
commit
fc0f48e13d
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ public class MapObjectivesDialog extends BaseDialog{
|
|||
setInterpreter(UnlockableContent.class, (cont, name, type, field, remover, indexer, get, set) -> {
|
||||
name(cont, name, remover, indexer);
|
||||
cont.table(t -> t.left().button(
|
||||
b -> b.image().size(iconSmall).update(i -> i.setDrawable(get.get().uiIcon)),
|
||||
b -> b.image().size(iconSmall).scaling(Scaling.fit).update(i -> i.setDrawable(get.get().uiIcon)),
|
||||
() -> showContentSelect(null, set, b -> (field != null && !field.isAnnotationPresent(Researchable.class)) || b.techNode != null)
|
||||
).fill().pad(4)).growX().fillY();
|
||||
});
|
||||
|
|
@ -505,7 +505,7 @@ public class MapObjectivesDialog extends BaseDialog{
|
|||
content.getBy(type).<UnlockableContent>as()
|
||||
)){
|
||||
if(content.isHidden() || !check.get((T)content)) continue;
|
||||
t.image(content == Blocks.air ? Icon.none.getRegion() : content.uiIcon).size(iconMed).pad(3)
|
||||
t.image(content == Blocks.air ? Icon.none.getRegion() : content.uiIcon).size(iconMed).pad(3).scaling(Scaling.fit)
|
||||
.with(b -> b.addListener(new HandCursorListener()))
|
||||
.tooltip(content.localizedName).get().clicked(() -> {
|
||||
cons.get((T)content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue