1using System.Collections.Generic;
95 uIButton.SetOnClick(delegate
102 ELayer.player.showWorkaround = a;
154 if (itemSlider ==
null)
165 b.GetComponentInChildren<
UISlider>().SetSlider(itemSlider.
GetInt(), delegate(
float a)
167 itemSlider.
SetInt((
int)a);
169 }, 0, itemSlider.
max, notify:
false);
171 bool flag = item.id ==
"permadeath" && !
IsEmbark && !
item.WasSealed();
174 b.
icon.SetAlpha(
item.IsSealed() ? 1f : 0.3f);
175 b.icon.sprite = ((item.grade < 0) ?
null :
sprites[
item.grade]);
176 b.
icon.SetNativeSize();
177 b.GetOrCreate<CanvasGroup>().alpha = (flag ? 0.5f : 1f);
178 string text =
"pp_" + item.id +
"_hint";
180 b.tooltip.enable =
Lang.
Has(text);
181 b.interactable = !flag;
191 b.
icon.SetAlpha(
item.IsSealed() ? 1f : 0.3f);
224 if (
item.IsModified())
230 ELayer.game.principal =
pp;
233 ELayer.player.resetPrincipal =
false;
void SetFeat(int id, int value=1, bool msg=false)
static GameSetting setting
Func< int, string > funcText
HashSet< string > modified
List< GamePrincipal > principals
static string[] GetList(string id)
static bool Has(string id)
static LayerDrama Instance
static LayerDrama ActivateMain(string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
UIButton togglePermadeath
UIButton toggleUsermapBenefit
UIButton buttonWorkaround
UIButton toggleInfiniteMarketFund
UIButton toggleDeathPenaltyProtection
void SetTemplate(int idx)
UISelectableGroup groupTemplate
List< UIButton > buttonTemplates
UIButton toggleManualSave
void Select(UIButton button, bool check=true)