Exemple #1
0
        protected ListLines(Rectangle abstractRectangle, List<ILine> lines, Line field, int heightLine, int heightField, string theme, string themeItem, bool isDrawable = true)
            : base(abstractRectangle, true, isDrawable)
        {
            Lines = lines;
            Field = field;
            Field.IsSelect = false;
            LineSelected = Field;

            _cursor = 0;
            _heightLine = heightLine;
            _heightField = heightField;
            _oldWheelValue = GameEngine.MouseState.ScrollWheelValue;

            Theme = new Dictionary<string, Texture2D>();
            foreach (var kvp in RessourceProvider.Themes[theme].Where(kvp => kvp.Key.StartsWith(themeItem)))
                Theme.Add(kvp.Key.Substring(themeItem.Length + 1), kvp.Value);

            CreateInternalRectangle();
            CreateLines();
        }
Exemple #2
0
 protected ListLines(Rectangle abstractRectangle, List<ILine> lines, Line field, int heightLine, string theme, string themeItem, bool isDrawable = true)
     : this(abstractRectangle, lines, field, heightLine, heightLine, theme, themeItem, isDrawable)
 {
 }