Exemple #1
0
 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);
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
        protected override void SetFlairs(UISelectable element, ManualMenuButton button, int panelIndex)
        {
            int slotSelect = (int)button.data[0];

            if (SaveLoad.SaveExists(slotSelect))
            {
                element.EnableFlair(0, true);
            }
        }
Exemple #4
0
        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]);
            }
        }