/*--- Constructers --------------------------------------------------------------------------------------------------------------------------------------------*/ public ACTTabPageControl(TimelineCore pTimelineCore) { InitializeComponent(); //this.applicationView = this.elementHost.Child as PluginApplicationView; //this.applicationViewModel = this.applicationView.DataContext as PluginApplicationViewModel; timelineCore = pTimelineCore; updateFromOverlayMove = false; var settings = timelineCore.Settings; settings.AddControlSetting("ResourcesDir", textBoxResourceDir); settings.AddControlSetting("MoveOverlayByDrag", checkBoxMoveOverlayByDrag); settings.AddControlSetting("ShowOverlayButtons", checkBoxShowOverlayButtons); settings.AddControlSetting("PlaySoundByACT", checkBoxPlaySoundByACT); settings.AddControlSetting("Autoload", checkBoxAutoloadAfterChangeZone); settings.AddControlSetting("AutoShow", checkBoxAutoShow); settings.AddControlSetting("AutoHide", checkBoxAutoHide); settings.AddControlSetting("ResetTimelineAtCombatEnd", checkBoxResetTimelineCombatEnd); timelineCore.TimelineView.Move += TimelineView_Move; timelineCore.TimelineView.TimelineFontChanged += TimelineView_TimelineFontChanged; timelineCore.TimelineView.ColumnWidthChanged += TimelineView_ColumnWidthChanged; timelineCore.TimelineView.OpacityChanged += TimelineView_OpacityChanged; timelineCore.Controller.CurrentTimeUpdate += Controller_CurrentTimeUpdate; timelineCore.Controller.TimelineUpdate += Controller_TimelineUpdate; timelineCore.Controller.PausedUpdate += Controller_PausedUpdate; timelineCore.TimelineAutoLoader.ZoneChange += Autoloader_ZoneChange; TimelineView_TimelineFontChanged(this, null); TimelineView_ColumnWidthChanged(this, null); TimelineView_OpacityChanged(this, null); Controller_TimelineUpdate(this, null); Controller_PausedUpdate(this, null); }
private void Initialize(TabPage pluginScreenSpace, Label pluginStatusText) { this.TimelineCore = new TimelineCore(pluginScreenSpace, pluginStatusText, pluginDirectory); }