How do I keep the minimap hidden by default? version 0.0.24
Posted: 19 Feb 2008, 05:09
Hi! Each time I walk onto a different map, the minimap pops up.
I know I can turn it off with the "F6" key, but how do I turn it off and make it appear only when I want it to?
In the 0.0.24 source, within the file "minimap.cpp", is all I have to do is change...
to...
to have the minimap off by default?
I know I can turn it off with the "F6" key, but how do I turn it off and make it appear only when I want it to?
In the 0.0.24 source, within the file "minimap.cpp", is all I have to do is change...
Code: Select all
void Minimap::setMapImage(Image *img)
{
if (mMapImage)
{
mMapImage->decRef();
}
mMapImage = img;
if (mMapImage)
{
setVisible(true);
mMapImage->setAlpha(0.7);
}
else
{
setVisible(false);
}
}
Code: Select all
void Minimap::setMapImage(Image *img)
{
if (mMapImage)
{
mMapImage->decRef();
}
mMapImage = img;
if (mMapImage)
{
setVisible(false);
}
else
{
setVisible(true);
mMapImage->setAlpha(0.7);
}
}