logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityHubFavoriteToggle

    Corner favorite-toggle star shared by every catalog-backed card factory (SerenityHubToolCard, SerenityHubValidatorCard, SerenityHubOpenToolCard), so the StopPropagation + icon-refresh wiring exists in exactly one place instead of being triplicated (UX feedback batch 9b, following on from batch 9's SerenityHubToolCard-only star). Owns its own root element; a card factory adds Root as its last child and forwards clicks to Toggle().

    Public (not internal) because the test assembly has no InternalsVisibleTo — the same forced widening the view helper classes document.

    Inheritance
    object
    SerenityHubFavoriteToggle
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Components
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public sealed class SerenityHubFavoriteToggle

    Constructors

    SerenityHubFavoriteToggle(string, SerenityHubFavorites)

    Declaration
    public SerenityHubFavoriteToggle(string entryId, SerenityHubFavorites favorites)
    Parameters
    Type Name Description
    string entryId
    SerenityHubFavorites favorites

    Properties

    Root

    Declaration
    public VisualElement Root { get; }
    Property Value
    Type Description
    VisualElement

    Methods

    Toggle()

    Toggles the entry's favorite state in the store and refreshes the star, WITHOUT triggering whichever whole-card action the owning card factory wires up.

    Declaration
    public void Toggle()
    In this article
    © 2026 Serenity. All Rights Reserved