|
Window Framework for UI Toolkit v2.0.x
|
Guided setup and explicit validated repository creation inside the existing Theme Manager. More...


Public Member Functions | |
| ThemeRepositorySetupView (WindowFrameThemeData source, string packageRoot, Action cancel, Func< IEnumerable< WindowFrameThemeData > > findRepositories=null) | |
| Builds a cancellable, local-only form using the supplied controller prefab's existing defaults. | |
| void | CancelAndDispose () |
| Cancels/cleans active work if its owner window is closing, rather than leaving an orphan operation. | |
| ThemeRepositoryCreateRequest | CaptureRequest () |
| Captures every local setup choice for the same production operation used by retained tests. | |
| bool | CreateRepository (bool showProgress=true) |
| Starts the shared staged production operation behind this form's blocking progress overlay. | |
| void | RequestCancellation () |
| Pauses the scheduled copy and asks for confirmation without yet requesting cancellation. | |
| void | ResolveCancellation (bool confirmed) |
| Resolves the existing inline cancellation question; No resumes unchanged, Yes starts cleanup. | |
| bool | ValidateSetup () |
| Rechecks local form input and updates the review without modifying any project/runtime state. | |
Properties | |
| ThemeApplyMethods | ApplyMethod [get] |
| Requested scope to save on the future copied ThemeData. | |
| bool | DebugTelemetryEnabled [get] |
| Requested existing telemetry option; does not change compilation/feature defines. | |
| PanelSettings | ExistingPanel [get] |
| Explicit project PanelSettings selection, or null to request a new default asset. | |
| bool | IsCreating [get] |
| Whether the form is executing the real copy operation; owner UI must block conflicting actions. | |
| ThemeRepositoryCreateResult | LastCreatedResult [get, private set] |
| Last successfully validated production output; prevents duplicate creation from the same form. | |
| bool | MemoryEnabled [get] |
| Developer-owned memory policy for the future copied controller, never ThemeData or player preferences. | |
| string | ParentFolder [get] |
| Local project-relative parent folder; may not exist yet. | |
| string | RepositoryName [get] |
| Local, user-entered repository folder name; no asset is saved by this property. | |
| string | SaveDataFileName [get] |
| Requested persistent JSON filename, independent of the ThemeData asset name. | |
| WindowFrameThemeData | Source [get] |
| Current copy source: the shipped default initially, or an explicitly chosen project-only override. | |
| IReadOnlyList< WindowFrameTheme > | SupportedThemes [get] |
| Every source theme entry in its original order; this is not theme validation. | |
| string | ThemeDataName [get] |
| ThemeData asset/display name without .asset, distinct from folder and persistent JSON names. | |
| string | ValidatedDestination [get] |
| The last accepted input destination, or null when destination validation failed. | |
Events | |
| Action< bool > | CreationStateChanged |
| Allows the Manager to block its other controls while the same-form overlay is active. | |
| Action< ThemeRepositoryCreateResult > | RepositoryCreated |
| Raised only after production copying/wiring/validation succeeds; Manager uses its existing open path. | |
Private Member Functions | |
| void | AddEligibilityRow (string text, bool included) |
| Adds a source-entry row using Unity's existing editor status icon. | |
| void | AddFieldConflict (VisualElement field, VisualElement container) |
| Places a hidden conflict message directly under a form item; does not change input or source data. | |
| void | BrowseParent () |
| Opens a location picker only; cancellation preserves the current form value. | |
| void | ChooseProjectSource (WindowFrameThemeData candidate) |
| Selects a still-saved project source locally and retains other user-entered setup values. | |
| void | CompleteCreation (ThemeRepositoryCreateResult result) |
| void | FailCreation (Exception exception) |
| List< WindowFrameThemeData > | FindAlternateSources () |
| Lists eligible project alternatives using the Manager's existing discovery provider. | |
| void | InspectSource () |
| Reads source eligibility into the source card; does not call mutating preparation/upgrade APIs. | |
| void | RefreshSourceChoices () |
| Refreshes the inline source choices; no eligible alternatives means a disabled, explained action. | |
| void | SetBusyPresentation (bool busy) |
| Blocks form inputs while leaving only the in-form progress/cancel overlay interactive. | |
| void | SetFieldConflict (VisualElement field, string error) |
| Highlights a conflicting item and displays its exact reason; valid input clears its own message. | |
| void | ShowCleaningUp () |
| void | UpdateCopyProgress (string stage, string asset, int completed, int total) |
| Reports actual current-stage units in the form; never creates a separate editor progress window. | |
Static Private Member Functions | |
| static VisualElement | Card (VisualElement parent, string title, string description) |
| Adds a numbered card with readable directions using the existing editor theme hierarchy. | |
| static Label | Note (string text, string className) |
| Creates a wrapped themed label; text values are not interpreted as rich markup. | |
Private Attributes | |
| readonly DropdownField | _apply |
| readonly TextField | _assetName |
| readonly VisualElement | _cancelConfirmation |
| readonly Button | _cancelCopy |
| bool | _cancelRequested |
| readonly Button | _chooseSource |
| bool | _cleaningUp |
| readonly Image | _cleanupSpinner |
| bool | _confirmingCancel |
| readonly Button | _createButton |
| readonly GWG.Extensions.SlideToggleControl | _debug |
| string | _destination |
| List< string > | _excluded = new List<string>() |
| readonly Dictionary< VisualElement, HelpBox > | _fieldConflicts = new Dictionary<VisualElement, HelpBox>() |
| readonly Func< IEnumerable< WindowFrameThemeData > > | _findRepositories |
| bool | _inputsValid |
| bool | _isCreating |
| readonly GWG.Extensions.SlideToggleControl | _memory |
| readonly TextField | _name |
| IDisposable | _operation |
| readonly string | _packageRoot |
| readonly UnityEditor.UIElements.ObjectField | _panel |
| readonly TextField | _parent |
| readonly Label | _progressAsset |
| readonly ProgressBar | _progressBar |
| readonly VisualElement | _progressOverlay |
| readonly Label | _progressStage |
| readonly Label | _progressTitle |
| readonly Label | _review |
| readonly TextField | _saveFile |
| WindowFrameThemeData | _source |
| readonly Label | _sourceChoiceInfo |
| readonly VisualElement | _sourceChoices |
| readonly Label | _sourceContext |
| string | _sourceError |
| readonly UnityEditor.UIElements.ObjectField | _sourceField |
| readonly HelpBox | _sourceNotice |
| readonly Label | _sourcePath |
| readonly IVisualElementScheduledItem | _spinnerUpdate |
| List< WindowFrameTheme > | _supported = new List<WindowFrameTheme>() |
| readonly VisualElement | _themeRows |
| readonly Label | _themeSummary |
| readonly GWG.Extensions.SlideToggleControl | _useExistingPanel |
| readonly HelpBox | _validation |
Guided setup and explicit validated repository creation inside the existing Theme Manager.
Each new form starts with the asset-controlled shipped default, not the Manager's open collection. The optional source chooser offers eligible project repositories only; Demo-folder data is never offered. Editing fields and Cancel do not write assets or preferences. Only the explicit Create action calls the production service; its successful result is handed to the Manager for opening. No scene placement or Addressables configuration is performed. The form uses existing editor theme tokens/classes for hierarchy, instructions and warnings. Its three boolean fields reuse GWG.Extensions.SlideToggleControl, preserving BaseField change notifications and local-only values; the controls do not persist settings or create assets.
|
inline |
Builds a cancellable, local-only form using the supplied controller prefab's existing defaults.
| source | The canonical asset-controlled default supplied when the form opens. |
| packageRoot | Installed package path derived by the manager, used for origin checks/template lookup. |
| cancel | Closes the form without asset creation or scene placement. |
| findRepositories | The existing Manager asset discovery, filtered locally to eligible project-only sources. |


|
inlineprivate |
Adds a source-entry row using Unity's existing editor status icon.
| text | Source theme name/default marker, including a preserved missing entry. |
| included | Whether the row describes an entry retained by the planned copy. |
The row describes retention, not stylesheet validity or runtime certification. Icons are built-in editor resources; no artwork is generated or copied into the repository. Text and tooltips retain the meaning without requiring colour recognition.


|
inlineprivate |
Places a hidden conflict message directly under a form item; does not change input or source data.

|
inlineprivate |
Opens a location picker only; cancellation preserves the current form value.

|
inline |
Cancels/cleans active work if its owner window is closing, rather than leaving an orphan operation.

|
inline |
Captures every local setup choice for the same production operation used by retained tests.
Does not save sources/preferences or create assets. Validate immediately before creation.

|
inlinestaticprivate |
Adds a numbered card with readable directions using the existing editor theme hierarchy.


|
inlineprivate |
Selects a still-saved project source locally and retains other user-entered setup values.
Rechecks source origin and saved identity at selection time, without parsing themes. This does not call SelectDataFile or save any source/preferences.


|
inlineprivate |


|
inline |
Starts the shared staged production operation behind this form's blocking progress overlay.
| showProgress | True schedules Editor updates so UI repaints; false drains the same stages synchronously for retained fixtures. |
No separate assistant-owned progress window is opened. Unity may display internal import dialogs during individual native calls. Cancellation/rollback and source protection are shared.


|
inlineprivate |


|
inlineprivate |
Lists eligible project alternatives using the Manager's existing discovery provider.
Skips the entire installed package, including its canonical default and every Demo-folder collection, before inspecting source content. Names and Unity asset labels do not affect origin.


|
inlineprivate |
Reads source eligibility into the source card; does not call mutating preparation/upgrade APIs.


|
inlinestaticprivate |
Creates a wrapped themed label; text values are not interpreted as rich markup.

|
inlineprivate |
Refreshes the inline source choices; no eligible alternatives means a disabled, explained action.


|
inline |
Pauses the scheduled copy and asks for confirmation without yet requesting cancellation.

|
inline |
Resolves the existing inline cancellation question; No resumes unchanged, Yes starts cleanup.


|
inlineprivate |
Blocks form inputs while leaving only the in-form progress/cancel overlay interactive.
Owner notification also blocks conflicting Manager controls; no separate window is created.

|
inlineprivate |
Highlights a conflicting item and displays its exact reason; valid input clears its own message.

|
inlineprivate |

|
inlineprivate |
Reports actual current-stage units in the form; never creates a separate editor progress window.


|
inline |
Rechecks local form input and updates the review without modifying any project/runtime state.


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
get |
Requested scope to save on the future copied ThemeData.
|
get |
Requested existing telemetry option; does not change compilation/feature defines.
|
get |
Explicit project PanelSettings selection, or null to request a new default asset.
|
get |
Whether the form is executing the real copy operation; owner UI must block conflicting actions.
|
getprivate set |
Last successfully validated production output; prevents duplicate creation from the same form.
|
get |
Developer-owned memory policy for the future copied controller, never ThemeData or player preferences.
|
get |
Local project-relative parent folder; may not exist yet.
|
get |
Local, user-entered repository folder name; no asset is saved by this property.
|
get |
Requested persistent JSON filename, independent of the ThemeData asset name.
|
get |
Current copy source: the shipped default initially, or an explicitly chosen project-only override.
|
get |
Every source theme entry in its original order; this is not theme validation.
|
get |
ThemeData asset/display name without .asset, distinct from folder and persistent JSON names.
|
get |
The last accepted input destination, or null when destination validation failed.
| Action<bool> GWG.WindowFramework.Editor.ThemeRepositorySetupView.CreationStateChanged |
Allows the Manager to block its other controls while the same-form overlay is active.
| Action<ThemeRepositoryCreateResult> GWG.WindowFramework.Editor.ThemeRepositorySetupView.RepositoryCreated |
Raised only after production copying/wiring/validation succeeds; Manager uses its existing open path.