Exemplo n.º 1
0
        public void UpdateOnscreenDisplayPanel()
        {
            if (SelectedNodeId == 0)
            {
                // Select mode
                var items = new List <OsdItem>();
                items.Add(new UI.MainMenu.OSD.ModeDescription(T("JR.OnscreenHint.Mode:Select")));
                OnscreenDisplay.Display(items);
            }
            else
            {
                // Edit mode
                var items = new List <OsdItem>();
                items.Add(new UI.MainMenu.OSD.ModeDescription(T("JR.OnscreenHint.Mode:Edit")));
                items.Add(
                    new UI.MainMenu.OSD.Shortcut(
                        keybindSetting: KeybindSettingsBase.RestoreDefaultsKey,
                        localizedText: T("JR.OnscreenHint.Reset:Reset to default")));

                items.Add(OnscreenDisplay.RightClick_LeaveNode());
                OnscreenDisplay.Display(items);
            }

            // Default: no hint
            // OnscreenDisplay.Clear();
        }
 public void UpdateOnscreenDisplayPanel()
 {
     if (SelectedNodeId == 0)
     {
         // Select mode
         var items = new List <OsdItem>();
         items.Add(new ModeDescription(localizedText: T("ManualTL.Mode:Select")));
         OnscreenDisplay.Display(items);
     }
     else
     {
         // Modify traffic light settings
         var items = new List <OsdItem>();
         items.Add(new ModeDescription(localizedText: T("ManualTL.Mode:Edit")));
         items.Add(OnscreenDisplay.RightClick_LeaveNode());
         OnscreenDisplay.Display(items);
     }
 }