mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 02:09:19 +02:00
Add isolation list to track tooltips
If a track is hovered when debug mode is on, it will now also show the names of isolated circuits the track belongs to, if any.
This commit is contained in:
@@ -341,12 +341,10 @@ driver_mode::update() {
|
||||
set_tooltip( ( cabcontrol ? cabcontrol->pName : "" ) );
|
||||
}
|
||||
}
|
||||
if( ( true == Global.ControlPicking ) && ( true == FreeFlyModeFlag ) && ( true == DebugModeFlag ) ) {
|
||||
auto const scenerynode = GfxRenderer->Pick_Node();
|
||||
set_tooltip(
|
||||
( scenerynode ?
|
||||
scenerynode->name() :
|
||||
"" ) );
|
||||
if( Global.ControlPicking && FreeFlyModeFlag && DebugModeFlag ) {
|
||||
const auto sceneryNode = GfxRenderer->Pick_Node();
|
||||
const std::string content = sceneryNode ? sceneryNode->tooltip() : "";
|
||||
set_tooltip(content);
|
||||
}
|
||||
|
||||
runonce = true;
|
||||
|
||||
Reference in New Issue
Block a user