mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Change the text of custom activity zones
When an activity zone is spawned through the use of `createactivityzone`, and `i` is 35, then it'll change the activity zone text to "Press ENTER to interact".
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
1cbc3bdc7c
commit
0685cade69
@@ -759,7 +759,7 @@ void entityclass::generateswnwave( int t )
|
||||
}
|
||||
}
|
||||
|
||||
void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*= 0*/, const std::string& script /*= ""*/ )
|
||||
void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*= 0*/, const std::string& script /*= ""*/, bool custom /*= false*/)
|
||||
{
|
||||
k = blocks.size();
|
||||
|
||||
@@ -1051,7 +1051,12 @@ void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*=
|
||||
trig=0;
|
||||
break;
|
||||
case 35:
|
||||
block.prompt = "Press %s to activate terminal";
|
||||
if (custom)
|
||||
{
|
||||
block.prompt = "Press %s to interact";
|
||||
} else {
|
||||
block.prompt = "Press %s to activate terminal";
|
||||
}
|
||||
block.script = "custom_"+customscript;
|
||||
block.setblockcolour("orange");
|
||||
trig=0;
|
||||
|
||||
Reference in New Issue
Block a user