Exemple #1
0
 public TrackOutlineRendererWrapper(TrackObjectBase track, TrackOutlineRenderer renderer)
     : base(renderer, track.Name, CommonAcConsts.TrackOutlineWidth, CommonAcConsts.TrackOutlineHeight)
 {
     _helper = new AttachedHelper(this, new TrackOutlineRendererTools(track, renderer), 244, -80, false);
     Form.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     Form.MaximizeBox     = false;
 }
Exemple #2
0
        public LiteShowroomFormWrapperWithTools(ToolsKn5ObjectRenderer renderer, CarObject car, string skinId, string presetFilename)
            : base(renderer, car.DisplayName)
        {
            _tools  = new LiteShowroomTools(renderer, car, skinId, presetFilename);
            _helper = new AttachedHelper(this, _tools, limitHeight: false);
            GoToNormalMode();

            renderer.VisibleUi = false;
            Form.Move         += OnMove;
        }
Exemple #3
0
        public LiteShowroomFormWrapperWithTools(ToolsKn5ObjectRenderer renderer, CarObject car, string skinId, string presetFilename,
                                                IEnumerable <CustomShowroomLodDefinition> lodDefinitions = null)
            : base(renderer, car.DisplayName)
        {
            if (OptionAttachedToolsVerboseMode)
            {
                Logging.Here();
            }

            _tools  = new LiteShowroomTools(renderer, car, skinId, presetFilename, this, OptionAttachedToolsVerboseMode, lodDefinitions);
            _helper = new AttachedHelper(this, _tools, limitHeight: false, verbose: OptionAttachedToolsVerboseMode);
            GoToNormalMode();

            renderer.VisibleUi = false;
            Form.Move         += OnMove;
        }
 private CmPreviewsFormWrapper(CarObject car, DarkKn5ObjectRenderer renderer, string skinId, string presetFilename)
     : base(renderer, "Previews Params", CommonAcConsts.PreviewWidth, CommonAcConsts.PreviewHeight)
 {
     _tools  = new CmPreviewsTools(renderer, car, skinId, presetFilename);
     _helper = new AttachedHelper(this, _tools);
 }
Exemple #5
0
 public TrackMapRendererWrapper(TrackObjectBase track, TrackMapPreparationRenderer renderer) : base(renderer, track.Name, 680, 680)
 {
     _helper = new AttachedHelper(this, new TrackMapRendererTools(track, renderer), 240);
 }