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
AiPromptQuestionnaireGui
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
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