Ejemplo n.º 1
0
 // Expanded constructor takes a predefined size, and screen target. It add the option to customize the background color and image.
 // Allows the user to define the transparency of the background. This also give the ability to implement in and out effects.
 public Template( string name, MenuDefines.MenuSize size, MenuDefines.ScreenMaxTarget targetScreen, 
     Color backgroundColor, string backgroundImagePath, float backgroundTransparancy,
     
     MenuDefines.BorderList border, Color borderColor, int borderThckness, float borderTransparancy,
     
     MenuDefines.EffectsList transitInEffect,
     Vector2 transitInStart, float transitInTime, MenuDefines.EffectsList transitOutEffect, Vector2 transitOutEndPosition, float transitOutTime)
     : this(name, size, targetScreen, backgroundColor, backgroundTransparancy, border, borderColor, borderThckness, borderTransparancy)
 {
     _backgroundImagePath = backgroundImagePath;
     _transitInEffect = transitInEffect;
     _transitInStartPosition = transitInStart;
     _transitInTime = transitInTime;
     _transitOutEffect = TransitOutEffect;
     _transitOutEndPosition = TransitOutEndPosition;
     _transitOutTime = TransitOutTime;
 }
Ejemplo n.º 2
0
        // Basic constructor takes a predefined size and target screen.
        public Template( string name, MenuDefines.MenuSize size, MenuDefines.ScreenMaxTarget targetScreen, Color backgroundColor, float backgroundTransparancy, MenuDefines.BorderList border, Color borderColor, int borderThckness, float borderTransparancy )
        {
            _name = name;
            _size = size;
            _customSize = Vector2.Zero;
            _targetScreen = targetScreen;

            _backgroundColor = backgroundColor;

            _backgroundTransparancy = backgroundTransparancy;

            _border = border;
            _borderColor = borderColor;
            _borderThickness = borderThckness;
            _borderTransparancy = borderTransparancy;

            widgetList = new List<WidgetBase>();
        }
Ejemplo n.º 3
0
 public Menu getMenu(MenuDefines.MenuList menuToGet)
 {
     return menuList[ (int)menuToGet ];
 }