logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AiPromptQuestionnaireGui

    The single shared IMGUI renderer for every AiPromptQuestion an intent declares — intents only produce data, this is the only place that draws a control for it. One method per AiPromptQuestionKind, plus the shared label/help-text/required-warning chrome every kind gets, wrapped as one card per question so nothing ever renders half of a question and orphans the rest.

    Inheritance
    object
    AiPromptQuestionnaireGui
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.AiPromptBuilder
    Assembly: Serenity.AiPromptBuilder.Editor.dll
    Syntax
    public static class AiPromptQuestionnaireGui

    Methods

    Draw(IReadOnlyList<AiPromptQuestion>, AiPromptAnswerSheet)

    Declaration
    public static void Draw(IReadOnlyList<AiPromptQuestion> questions, AiPromptAnswerSheet answers)
    Parameters
    Type Name Description
    IReadOnlyList<AiPromptQuestion> questions
    AiPromptAnswerSheet answers

    DrawWrappingTextArea(string, float, bool)

    A textarea guaranteed to wrap and fill the available width, shared by the questionnaire's own multi-line fields and by the wizard window's free-text areas (goal, prompt preview) — the fix for a long unwrapped line forcing the window into a horizontal scrollbar.

    Declaration
    public static string DrawWrappingTextArea(string currentValue, float minHeight, bool expandHeight = false)
    Parameters
    Type Name Description
    string currentValue
    float minHeight
    bool expandHeight
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved