|
|
@ -468,21 +468,17 @@ namespace MWGui
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
std::string markerTexture;
|
|
|
|
std::string markerTexture;
|
|
|
|
MyGUI::Colour markerColour;
|
|
|
|
|
|
|
|
if (type == MWBase::World::Detect_Creature)
|
|
|
|
if (type == MWBase::World::Detect_Creature)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
markerTexture = "textures\\menu_map_dcreature.dds";
|
|
|
|
markerTexture = "textures\\detect_animal_icon.dds";
|
|
|
|
markerColour = MyGUI::Colour(1,0,0,1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (type == MWBase::World::Detect_Key)
|
|
|
|
if (type == MWBase::World::Detect_Key)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
markerTexture = "textures\\menu_map_dkey.dds";
|
|
|
|
markerTexture = "textures\\detect_key_icon.dds";
|
|
|
|
markerColour = MyGUI::Colour(0,1,0,1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (type == MWBase::World::Detect_Enchantment)
|
|
|
|
if (type == MWBase::World::Detect_Enchantment)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
markerTexture = "textures\\menu_map_dmagic.dds";
|
|
|
|
markerTexture = "textures\\detect_enchantment_icon.dds";
|
|
|
|
markerColour = MyGUI::Colour(0,0,1,1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int counter = 0;
|
|
|
|
int counter = 0;
|
|
|
@ -499,7 +495,7 @@ namespace MWGui
|
|
|
|
widgetCoord, MyGUI::Align::Default);
|
|
|
|
widgetCoord, MyGUI::Align::Default);
|
|
|
|
markerWidget->setDepth(Local_MarkerAboveFogLayer);
|
|
|
|
markerWidget->setDepth(Local_MarkerAboveFogLayer);
|
|
|
|
markerWidget->setImageTexture(markerTexture);
|
|
|
|
markerWidget->setImageTexture(markerTexture);
|
|
|
|
markerWidget->setColour(markerColour);
|
|
|
|
markerWidget->setImageCoord(MyGUI::IntCoord(0,0,8,8));
|
|
|
|
markerWidget->setNeedMouseFocus(false);
|
|
|
|
markerWidget->setNeedMouseFocus(false);
|
|
|
|
mMagicMarkerWidgets.push_back(markerWidget);
|
|
|
|
mMagicMarkerWidgets.push_back(markerWidget);
|
|
|
|
}
|
|
|
|
}
|
|
|
|