- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- "Current Job" UI
- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- "Current Job" UI
Replies: 2 (Who?), Viewed: 819 times.
#1
22nd Sep 2020 at 2:02 PM
Posts: 43
Thanks: 1579 in 6 Posts
"Current Job" UI
Hi. I've been trying to find a way to use the "Current Work" (Ambitions) panel in my Mod for the past few days in the same way that it is possible to use TwoButtonDialog.Show etc. But I can't find him anywhere. I have already looked at ActiveCareer, XpBasedCareer and Occupation and found some mentions like "ShouldShowJobTrackerTooltip", but it is not enough.I'm developing a Zombie Apocalypse Mod and would like to use this panel all the time to show how many human Sims are still alive.
I just found this code:
Code:
return new TitleDescriptionTooltip (FireFightingJob.LocalizeString ("GradesTooltipInfoHeader", new object [0]), description);
But I believe it is something else. It's not what I need.
I definitely understand very little about UI and would very much like your help. Thank you and sorry for the English.
Advertisement
#2
22nd Sep 2020 at 2:59 PM
Posts: 437
Thanks: 5330 in 22 Posts
Quote: Originally posted by Danieu
Hi. I've been trying to find a way to use the "Current Work" (Ambitions) panel in my Mod for the past few days in the same way that it is possible to use TwoButtonDialog.Show etc. But I can't find him anywhere. I have already looked at ActiveCareer, XpBasedCareer and Occupation and found some mentions like "ShouldShowJobTrackerTooltip", but it is not enough. I'm developing a Zombie Apocalypse Mod and would like to use this panel all the time to show how many human Sims are still alive. I just found this code:
Code:
return new TitleDescriptionTooltip (FireFightingJob.LocalizeString ("GradesTooltipInfoHeader", new object [0]), description); But I believe it is something else. It's not what I need. I definitely understand very little about UI and would very much like your help. Thank you and sorry for the English. |
That UI panel is generated using the UpdateJobTracker() method in Sims3.UI.Hud.SimDisplay. If you want a global panel, though, you probably won't be able to call that directly to start it up, as it is hard-coded to pull information from the selected Sim's active jobs and disappear when another Sim is selected. Instead, you'll have to rework that code into your own function that you can call whenever you want it displayed or removed.
"The Internet is the first thing that humanity has built that humanity doesn't understand, the largest experiment in anarchy that we have ever had." - Eric Schmidt
If you enjoy the mods I put out, consider supporting me on patreon: www.patreon.com/Gamefreak130
If you enjoy the mods I put out, consider supporting me on patreon: www.patreon.com/Gamefreak130
#3
22nd Sep 2020 at 5:37 PM
Posts: 43
Thanks: 1579 in 6 Posts
Quote: Originally posted by gamefreak130
That UI panel is generated using the UpdateJobTracker() method in Sims3.UI.Hud.SimDisplay. If you want a global panel, though, you probably won't be able to call that directly to start it up, as it is hard-coded to pull information from the selected Sim's active jobs and disappear when another Sim is selected. Instead, you'll have to rework that code into your own function that you can call whenever you want it displayed or removed. |
Thanks to your help, I was able to create my own personalized method. To my surprise it was very easy.
Thanks!
Who Posted
|