Skip to content

Commit

Permalink
feat(block): Added false(boolean block)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxGalaxy committed Nov 15, 2023
1 parent 333e73d commit a99df28
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/src/main/java/builtin/blocks/BuiltInBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,26 @@ public static ArrayList<BlocksHolder> getBuiltInBlocksHolder() {

blockInHolder4.setBlockContent(block4ContentList);

Block blockInHolder5 = new Block();
blockInHolder5.setColor("#009900");
blockInHolder5.setBlockType(Block.BlockType.returnWithTypeBoolean);
blockInHolder5.setName("false");
blockInHolder5.setRawCode("false");
blockInHolder5.setReturns("boolean");

ArrayList<BlockContent> block5ContentList = new ArrayList<BlockContent>();

BlockContent block5Content1 = new BlockContent();
block5Content1.setText("false");
block5ContentList.add(block5Content1);

blockInHolder5.setBlockContent(block5ContentList);

blockList.add(blockInHolder1);
blockList.add(blockInHolder2);
blockList.add(blockInHolder3);
blockList.add(blockInHolder4);
blockList.add(blockInHolder5);

holder1.setBlocks(blockList);

Expand Down

0 comments on commit a99df28

Please sign in to comment.