-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved user messages (guide controller) #593
Comments
Does anyone know what is the name of that top panel ? |
Mod Tools might be able to give some insight in to the panel name. It has a feature that lets you click on any interface element to see details about it. https://steamcommunity.com/sharedfiles/filedetails/?id=450877484 UPDATE 3.2.0 (7/26/2019) |
Mod tools selection tool only works on segments as far as I can tell. I tried it your way activated mod tools selection tool and clicked on the warning panel. But nothing happened in the scene explorer. There is also a button in scene explorer to show active tool. but the warning panel is not a tool so that's a dead end too. |
try |
I followed the decompiled code and stumbled upon this: // RoadBaseAI
using ColossalFramework;
public override void UpgradeFailed()
{
GuideController properties = Singleton<GuideManager>.instance.m_properties;
if ((object)properties != null)
{
Singleton<NetManager>.instance.m_upgradeExistingRoad.Activate(properties.m_upgradeExistingRoad);
}
} |
Yup, |
Progress report:
public class GuideWrapper {
private GenericGuide m_guide;
public GuideInfo m_info;
public GuideWrapper() {
m_guide = new GenericGuide();
m_info = new GuideInfo {
m_delayType = GuideInfo.Delay.OccurrenceCount,
m_displayDelay = 1,
m_repeatDelay = 1, //3
m_overrideOptions = true,
m_icon = "ToolbarIconRoads",
m_tag = "Generic",
m_name = "RoadUpgradeNonroad",
};
}
public void Activate() =>m_guide?.Activate(m_info ?? throw new Exception("m_info is null"));
public void Deactivate() => m_guide?.Deactivate();
public static GuideWrapper example = new GuideWrapper();
} |
I need someone to help me to create new crowdin file for guide messages. |
In some circumistances when the user makes a small mistake and we want to explain why TM does not make any changes to traffic rules I think its better to show a message like this:
Rather than an ugly annoying panel like this:
This mostly resolves #594
The text was updated successfully, but these errors were encountered: