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

Добавление даты в кпк #1744

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

user424242420
Copy link
Contributor

Добавление даты в кпк

Описание PR

#1720

Добавление даты в кпк
Медиа

image

Проверки

  • PR полностью завершён и мне не нужна помощь чтобы его закончить.
  • Я внимательно просмотрел все свои изменения и багов в них не нашёл.
  • Я запускал локальный сервер со своими изменениями и всё протестировал.
  • Я добавил скриншот/видео демонстрации PR в игре, или этот PR этого не требует.

Изменения

🆑 username

  • add: Добавление даты в кпк

@github-actions github-actions bot added Status: Needs Review This PR requires new reviews before it can be merged Changes: Localization Can be reviewed or fixed by people who are knowledgeable with translation Changes: UI Can be reviewed or fixed by people who are knowledgeable with UI design labels Jan 10, 2024
@Syxapik
Copy link
Contributor

Syxapik commented Jan 10, 2024

А к оффам с датой не получилось залезть?

@user424242420
Copy link
Contributor Author

А к оффам с датой не получилось залезть?

Обсудили же, что у офов нет Лора и поэтому даты тоже нет

@@ -117,15 +118,15 @@ 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.Now.ToUniversalTime() + DeltaUtc3).ToString("dd\\.MM\\.\\3\\0yy"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

последний метод выглядит как-то страшно, можно же просто:
.AddYears(1000).ToString("dd.MM.yyyy")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мем в том что время в c# имеет int64 и соответственно просто ему не хватит значений чтобы добавить 1000 лет (overflow)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ehhh, хз, у меня в #1357 вроде все окей было

@@ -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]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне всё еще не нравится решение отображать дату рядодм с временем относительно начала смены, как-то нелогично, как по мне

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А где?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне всё еще не нравится решение отображать дату рядодм с временем относительно начала смены, как-то нелогично, как по мне

ну для тебя это не логично, но в игре мы так бумажки заполняем. пример тебе вот, страница вики по "бумажным работам"
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: Localization Can be reviewed or fixed by people who are knowledgeable with translation Changes: UI Can be reviewed or fixed by people who are knowledgeable with UI design Status: Needs Review This PR requires new reviews before it can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants