mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Fixed #2585
This commit is contained in:
parent
0c7a7e00eb
commit
f242a2b2cd
3 changed files with 1 additions and 1 deletions
BIN
core/assets-raw/sprites/units/omura-cannon-heat.png
Normal file
BIN
core/assets-raw/sprites/units/omura-cannon-heat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
core/assets-raw/sprites/units/omura-cannon.png
Normal file
BIN
core/assets-raw/sprites/units/omura-cannon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
|
|
@ -340,7 +340,7 @@ public class ResearchDialog extends BaseDialog{
|
|||
button.update(() -> {
|
||||
float offset = (Core.graphics.getHeight() % 2) / 2f;
|
||||
button.setPosition(node.x + panX + width / 2f, node.y + panY + height / 2f + offset, Align.center);
|
||||
button.getStyle().up = !locked(node.node) ? Tex.buttonOver : selectable(node.node) && !canSpend(node.node) ? Tex.buttonRed : Tex.button;
|
||||
button.getStyle().up = !locked(node.node) ? Tex.buttonOver : !selectable(node.node) || !canSpend(node.node) ? Tex.buttonRed : Tex.button;
|
||||
|
||||
((TextureRegionDrawable)button.getStyle().imageUp).setRegion(node.selectable ? node.node.content.icon(Cicon.medium) : Icon.lock.getRegion());
|
||||
button.getImage().setColor(!locked(node.node) ? Color.white : node.selectable ? Color.gray : Pal.gray);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue