Skip to content

Commit

Permalink
allow long key values in the smart edit tab
Browse files Browse the repository at this point in the history
forgot to increase this to match the raw edit tab limits
  • Loading branch information
wootguy committed Apr 30, 2024
1 parent a4dbf28 commit b703772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/editor/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2104,8 +2104,8 @@ void Gui::drawKeyvalueEditor_SmartEditTab(Entity* ent) {

ImGui::Columns(2, "smartcolumns", false); // 4-ways, with border

static char keyNames[128][64];
static char keyValues[128][64];
static char keyNames[MAX_KEYS_PER_ENT][MAX_KEY_LEN];
static char keyValues[MAX_KEYS_PER_ENT][MAX_VAL_LEN];

float paddingx = style.WindowPadding.x + style.FramePadding.x;
float inputWidth = (ImGui::GetWindowWidth() - (paddingx * 2)) * 0.5f;
Expand Down Expand Up @@ -2225,7 +2225,7 @@ void Gui::drawKeyvalueEditor_SmartEditTab(Entity* ent) {
InputChangeCallback::keyValueChanged, &inputData[i]);
}
else {
ImGui::InputText(("##val" + to_string(i) + "_" + to_string(app->pickCount)).c_str(), keyValues[i], 64,
ImGui::InputText(("##val" + to_string(i) + "_" + to_string(app->pickCount)).c_str(), keyValues[i], MAX_VAL_LEN,
ImGuiInputTextFlags_CallbackAlways, InputChangeCallback::keyValueChanged, &inputData[i]);
}

Expand Down

0 comments on commit b703772

Please sign in to comment.