CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
571 stars 85 forks source link

Improved user messages (guide controller) #593

Closed kianzarrin closed 4 years ago

kianzarrin commented 4 years ago

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: Screenshot (193)

Rather than an ugly annoying panel like this: Screenshot (194)

This mostly resolves #594

kianzarrin commented 4 years ago

Does anyone know what is the name of that top panel ?

originalfoo commented 4 years ago

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) Added: Selection Tool (Ctrl+M or UI button) - allows to select anything and show in SceneExplorer

kianzarrin commented 4 years ago

@aubergine10 Added: Selection Tool (Ctrl+M or UI button) - allows to select anything and show in SceneExplorer

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.

krzychu124 commented 4 years ago

try Ctrl+R

kianzarrin commented 4 years ago

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);
    }
}
krzychu124 commented 4 years ago

Yup, GuideManager spawns popups, so you should search there how to add new popup/set text. You can use ModTools UI debugger view (Ctrl+R - pretty slow but does its job) to find out which panel is used

kianzarrin commented 4 years ago

Progress report:

kianzarrin commented 4 years ago

I need someone to help me to create new crowdin file for guide messages.