Exemple #1
0
        // Button
        public ADMSheet(string label,
                        Action callback = null,
                        AltDialogMenu.Condition condition = null,
                        string description = null,
                        params ADMSheet[] sheets)
        {
            this.label       = label;
            this.callback    = callback;
            this.condition   = condition;
            this.description = description;
            type             = ADMSheetType.Button;

            SetSheets(sheets);
        }
Exemple #2
0
        // Slider
        public ADMSheet(string label,
                        int value,
                        int min,
                        int max,
                        Action <int, ADMSheetSlider> callback = null,
                        AltDialogMenu.Condition condition     = null,
                        string description = null,
                        params ADMSheet[] sheets)
        {
            this.label       = label;
            this.value       = new ADMSheetSlider(value, min, max);
            this.callback    = callback;
            this.condition   = condition;
            this.description = description;
            type             = ADMSheetType.Slider;

            SetSheets(sheets);
        }