public void ConfigurePlugin(PluginSettings pluginSettings) { _useHashCaching = pluginSettings.Get("enableCaching", false); _enable = pluginSettings.Get("enable", false); //You can disable it even if loaded _enableJavascriptScrambling = pluginSettings.Get("scrambleJs", false); //This can be unstable Reconfigure(); }
protected override void LoadUserData(PluginSettings pluginSettings) { this.isLoading = true; if (this.logView != null) { this.logView.UserSettings = pluginSettings.Get <LogViewSettings>(); this.logView.ApplyUserSettings(); } this.isLoading = false; }
protected override void LoadUserData(PluginSettings settings) { SceneViewSettings sceneViewSettings = settings.Get <SceneViewSettings>(); this.isLoading = true; if (this.sceneView != null) { this.sceneView.UserSettings = sceneViewSettings; this.sceneView.ApplyUserSettings(); } this.isLoading = false; }
public void Get_Should_Return_Client_Only_Deserialized_Object_From_Root() { IPluginSettings settings = new PluginSettings("a4t.typed.xml"); var person = settings.Get <StronglyTypedPerson>(true); person.WasServerKeyLoaded.Should().BeFalse(); person.Name.Should().Be("SDLGuy"); person.Age.Should().Be(99); person.IsOld.Should().BeTrue(); person.Favorites.Count().Should().Be(3); person.Favorites.ElementAt(1).Should().Be("Anguilla"); }
public void Get_Should_Return_Deserialized_Object_From_Root() { IPluginSettings settings = new PluginSettings("a4t.typed.xml"); var person = settings.Get <StronglyTypedPerson>(); person.WasServerKeyLoaded.Should().BeTrue(); person.Name.Should().Be("SDLGuy"); person.Age.Should().Be(99); person.IsOld.Should().BeTrue(); person.Favorites.Count().Should().Be(3); person.Favorites.Last().Should().Be("Johny Walker"); }
protected override void LoadUserData(PluginSettings pluginSettings) { this.isLoading = true; this.editorBaseSettings = pluginSettings.Get <EditorBasePluginSettings>(); if (this.slicingForm != null) { this.slicingForm.UserSettings = this.editorBaseSettings.PixmapSlicer; this.slicingForm.ApplyUserSettings(); } this.isLoading = false; }
protected override void LoadUserData(PluginSettings pluginSettings) { this.isLoading = true; this.userSettings = pluginSettings.Get <ObjectInspectorPluginSettings>(); foreach (var pair in this.userSettings.InspectorSettingsById) { if (pair.Key < 0 || pair.Key >= this.objViews.Count) { continue; } this.objViews[pair.Key].UserSettings = pair.Value; this.objViews[pair.Key].ApplyUserSettings(); } this.isLoading = false; }
public void Get_Should_Return_Deserialized_Object_From_Root() { IPluginSettings settings = new PluginSettings("a4t.typed.xml"); var person = settings.Get<StronglyTypedPerson>(); person.WasServerKeyLoaded.Should().BeTrue(); person.Name.Should().Be("SDLGuy"); person.Age.Should().Be(99); person.IsOld.Should().BeTrue(); person.Favorites.Count().Should().Be(3); person.Favorites.Last().Should().Be("Johny Walker"); }
public void Get_Should_Return_Client_Only_Deserialized_Object_From_Root() { IPluginSettings settings = new PluginSettings("a4t.typed.xml"); var person = settings.Get<StronglyTypedPerson>(true); person.WasServerKeyLoaded.Should().BeFalse(); person.Name.Should().Be("SDLGuy"); person.Age.Should().Be(99); person.IsOld.Should().BeTrue(); person.Favorites.Count().Should().Be(3); person.Favorites.ElementAt(1).Should().Be("Anguilla"); }