Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIMapSelector.cs
Go to the documentation of this file.
1using UnityEngine;
2using UnityEngine.UI;
3
4public class UIMapSelector : EMono
5{
6 public UINote note;
7
8 public Image imageZone;
9
10 public void WriteNote(Zone z)
11 {
12 ZoneProfile.Load(z.source.idProfile);
13 note.Clear();
15 note.AddText(z.source.GetDetail()).Hyphenate();
16 note.Space();
17 note.AddTopic("climate".lang(), "climateTemp".lang());
18 _ = z.source.cost;
19 note.AddTopic("ecosystem".lang(), "ecosystemTemp".lang());
20 note.Build();
21 imageZone.sprite = Resources.Load<Sprite>("Media/Graphics/Image/Zone/" + z.source.image.IsEmpty("default"));
22 }
23}
Definition: EMono.cs:4
virtual string Name
Definition: Spatial.cs:495
SourceZone.Row source
Definition: Spatial.cs:441
void Hyphenate()
Definition: UIItem.cs:45
void WriteNote(Zone z)
Definition: UINote.cs:6
void Clear()
Definition: UINote.cs:35
UIItem AddHeader(string text, Sprite sprite=null)
Definition: UINote.cs:79
UIItem AddTopic(string id, string text, string value=null)
Definition: UINote.cs:144
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113
void Space(int sizeY=0, int sizeX=1)
Definition: UINote.cs:62
void Build()
Definition: UINote.cs:49
static ZoneProfile Load(string id)
Definition: ZoneProfile.cs:73
Definition: Zone.cs:12