Mass-media console update (#18466)

* Add Console, PDA news tab, and ringstone popup

* Add English localization

* Add mass-media console board to Advanced Entertainment resrarch

* Fix misprint

* Deleting unused libraries

* Fix round restart problem

* Fixing restart problem

* Just another fix

* Сode optimization

* Code optimization

* Convert News read tab to cartridge

Convert the News read tab into a cartridge, and fix a couple of bugs

* Just another fix

* Some updates

* More fixing!!

Fix cooldown, add author label to read menu

* Again, fix cooldown bug

* Some minor changes

* Revert "Some minor changes"

This reverts commit 470c8d727629ac79994f70e56162adae8659e944.

* Some minor updates

* News write Ui update

* Just another fix

* See commit below comments

* More code readability, more!
This commit is contained in:
MishaUnity
2023-07-31 08:34:22 +03:00
committed by GitHub
parent 4c6d576f98
commit 87d06110d8
7 changed files with 70 additions and 26 deletions

View File

@@ -15,11 +15,12 @@ public sealed partial class MiniArticleCardControl : Control
public Action? OnDeletePressed;
public int ArtcileNum;
public MiniArticleCardControl(string name)
public MiniArticleCardControl(string name, string author)
{
RobustXamlLoader.Load(this);
Name.SetMarkup(name);
Name.Text = name;
Author.SetMarkup(author);
Delete.OnPressed += _ => OnDeletePressed?.Invoke();
}