public static bool Edit(this UnNullableCfg <CountlessInt> uc, ValueIndex ind) { var tmp = uc.Get(ind);//[ind.groupIndex][ind.triggerIndex]; if (pegi.edit(ref tmp)) { uc.Set(ind, tmp); return(true); } return(false); }
public static bool Select(this UnNullableCfg <CountlessInt> uc, Trigger t) { var tmp = uc.Get(t); if (pegi.select(ref tmp, t.enm)) { uc.Set(t, tmp); return(true); } return(false); }
public static bool Toggle(this UnNullableCfg <CountlessBool> uc, ValueIndex ind) { var tmp = uc.Get(ind);//[ind.groupIndex][ind.triggerIndex]; if (pegi.toggleIcon(ref tmp)) { uc.Set(ind, tmp); return(true); } return(false); }