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);
}
}