MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / listSelection

Function listSelection

TheForceEngine/TFE_Editor/editor.cpp:1204–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202 }
1203
1204 void listSelection(const char* labelText, const char** listValues, size_t listLen, s32* index, s32 comboOffset/*=96*/, s32 comboWidth/*=0*/)
1205 {
1206 ImGui::SetNextItemWidth(UI_SCALE(256));
1207 ImGui::LabelText("##Label", "%s", labelText); ImGui::SameLine(UI_SCALE(comboOffset));
1208
1209 char comboId[256];
1210 sprintf(comboId, "##%s", labelText);
1211 if (comboWidth) { ImGui::SetNextItemWidth(UI_SCALE(comboWidth)); }
1212 ImGui::Combo(comboId, index, listValues, (s32)listLen);
1213 }
1214
1215 void enableAssetEditor(Asset* asset)
1216 {

Callers 1

project_editUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected