mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add an accessibility option to be able to see through the roomname
This is the variable dwgfx.translucentroomname and <translucentroomname> in unlock.vvv. This lets you see through the black background of the roomname at the bottom of the screen, i.e. it makes the roomname background translucent. So you can see if someone decides to hide pesky spikes there.
This commit is contained in:
@@ -4443,6 +4443,11 @@ void Game::loadstats( mapclass& map, Graphics& dwgfx )
|
||||
dwgfx.notextoutline = atoi(pText);
|
||||
}
|
||||
|
||||
if (pKey == "translucentroomname")
|
||||
{
|
||||
dwgfx.translucentroomname = atoi(pText);
|
||||
}
|
||||
|
||||
if (pKey == "flipButton")
|
||||
{
|
||||
SDL_GameControllerButton newButton;
|
||||
@@ -4656,6 +4661,10 @@ void Game::savestats( mapclass& _map, Graphics& _dwgfx )
|
||||
msg->LinkEndChild(new TiXmlText(tu.String((int) _dwgfx.notextoutline).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
|
||||
msg = new TiXmlElement("translucentroomname");
|
||||
msg->LinkEndChild(new TiXmlText(tu.String((int) _dwgfx.translucentroomname).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
|
||||
for (size_t i = 0; i < controllerButton_flip.size(); i += 1)
|
||||
{
|
||||
msg = new TiXmlElement("flipButton");
|
||||
@@ -7042,11 +7051,13 @@ void Game::createmenu( std::string t )
|
||||
menuoptionsactive[4] = true;
|
||||
menuoptions[5] = "load screen";
|
||||
menuoptionsactive[5] = true;
|
||||
menuoptions[6] = "return";
|
||||
menuoptions[6] = "room name bg";
|
||||
menuoptionsactive[6] = true;
|
||||
nummenuoptions = 7;
|
||||
menuxoff = -60;
|
||||
menuyoff = 0;
|
||||
menuoptions[7] = "return";
|
||||
menuoptionsactive[7] = true;
|
||||
nummenuoptions = 8;
|
||||
menuxoff = -85;
|
||||
menuyoff = -10;
|
||||
}
|
||||
else if(t == "controller")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user