Skip to content

Commit e1f37ae

Browse files
committed
Improve tooltips
1 parent 85ac467 commit e1f37ae

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

OpenVR2Key/MainWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
<Label x:Name="LabelOpenVr" Background="Gray" HorizontalAlignment="Left" Content="OpenVR Status" Padding="5" Foreground="White" VerticalAlignment="Center"/>
3838
</StackPanel>
3939
<StackPanel Orientation="Horizontal" Margin="5,0,5,5">
40-
<Label Content="Current app ID:" VerticalAlignment="Center"/>
40+
<Label Content="Current app ID:" VerticalAlignment="Center" ToolTip="Used to create app specific mappings, which overrides the default mapping."/>
4141
<Label x:Name="LabelApplication" Background="Gray" HorizontalAlignment="Left" Content="Current AppID" Padding="5" Foreground="White" VerticalAlignment="Center"/>
4242
</StackPanel>
4343
<StackPanel Orientation="Horizontal" Margin="5,0,5,5">
44-
<Label Content="Active keys:" VerticalAlignment="Center"/>
45-
<Label x:Name="LabelKeys" Background="Gray" HorizontalAlignment="Left" Content="Active Keys" Padding="5" Foreground="White" VerticalAlignment="Center"/>
44+
<Label Content="Active input:" VerticalAlignment="Center" ToolTip="Used to see what an activated input is bound to, cross reference the mappings below."/>
45+
<Label x:Name="LabelKeys" Background="Gray" HorizontalAlignment="Left" Content="None" Padding="5" Foreground="White" VerticalAlignment="Center"/>
4646
</StackPanel>
4747
</StackPanel>
4848
</GroupBox>

OpenVR2Key/MainWindow.xaml.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,20 @@ public MainWindow()
6666
{
6767
Debug.WriteLine($"App Update Action: appId={appId}");
6868
_currentlyRunningAppId = appId;
69+
var toolTip = "The detected Steam app ID for currently running title.";
6970
var color = Brushes.OliveDrab;
7071
if (appId == MainModel.CONFIG_DEFAULT)
7172
{
7273
color = Brushes.Gray;
74+
toolTip = "No application detected.";
7375
}
7476
var appIdFixed = appId.Replace("_", "__"); // Single underscores makes underlined chars
7577
Dispatcher.Invoke(() =>
7678
{
7779
Debug.WriteLine($"Setting AppID to: {appId}");
7880
LabelApplication.Content = appIdFixed;
7981
LabelApplication.Background = color;
82+
LabelApplication.ToolTip = toolTip;
8083
});
8184
},
8285

@@ -115,7 +118,7 @@ public MainWindow()
115118
else _activeKeys.Remove(key);
116119
if (_activeKeys.Count > 0) LabelKeys.Content = string.Join(", ", _activeKeys);
117120
else LabelKeys.Content = "None";
118-
LabelKeys.ToolTip = "";
121+
LabelKeys.ToolTip = "The currently active inputs being detected.";
119122
LabelKeys.Background = Brushes.Gray;
120123
}
121124
});
@@ -129,13 +132,13 @@ public MainWindow()
129132
if (visible)
130133
{
131134
LabelKeys.Content = "Blocked";
132-
LabelKeys.ToolTip = "The SteamVR Dashboard is visible which will block input from this application.";
135+
LabelKeys.ToolTip = "The SteamVR Dashboard is visible which will block controller input from reaching this application.";
133136
LabelKeys.Background = Brushes.Tomato;
134137
}
135138
else
136139
{
137-
LabelKeys.Content = "Unblocked";
138-
LabelKeys.ToolTip = "";
140+
LabelKeys.Content = "None";
141+
LabelKeys.ToolTip = "Listening for incoming inputs from active controllers.";
139142
LabelKeys.Background = Brushes.Gray;
140143
}
141144
});

OpenVR2Key/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@
128128
<value>..\resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
129129
</data>
130130
<data name="Version" xml:space="preserve">
131-
<value>v2.1.0</value>
131+
<value>v2.1.1</value>
132132
</data>
133133
</root>

0 commit comments

Comments
 (0)