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