Esempio n. 1
0
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 {
     if (eventArgs.Metadata is INamed named)
     {
         Label.text = named.Name.LastName;
     }
 }
Esempio n. 2
0
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 {
     if (eventArgs.Metadata is IWebCompletion webCompletion)
     {
         CompletionCode = webCompletion.CompletionCode;
     }
 }
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => Toggle.isOn = !eventArgs.Metadata.IsPublic;
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => Label.text = eventArgs.Metadata.Audience;
 protected abstract void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs);
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => Label.text = capitalizeAll ? eventArgs.Metadata.Title.ToUpper() : eventArgs.Metadata.Title;
Esempio n. 7
0
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => DifficultyUI.Display(eventArgs.Metadata.Difficulty);
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => Image.sprite = eventArgs.Metadata.Sprite;
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => Label.text = eventArgs.Metadata.AuthorName.ToString();
Esempio n. 10
0
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => gameObject.SetActive(
     (eventArgs.Metadata is IWebCompletion webCompletion &&
Esempio n. 11
0
 protected override void OnMetadataSelected(object sender, EncounterMetadataSelectedEventArgs eventArgs)
 => Label.text = string.Join(", ", eventArgs.Metadata.Categories);