Hi, I'm trying to create custom sim tooltips to make them show extra info. Opened a topic on MTS here: http://modthesims.info/showthread.php?t=637968
I have been informed that Chain_Reaction has had endeavours in this regard so I'm wondering if I can get a little help
Custom Tooltips
- Chain_Reaction
- Site Admin
- Reactions:
- Posts: 7618
- Joined: December 30th, 2011, 6:00 pm
- Contact:
Custom Tooltips
Hi,
Tagger currently allows you to add extra text to Sim tooltips. "Modify Custom Titles" is the feature on each Sim. This was a sorta an aside feature as the primary display was meant for the Sims map tag. On their tooltip it is sometimes finicky and prone to vanishing. I never got around to looking into why this is but it's likely due to the the SimInfo being regenerated. There may be an event to hook into to resolve that. I just replace the Sims name in the SimInfo with the appended text. The code is here (SetCustomTitles). You won't be able to replace the tooltip without a core mod. I ended up writing my own system to add custom tooltips to doors. It's a hacky method that hooks into the hover mouseevents, running on the simulator so it doesn't work with the game paused. There may be a more elegant solution but after a lot of trial and error it worked so I went with it. That is here. Hope those help.
Tagger currently allows you to add extra text to Sim tooltips. "Modify Custom Titles" is the feature on each Sim. This was a sorta an aside feature as the primary display was meant for the Sims map tag. On their tooltip it is sometimes finicky and prone to vanishing. I never got around to looking into why this is but it's likely due to the the SimInfo being regenerated. There may be an event to hook into to resolve that. I just replace the Sims name in the SimInfo with the appended text. The code is here (SetCustomTitles). You won't be able to replace the tooltip without a core mod. I ended up writing my own system to add custom tooltips to doors. It's a hacky method that hooks into the hover mouseevents, running on the simulator so it doesn't work with the game paused. There may be a more elegant solution but after a lot of trial and error it worked so I went with it. That is here. Hope those help.
Custom Tooltips
Thanks for all the info!
First I tried to change the name in SimInfo for all sims and failed Maybe I should try that on a smaller scope first. But I have a question about that. Does changing that name affect other places than tooltips?
Then I decided to examine your TooltipHelper in VS (added NRaasTagger.dll as reference too). It shows one error here:Says that DisposeTooltipTask is inaccessable. It's an internal constructor.
First I tried to change the name in SimInfo for all sims and failed Maybe I should try that on a smaller scope first. But I have a question about that. Does changing that name affect other places than tooltips?
Then I decided to examine your TooltipHelper in VS (added NRaasTagger.dll as reference too). It shows one error here:
Code: Select all
public static void HideCurrentTooltip()
{
if (sLastObjectId == sTipObject && sLastObjectId != 0)
{
RestartAlarm();
}
if (sCurrentTip != null)
{
sCurrentTip.TooltipWindow.Visible = false;
// because...EA
sCurrentTip.TooltipWindow.ShadeColor = new Color(sCurrentTip.TooltipWindow.ShadeColor.ARGB & 0xffffff);
Simulator.AddObject(new TooltipManager.DisposeTooltipTask(sCurrentTip));
KillAlarm();
sCurrentTip = null;
sTipObject = 0L;
}
}
Custom Tooltips
Oh, I guess u used unprotected dll's.
- Chain_Reaction
- Site Admin
- Reactions:
- Posts: 7618
- Joined: December 30th, 2011, 6:00 pm
- Contact: