mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
arc
This commit is contained in:
@ -70,9 +70,7 @@ public class NodeSlotProcessor extends BaseProcessor{
|
|||||||
|
|
||||||
|
|
||||||
CodeBlock.Builder code = CodeBlock.builder();
|
CodeBlock.Builder code = CodeBlock.builder();
|
||||||
fields.each((type, inits) -> {
|
fields.each((type, inits) -> code.addStatement("map.put($L.class, new mindustry.logic.LogicNode.NodeSlot[]{$L})", type.toString(), inits.toString(",")));
|
||||||
code.addStatement("map.put($L.class, new mindustry.logic.LogicNode.NodeSlot[]{$L})", type.toString(), inits.toString(","));
|
|
||||||
});
|
|
||||||
|
|
||||||
slotClass.addStaticBlock(code.build());
|
slotClass.addStaticBlock(code.build());
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ public abstract class LogicNode{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void build(Table table){
|
public void build(Table table){
|
||||||
|
//TODO replace with dropdown menu
|
||||||
TextButton[] button = {null};
|
TextButton[] button = {null};
|
||||||
button[0] = table.button(op.symbol, Styles.cleart, () -> {
|
button[0] = table.button(op.symbol, Styles.cleart, () -> {
|
||||||
op = BinaryOp.all[(op.ordinal() + 1) % BinaryOp.all.length];
|
op = BinaryOp.all[(op.ordinal() + 1) % BinaryOp.all.length];
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=ebfb38e52d8af4d0a48fbbdfc702846a0d135e21
|
archash=d71d43f90bca3d764b79e22c868f840fc4261361
|
||||||
|
Reference in New Issue
Block a user