73 SE.Play(
"money_shipping");
95 DOTweenAnimation[] componentsInChildren = GetComponentsInChildren<DOTweenAnimation>();
96 foreach (DOTweenAnimation dOTweenAnimation
in componentsInChildren)
98 if (dOTweenAnimation.tween !=
null)
100 dOTweenAnimation.tween.Kill(complete:
true);
109 income = (int)((
float)income * num);
110 long num2 = result.total + income;
118 int num3 = (int)((
float)result.hearthExpGained * num);
120 int num4 = result.hearthExp + num3;
121 gaugeGold.rectTransform.sizeDelta =
new Vector2(Mathf.Min(300, 300 * lastShippingExp / lastShippingExpMax), 50f);
122 gaugeHearth.rectTransform.sizeDelta =
new Vector2(Mathf.Min(300, 300 * num4 / nextExp), 50f);
123 gaugeDebt.rectTransform.sizeDelta =
new Vector2(Mathf.Min(300f, 300f * ((
float)
result.
debt / 20000000f)), 50f);
124 textGold.text =
"shipping_nextGold".lang(lastShippingExp.ToFormat(), lastShippingExpMax.ToFormat());
125 int num5 = shippingBonus2 - shippingBonus;
126 textGold2.text = ((num5 == 0) ?
"" : (
"+" + num5));
127 textHearth.text =
"shipping_hearth".lang(hearthLv.ToString() ??
"", (100f * (float)num4 / (
float)nextExp).ToString(
"F1"));
128 float num6 = 100f * (float)num3 / (
float)nextExp;
129 textHearth2.text = ((num6 == 0f) ?
"" : (
"+" + num6.ToString(
"F1") +
"%"));
132 if (shippingBonus2 - shippingBonus !=
lastBonus)
134 lastBonus = shippingBonus2 - shippingBonus;
168 textTitle.text = date.month +
"/" + date.day +
" " + date.
year;
169 textHome.text =
"shipping_home".lang(zone.
Name);
173 buttonNext.SetActive(index != -1 && count > index + 1);
185 this.RebuildLayout(recursive:
true);
GlobalCharaList globalCharas
static Date ToDate(int raw)
int GetNextExp(int _lv=-1)
static string _currency(object a, string IDCurrency)
void Show(ShippingResult _result)
int GetShippingBonus(long _a)
List< ShippingResult > shippingResults
static void SetSeed(int a=-1)
override void Add(object item)
virtual void Refresh(bool highlightLast=false)