1using System.Collections.Generic;
95 uIButton.SetOnClick(delegate
102 ELayer.player.showWorkaround = a;
153 if (itemSlider ==
null)
164 b.GetComponentInChildren<
UISlider>().SetSlider(itemSlider.
GetInt(), delegate(
float a)
166 itemSlider.
SetInt((
int)a);
168 }, 0, itemSlider.
max, notify:
false);
170 bool flag = item.id ==
"permadeath" && !
IsEmbark && !
item.WasSealed();
173 b.
icon.SetAlpha(
item.IsSealed() ? 1f : 0.3f);
175 b.
icon.SetNativeSize();
176 b.GetOrCreate<CanvasGroup>().alpha = (flag ? 0.5f : 1f);
177 string text =
"pp_" + item.id +
"_hint";
179 b.tooltip.enable =
Lang.
Has(text);
180 b.interactable = !flag;
190 b.
icon.SetAlpha(
item.IsSealed() ? 1f : 0.3f);
223 if (
item.IsModified())
229 ELayer.game.principal =
pp;
232 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)