8 public void ResetHotbar(
int id)
10 Hotbar hotbar = this.bars[id];
11 WidgetHotbar widgetHotbar = ((hotbar !=
null) ? hotbar.actor :
null) ??
null;
16 hotbar2 = this.SetHobar(0, 4,
null);
19 hotbar2 = this.SetHobar(1, 4,
null);
32 hotbar2 = this.SetHobar(2, 7,
null);
49 if (
EClass.core.IsGameStarted &&
EClass._zone.CanEnterBuildModeAnywhere)
66 hotbar2 = this.SetHobar(3, 12,
null);
67 if (!
EClass.core.IsGameStarted)
71 bool flag = EClass.debug.godBuild ||
EClass.debug.ignoreBuildRule;
72 if (flag ||
EClass.Branch !=
null)
74 if (flag ||
EClass.Branch.elements.Has(4006))
79 }, -1, -1,
false).always =
true;
81 if (flag ||
EClass.Branch.elements.Has(4000))
88 if (flag ||
EClass.Branch.elements.Has(4001))
95 if (flag ||
EClass.Branch.elements.Has(4001))
102 if (flag ||
EClass.Branch.elements.Has(4002))
123 if (flag ||
EClass.Branch.elements.Has(4004))
138 hotbar2 = this.SetHobar(4, 9,
null);
139 if (!
EClass.core.IsGameStarted)
153 if (
EClass.debug.godBuild ||
EClass.Branch.elements.Has(4006))
160 if (
EClass.debug.godBuild)
167 if (
EClass.debug.godBuild ||
EClass.Branch.elements.Has(4005))
174 if (
EClass.debug.godBuild)
185 hotbar2 = this.SetHobar(5, 9,
null);
205 hotbar2 = this.SetHobar(6, 9,
null);
208 hotbar2 = this.SetHobar(7, 7,
null);
211 type = HotItemToggle.Type.SnapFreepos
215 type = HotItemToggle.Type.ToggleRoof
219 type = HotItemToggle.Type.ToggleSlope
223 type = HotItemToggle.Type.ToggleBuildLight
227 hotbar2.actor = widgetHotbar;
230 widgetHotbar.Rebuild();
238 hotbar.itemsPerPage = slots;
239 this.bars[id] = hotbar;
247 public void OnCreateGame()