Books localization (#14813)
This commit is contained in:
@@ -34,6 +34,16 @@ namespace Content.Server.Paper
|
||||
SubscribeLocalEvent<PaperComponent, PaperInputTextMessage>(OnInputTextMessage);
|
||||
|
||||
SubscribeLocalEvent<ActivateOnPaperOpenedComponent, PaperWriteEvent>(OnPaperWrite);
|
||||
|
||||
SubscribeLocalEvent<PaperComponent, MapInitEvent>(OnMapInit);
|
||||
}
|
||||
|
||||
private void OnMapInit(EntityUid uid, PaperComponent paperComp, MapInitEvent args)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(paperComp.Content))
|
||||
{
|
||||
paperComp.Content = Loc.GetString(paperComp.Content);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnInit(EntityUid uid, PaperComponent paperComp, ComponentInit args)
|
||||
|
||||
Reference in New Issue
Block a user