Skip to content

Commit 2086301

Browse files
committed
Update reorganize blocks categories
Change category names and colors. Use prefix and same color to simulate subcategories. https://phabricator.endlessm.com/T35507
1 parent 647d525 commit 2086301

File tree

3 files changed

+168
-108
lines changed

3 files changed

+168
-108
lines changed

addons/block_code/simple_nodes/simple_scoring/simple_scoring.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ static func get_custom_blocks() -> Array[Block]:
5959
b.block_type = Types.BlockType.EXECUTE
6060
b.block_format = "Set player %s score to {score: INT}" % player
6161
b.statement = "score_%s = {score}" % _POSITIONS_FOR_PLAYER[player]
62-
b.category = "Scoring"
62+
b.category = "Info | Score"
6363
block_list.append(b)
6464

6565
b = CategoryFactory.BLOCKS["statement_block"].instantiate()
6666
b.block_type = Types.BlockType.EXECUTE
6767
b.block_format = "Change player %s score by {score: INT}" % player
6868
b.statement = "score_%s += {score}" % _POSITIONS_FOR_PLAYER[player]
69-
b.category = "Scoring"
69+
b.category = "Info | Score"
7070
block_list.append(b)
7171

7272
return block_list

0 commit comments

Comments
 (0)