Skip to content

Commit 270e8aa

Browse files
chore: add a clarifying tooltip for the disabled vehicle information tab
1 parent cea6d99 commit 270e8aa

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

Client.Wpf/Controls/InformationControl.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
x:Name="_statisticsControl"/>
3636
</TabItem>
3737

38-
<TabItem IsEnabled="False">
38+
<TabItem IsEnabled="False"
39+
x:Name="_vehicleInformationTab">
3940
<TabItem.Header>
4041
<TextBlock Text="Vehicle Information"
4142
x:Name="_vehicleCardHeader"

Client.Wpf/Controls/InformationControl.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public void Initialise(IMainWindowPresenter presenter)
5353
_presenter = presenter;
5454
_researchTreeControl.Initialise(_presenter);
5555

56+
_vehicleInformationTab.ToolTip = ApplicationHelpers.LocalisationManager.GetLocalisedString(ELocalisationKey.UnderConstruction);
57+
58+
ToolTipService.SetShowOnDisabled(_vehicleInformationTab, true);
59+
5660
_initialised = true;
5761
}
5862
}

Client.Wpf/Enumerations/ELocalisationKey.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public class ELocalisationKey
150150
public const string Thanks = nameof(Thanks);
151151
public const string TorpedoBomber = nameof(TorpedoBomber);
152152
public const string Ukraine = nameof(Ukraine);
153+
public const string UnderConstruction = nameof(UnderConstruction);
153154
public const string UnionOfSouthAfrica = nameof(UnionOfSouthAfrica);
154155
public const string UntaggedAircraft = nameof(UntaggedAircraft);
155156
public const string UntaggedGroundVehicle = nameof(UntaggedGroundVehicle);

Client.Wpf/Localisation/English.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
<Line key="Thanks" value="Thanks"/>
177177
<Line key="TorpedoBomber" value="Torpedo Bomber"/>
178178
<Line key="Ukraine" value="Ukraine"/>
179+
<Line key="UnderConstruction" value="Under construction."/>
179180
<Line key="UnionOfSouthAfrica" value="Union of South Africa"/>
180181
<Line key="UntaggedAircraft" value="Untagged Aircraft"/>
181182
<Line key="UntaggedGroundVehicle" value="Untagged Ground Vehicles"/>

Client.Wpf/Localisation/Russian.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
<Line key="Thanks" value="Благодарности"/>
177177
<Line key="TorpedoBomber" value="Торпедоносец"/>
178178
<Line key="Ukraine" value="Украина"/>
179+
<Line key="UnderConstruction" value="Ведутся работы."/>
179180
<Line key="UnionOfSouthAfrica" value="Южно-Африканский Союз"/>
180181
<Line key="UntaggedAircraft" value="Авиация без меток"/>
181182
<Line key="UntaggedGroundVehicle" value="Наземная техника без меток"/>

0 commit comments

Comments
 (0)