static void MakeButton(UISelectable element, string text, object[] data) { element.uiText.SetText(text);//, -1); element.data = data; element.EnableFlair(0, false); element.EnableFlair(1, false); }
void MakeButton(UISelectable element, string text, ManualMenuButton button, int panelIndex, object[] data, bool enableFlairs) { element.uiText.SetText(text); element.data = data; element.EnableFlair(0, false); element.EnableFlair(1, false); if (enableFlairs) { SetFlairs(element, button, panelIndex); } }
protected override void SetFlairs(UISelectable element, ManualMenuButton button, int panelIndex) { int slotSelect = (int)button.data[0]; if (SaveLoad.SaveExists(slotSelect)) { element.EnableFlair(0, true); } }
protected override void SetFlairs(UISelectable element, ManualMenuButton button, int panelIndex) { int buttonSelect = (int)button.data[0]; if (buttonSelect < 4) { element.EnableFlair(0, (bool)button.data[1]); } }