Ejemplo n.º 1
0
 public Option(string text, Utils.EventHandler function = null, Option[] subOptions = null,
               OptGetter update = null)
 {
     Text         = text;
     DrawableText = new PlainText(text);
     SubOpts      = subOptions;
     Click        = function;
     HasFunction  = function != null;
     Activatable  = HasFunction || SubOpts != null;
     Updater      = update;
 }
Ejemplo n.º 2
0
 public ColorOption(IDrawableText text, Utils.EventHandler function = null,
                    Option[] subOptions = null, ColorOptGetter update = null) : base(text.Text, function, subOptions)
 {
     DrawableText = text;
     Updater      = update;
 }