1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-27 00:24:01 +00:00

remove parallax settings from config

there's no reason for this to exist, at all
This commit is contained in:
fgenesis 2023-07-05 03:59:41 +02:00
parent 1b02efc96d
commit 578c8ecc45
5 changed files with 0 additions and 31 deletions

View file

@ -2510,13 +2510,6 @@ void DSQ::unloadMods()
#endif
}
void DSQ::applyParallaxUserSettings()
{
getRenderObjectLayer(LR_ELEMENTS10)->visible = user.video.parallaxOn0;
getRenderObjectLayer(LR_ELEMENTS11)->visible = user.video.parallaxOn1;
getRenderObjectLayer(LR_ELEMENTS12)->visible = user.video.parallaxOn2;
}
void DSQ::clearModSelector()
{
if (blackout)

View file

@ -161,8 +161,6 @@ public:
void fade(float alpha, float time);
void applyParallaxUserSettings();
void nag(NagType type);
void action(int id, int state, int source, InputDevice device);

View file

@ -2583,8 +2583,6 @@ void Game::applyState()
setElementLayerVisible(i-LR_ELEMENTS1, true);
}
dsq->applyParallaxUserSettings();
controlHintTimer = 0;
cameraConstrained = true;
// reset parallax
@ -3638,7 +3636,6 @@ void Game::toggleHelpScreen(bool on, const std::string &label)
{
core->getRenderObjectLayer(i)->visible = true;
}
dsq->applyParallaxUserSettings();
dsq->screenTransition->transition(MENUPAGETRANSTIME);

View file

@ -117,12 +117,6 @@ void UserSettings::save()
}
xml_video->InsertEndChild(xml_fpsSmoothing);
XMLElement *xml_parallax = doc.NewElement("Parallax");
std::ostringstream os;
os << video.parallaxOn0 << " " << video.parallaxOn1 << " " << video.parallaxOn2;
xml_parallax->SetAttribute("on", os.str().c_str());
xml_video->InsertEndChild(xml_parallax);
XMLElement *xml_numParticles = doc.NewElement("NumParticles");
xml_numParticles->SetAttribute("v", video.numParticles);
xml_video->InsertEndChild(xml_numParticles);
@ -426,17 +420,6 @@ bool UserSettings::load(bool doApply, const std::string &overrideFile)
readInt(xml_video, "FpsSmoothing", "v", &video.fpsSmoothing);
XMLElement *xml_parallax = xml_video->FirstChildElement("Parallax");
if (xml_parallax)
{
if (xml_parallax->Attribute("on"))
{
std::istringstream is(xml_parallax->Attribute("on"));
is >> video.parallaxOn0 >> video.parallaxOn1 >> video.parallaxOn2;
}
}
readInt(xml_video, "NumParticles", "v", &video.numParticles);
XMLElement *xml_screenMode = xml_video->FirstChildElement("ScreenMode");

View file

@ -58,7 +58,6 @@ public:
{
Video() {
numParticles = 2048;
parallaxOn0 = parallaxOn1 = parallaxOn2 = 1;
saveSlotScreens = 1;
blur = 1;
noteEffects = 0;
@ -80,7 +79,6 @@ public:
int fpsSmoothing;
int resx, resy, full, fbuffer, bits, vsync, darkfbuffer, darkbuffersize, hz, displayindex;
int saveSlotScreens;
int parallaxOn0, parallaxOn1, parallaxOn2;
int numParticles;
int worldMapRevealMethod;
} video;