Esempio n. 1
0
 public TestSceneOverlayRulesetSelector()
 {
     Add(new FillFlowContainer
     {
         Anchor       = Anchor.Centre,
         Origin       = Anchor.Centre,
         AutoSizeAxes = Axes.Both,
         Direction    = FillDirection.Vertical,
         Spacing      = new Vector2(0, 5),
         Children     = new[]
         {
             new ColourProvidedContainer(OverlayColourScheme.Green, selector = new OverlayRulesetSelector {
                 Current = ruleset
             }),
             new ColourProvidedContainer(OverlayColourScheme.Blue, new OverlayRulesetSelector {
                 Current = ruleset
             }),
             new ColourProvidedContainer(OverlayColourScheme.Orange, new OverlayRulesetSelector {
                 Current = ruleset
             }),
             new ColourProvidedContainer(OverlayColourScheme.Pink, new OverlayRulesetSelector {
                 Current = ruleset
             }),
             new ColourProvidedContainer(OverlayColourScheme.Purple, new OverlayRulesetSelector {
                 Current = ruleset
             }),
             new ColourProvidedContainer(OverlayColourScheme.Red, new OverlayRulesetSelector {
                 Current = ruleset
             }),
         }
     });
 }
Esempio n. 2
0
 public ColourProvidedContainer(OverlayColourScheme colourScheme, OverlayRulesetSelector rulesetSelector)
 {
     colourProvider = new OverlayColourProvider(colourScheme);
     AutoSizeAxes   = Axes.Both;
     Add(rulesetSelector);
 }
Esempio n. 3
0
 protected override Drawable CreateTitleContent() => rulesetSelector = new OverlayRulesetSelector();