|
Window Framework for UI Toolkit v2.0.x
|
Represents a user interface element for configuring context menu settings within the window framework. This form element allows customization of various context menu behaviors, such as fade time and delay. More...


Public Member Functions | |
| ContextMenuSettingsFormElement () | |
| Constructs the timing form and initializes controls from current preferences. | |
| VisualElement | CreateFormElement () |
| Builds a new timing form subtree and stores its slider references on this instance. | |
| void | ResetToDefaults () |
| Resets context menu delay and fade duration to default baseline constants. | |
| void | SyncUIFromPreferences () |
| Copies current preference values into the existing timing sliders. | |
Properties | |
| float | ContextMenuDelay [get, set] |
| Gets/sets pre-fade delay in seconds, clamped to 0..5 on assignment. | |
| float | ContextMenuFadeTime [get, set] |
| Gets/sets fade duration in seconds, clamped to 0..3 on assignment. | |
Private Member Functions | |
| void | OnAttachToPanel (AttachToPanelEvent evt) |
| void | OnContextMenuDelayChanged (ChangeEvent< float > evt) |
| void | OnContextMenuFadeTimeChanged (ChangeEvent< float > evt) |
| void | OnDetachFromPanel (DetachFromPanelEvent evt) |
| void | OnGeometryChanged (GeometryChangedEvent evt) |
| void | RegisterCallbacks () |
Private Attributes | |
| Slider | _contextMenuFadeDelaySlider |
| Slider | _contextMenuFadeTimeSlider |
Represents a user interface element for configuring context menu settings within the window framework. This form element allows customization of various context menu behaviors, such as fade time and delay.
|
inline |
Constructs the timing form and initializes controls from current preferences.
Attach and initial geometry refresh displayed values. Construction installs change callbacks; the current detach handler removes them. Reattachment refreshes values but does not reinstall those callbacks in this implementation; reuse limitations are recorded in the manual. This is a VisualElement, not an EditorWindow or MonoBehaviour.


|
inline |
Builds a new timing form subtree and stores its slider references on this instance.
Not a pure reusable factory: overwrites this instance's slider references and registers callbacks. Prefer constructing a new ContextMenuSettingsFormElement to create another independent form instead of repeatedly calling this method.


|
inlineprivate |


|
inlineprivate |

|
inlineprivate |

|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inline |
Resets context menu delay and fade duration to default baseline constants.
|
inline |
Copies current preference values into the existing timing sliders.
Uses ordinary value assignment, so installed change callbacks can write the resulting clamped values back to preferences. Does not call PlayerPrefs.Save.

|
private |
|
private |
|
getset |
Gets/sets pre-fade delay in seconds, clamped to 0..5 on assignment.
Uses the context-menu fade-delay preference, not a theme appearance token.
|
getset |
Gets/sets fade duration in seconds, clamped to 0..3 on assignment.
Uses PlayerPrefs with configured controller theme-data default (fallback 0.5). Does not rewrite theme USS or call PlayerPrefs.Save on every assignment.