mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
1cbc3bdc7c
commit
0685cade69
3 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
void generateswnwave(int t);
|
||||
|
||||
void createblock(int t, int xp, int yp, int w, int h, int trig = 0, const std::string& script = "");
|
||||
void createblock(int t, int xp, int yp, int w, int h, int trig = 0, const std::string& script = "", bool custom = false);
|
||||
|
||||
bool disableentity(int t);
|
||||
|
||||
|
|
|
@ -1896,11 +1896,11 @@ void scriptclass::run(void)
|
|||
int crewman = obj.getcrewman(i);
|
||||
if (INBOUNDS_VEC(crewman, obj.entities) && i == 4)
|
||||
{
|
||||
obj.createblock(5, obj.entities[crewman].xp - 32, obj.entities[crewman].yp-20, 96, 60, i);
|
||||
obj.createblock(5, obj.entities[crewman].xp - 32, obj.entities[crewman].yp-20, 96, 60, i, "", (i == 35));
|
||||
}
|
||||
else if (INBOUNDS_VEC(crewman, obj.entities))
|
||||
{
|
||||
obj.createblock(5, obj.entities[crewman].xp - 32, 0, 96, 240, i);
|
||||
obj.createblock(5, obj.entities[crewman].xp - 32, 0, 96, 240, i, "", (i == 35));
|
||||
}
|
||||
}
|
||||
else if (words[0] == "createrescuedcrew")
|
||||
|
|
Loading…
Reference in a new issue