public override ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex)
        {
            SimpleImageCell cell = (SimpleImageCell)scrollView.CreateCell(CellIdentifier());

            cell.SetHeaderOffset(LogConsoleSettings.GetTreeViewOffsetByLevel(level));
            cell.SetBackgroundColor(LogConsoleSettings.GetCellColor(cellIndex));
            cell.SetSprite((Sprite)data);

            return(cell);
        }
        public override ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex)
        {
            BaseCheckboxCell cell = (BaseCheckboxCell)scrollView.CreateCell("CheckboxCell");

            cell.SetText(DisplayText);
            cell.SetHeaderOffset(LogConsoleSettings.GetTreeViewOffsetByLevel(level));
            cell.SetBackgroundColor(LogConsoleSettings.GetCellColor(cellIndex));
            cell.SetToggle(isOn);
            cell.OnValueChanged = OnValueChanged;
            return(cell);
        }
        public override ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex)
        {
            BaseSliderCell cell = (BaseSliderCell)scrollView.CreateCell("SliderCell");

            cell.SetText(DisplayText);
            cell.SetHeaderOffset(LogConsoleSettings.GetTreeViewOffsetByLevel(level));
            cell.SetBackgroundColor(LogConsoleSettings.GetCellColor(cellIndex));
            cell.SetConfig(min, max, wholeNumbers);
            cell.SetValue(value);
            cell.OnValueChanged = OnValueChanged;
            return(cell);
        }
        public override ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex)
        {
            BaseInputCell cell = (BaseInputCell)scrollView.CreateCell("InputCell");

            cell.SetText(DisplayText);
            cell.SetInput(value);
            cell.SetHeaderOffset(LogConsoleSettings.GetTreeViewOffsetByLevel(level));
            cell.SetBackgroundColor(LogConsoleSettings.GetCellColor(cellIndex));
            cell.SetIsNumeric(isNumeric);
            cell.SetReadonly(isReadonly);
            cell.OnValueChanged = OnValueChanged;
            return(cell);
        }
Beispiel #5
0
 public abstract ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex);