Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Отображение даты в КПК #47

Merged
merged 11 commits into from
Jun 8, 2024
8 changes: 5 additions & 3 deletions Content.Client/PDA/PdaMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public PdaMenu()
StationTimeButton.OnPressed += _ =>
{
var stationTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan);
_clipboard.SetText((stationTime.ToString("hh\\:mm\\:ss")));
_clipboard.SetText((stationTime.ToString("hh\\:mm\\:ss")) + " " + (DateTime.UtcNow.AddYears(1000).ToString("dd.MM.yyyy")));
};

StationAlertLevelInstructionsButton.OnPressed += _ =>
Expand Down Expand Up @@ -174,7 +174,8 @@ public void UpdateState(PdaUpdateState state)
var stationTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan);

StationTimeLabel.SetMarkup(Loc.GetString("comp-pda-ui-station-time",
("time", stationTime.ToString("hh\\:mm\\:ss"))));
("time", stationTime.ToString("hh\\:mm\\:ss")),
("date", DateTime.UtcNow.AddYears(1000).ToString("dd.MM.yyyy"))));

// Sunrise-start
var remaining = TimeSpan.Zero;
Expand Down Expand Up @@ -377,7 +378,8 @@ protected override void Draw(DrawingHandleScreen handle)
var stationTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan);

StationTimeLabel.SetMarkup(Loc.GetString("comp-pda-ui-station-time",
("time", stationTime.ToString("hh\\:mm\\:ss"))));
("time", stationTime.ToString("hh\\:mm\\:ss")),
("date", DateTime.UtcNow.AddYears(1000).ToString("dd.MM.yyyy"))));

// Sunrise-start
var remaining = TimeSpan.Zero;
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/pda/pda-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ comp-pda-ui-station-alert-level = Alert Level: [color={ $color }]{ $level }[/col

comp-pda-ui-station-alert-level-instructions = Instructions: [color=white]{ $instructions }[/color]

comp-pda-ui-station-time = Shift duration: [color=white]{ $time }[/color]
comp-pda-ui-station-time = The current time since the start of the shift: [color=white]{ $time } { $date }[/color]

comp-pda-ui-eject-id-button = Eject ID

Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/ru-RU/pda/pda-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ comp-pda-ui-footer = Карманный Персональный Компьют
comp-pda-ui-station = Станция: [color=white]{ $station }[/color]
comp-pda-ui-station-alert-level = Уровень угрозы: [color={ $color }]{ $level }[/color]
comp-pda-ui-station-alert-level-instructions = Инструкции: [color=white]{ $instructions }[/color]
comp-pda-ui-station-time = Продолжительность смены: [color=white]{ $time }[/color]
comp-pda-ui-station-time = Текущее время с начала смены: [color=white]{ $time } { $date }[/color]
comp-pda-ui-eject-id-button = Извлечь ID
comp-pda-ui-eject-pen-button = Извлечь ручку
comp-pda-ui-ringtone-button-description = Измените рингтон вашего КПК
Expand Down
Loading