16 return EMono.scene.elomapActor.elomap;
26 return EMono.scene.elomapActor;
35 this.imageFull.SetAlpha(0f);
40 public void SetFaction(
Faction f)
43 this.note.AddHeader(
"HeaderNoteFaction", f.Name,
null);
44 this.note.AddTopic(
"relation", f.relation.GetTextRelation() ??
"");
45 this.note.AddTopic(
"type", f.TextType ??
"");
51 this.transImage.SetPositionX(this.pivot.position.x);
52 Sprite sprite = Resources.Load<Sprite>(
"Media/Graphics/Image/Faction/" + f.source.id +
"_avatar");
53 TweenUtil.KillTween(ref this.tween,
false);
56 if (sprite != this.imageFull.sprite)
58 this.imageFull.SetAlpha(0f);
60 this.imageFull.sprite = sprite;
61 this.imageFull.SetNativeSize();
62 this.tween = this.imageIn.Play(this.imageFull.transform,
null, -1f, 0f);
65 this.tween = this.imageOut.Play(this.imageFull.transform,
null, -1f, 0f);
72 UIItem c = this.note.AddHeader(
"HeaderFaction",
"", f.GetSprite());
73 c.Find(
"Name",
true).SetText(f.Name);
74 c.Find(
"Topic1",
true).SetTopic(
"relationGod", f.relation.ToString() ??
"");
75 c.Find(
"Topic2",
true).SetTopic(
"type", f.source.GetText(
"textType",
false) ??
"");
76 c.Find(
"Topic3",
true).SetTopic(
"avatar", f.source.textAvatar ??
"");
77 string lang =
"GSSleep";
78 if (f.id ==
"harmony")
82 if (f.id ==
"oblivion")
86 c.Find(
"Topic4",
true).SetTopic(
"status", lang);
87 this.note.AddText(f.source.GetDetail(), FontColor.DontChange).Hyphenate();
93 this.transImage.SetPositionX(this.pivot.position.x);
94 Sprite sprite = Resources.Load<Sprite>(
"Media/Graphics/Image/Faction/" + f.source.id +
"_avatar");
95 TweenUtil.KillTween(ref this.tween,
false);
98 if (sprite != this.imageFull.sprite)
100 this.imageFull.SetAlpha(0f);
102 this.imageFull.sprite = sprite;
103 this.imageFull.SetNativeSize();
104 this.tween = this.imageIn.Play(this.imageFull.transform,
null, -1f, 0f);
107 this.tween = this.imageOut.Play(this.imageFull.transform,
null, -1f, 0f);
111 public void SetZone(
Zone _zone)
115 this.gx = this.zone.x;
116 this.gy = this.zone.y;
118 this.note.AddHeader(
"HeaderNoteFaction", this.zone.Name,
null);
119 this.note.AddTopic(
"mainFaction", this.zone.mainFaction.Name ??
"");
120 this.note.AddTopic(
"branchLv", branch.TextLv);
121 this.note.AddTopic(
"wealth", branch.resources.worth.value.ToFormat() ??
"");
122 this.note.AddTopic(
"ranking",
EMono.game.spatials.ranks.GetRankText(
this.zone) ??
"");
123 this.note.AddTopic(
"rank_income",
"rank_income2".lang(
EMono.game.spatials.ranks.GetIncome(
this.zone).ToFormat(),
null,
null,
null,
null));
124 this.note.Space(0, 1);
125 this.note.AddHeaderTopic(
"landfeat".lang(),
null);
126 List<Element> list = _zone.ListLandFeats();
127 for (
int i = 0; i < list.Count; i++)
129 this.note.AddText(list[i].Name + (((i == 1 && branch.lv < 4) || (i == 2 && branch.lv < 7)) ?
"landfeat_locked".lang() :
""), FontColor.DontChange);
131 this.note.Space(0, 1);
132 this.note.AddHeaderTopic(
"listRoamers".lang(),
null);
134 foreach (
Chara chara
in EMono.game.cards.globalCharas.Values)
136 if (chara.homeBranch == branch)
138 this.note.AddText(chara.Name, FontColor.DontChange);
148 this.note.AddText(
"????????", FontColor.DontChange);
150 this.note.Space(0, 1);
151 this.note.AddHeaderTopic(
"listPolicies".lang(),
null);
152 foreach (
Element element
in branch.elements.dict.Values)
154 if (element.source.category ==
"policy")
156 this.note.AddText(element.Name, FontColor.DontChange);
173 public Image imageFull;
176 public Anime imageIn;
179 public Anime imageOut;
185 public Transform transImage;
188 public Transform pivot;
191 public UIButton buttonBuy;
194 public UIButton buttonVisit;
197 public UIButton buttonExplore;
209 public LayoutGroup layoutButtons;