API reference
Preparing search index…

ImGui.Combo

  • Display a drop-down selector populated from a zero-separated list of labels.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    current_item
    Int32Array

    Zero-based selected item index in Int32Array[0], updated when the selection changes. Pass Int32Array storage, not a JS scalar; native access uses the supplied backing memory.

    items_separated_by_zeros
    string | Uint8Array

    NUL-separated UTF-8 item labels terminated by an additional NUL (two NUL bytes after the final item).

    Returns

    boolean

    True if the widget changed the supplied value; false if it remained unchanged.

    Separate items with \0 within a string, end item-list with \0\0.

    e.g. "One\0Two\0Three\0"

    Implied popup_max_height_in_items = -1

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0