Skip to content

Commit a5eda26

Browse files
committed
fix #583: Add support for "stop other scripts in stage" block
1 parent 28e4b80 commit a5eda26

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/blocks/controlblocks.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void ControlBlocks::registerBlocks(IEngine *engine)
5959
engine->addFieldValue(this, "all", StopAll);
6060
engine->addFieldValue(this, "this script", StopThisScript);
6161
engine->addFieldValue(this, "other scripts in sprite", StopOtherScriptsInSprite);
62+
engine->addFieldValue(this, "other scripts in stage", StopOtherScriptsInSprite);
6263
}
6364

6465
void ControlBlocks::compileRepeatForever(Compiler *compiler)

test/blocks/control_blocks_test.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ TEST_F(ControlBlocksTest, RegisterBlocks)
176176
EXPECT_CALL(m_engineMock, addFieldValue(m_extension.get(), "all", ControlBlocks::StopAll));
177177
EXPECT_CALL(m_engineMock, addFieldValue(m_extension.get(), "this script", ControlBlocks::StopThisScript));
178178
EXPECT_CALL(m_engineMock, addFieldValue(m_extension.get(), "other scripts in sprite", ControlBlocks::StopOtherScriptsInSprite));
179+
EXPECT_CALL(m_engineMock, addFieldValue(m_extension.get(), "other scripts in stage", ControlBlocks::StopOtherScriptsInSprite));
179180

180181
m_extension->registerBlocks(&m_engineMock);
181182
}

0 commit comments

Comments
 (0)