11 bool flag = recipe !=
null;
12 if (
EMono.player.currentHotItem.Thing ==
null || (
EMono.player.currentHotItem.Thing.trait.IsTool && !
HotItemHeld.disableTool))
16 base.gameObject.SetActive(flag);
21 this.buttonAutoWall.SetActive(
false);
22 this.buttonAutoWall.mainText.text = (EMono.game.config.autoWall ?
"On" :
"Off");
23 this.buttonAutoWall.icon.SetAlpha(
EMono.game.config.autoWall ? 1f : 0.4f);
24 this.buttonAutoWall.SetOnClick(delegate
27 EMono.game.config.autoWall = !
EMono.game.config.autoWall;
30 this.buttonFreePlace.SetActive(
false);
31 this.buttonFreePlace.mainText.text = (EMono.game.config.freePos ?
"On" :
"Off");
32 this.buttonFreePlace.icon.SetAlpha(
EMono.game.config.freePos ? 1f : 0.4f);
33 this.buttonFreePlace.SetOnClick(delegate
36 EMono.game.config.freePos = !
EMono.game.config.freePos;
39 this.buttonHeight.SetActive(recipe.MaxAltitude != 0);
40 this.buttonHeight.mainText.text = ((ActionMode.Build.altitude >= 0) ?
"+" :
"") +
ActionMode.Build.altitude.ToString();
41 this.buttonHeight.SetOnClick(delegate
47 this.buttonHeight.onRightClick = delegate()
53 this.buttonHeight.onInputWheel = delegate(
int a)
59 this.bgGrid.uvRect =
new Rect(1f, 1f, (
float)this.GetComponentsInDirectChildren(
false).Count, 1f);
60 this.RebuildLayout(
false);
64 public UIRawImage bgGrid;