X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=969aad79e6f72a4688bcdea75d87b3e7bc96a212;hb=516fafe7ee088155d156e0f36f165a0d557d2bde;hp=4696db8b4d878a4ff764de6f5a4753f3d3951dc9;hpb=ca3d1b424a90490fb8da2a3bcfe58a4ab206d8a1;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 4696db8b..969aad79 100644 --- a/src/editor.c +++ b/src/editor.c @@ -2384,10 +2384,10 @@ static char *getElementInfoText(int element) if (element < NUM_FILE_ELEMENTS) { - if (element_info[element].custom_description != NULL) - info_text = element_info[element].custom_description; - else if (strlen(element_info[element].description) > 0) + if (strlen(element_info[element].description) > 0) info_text = element_info[element].description; + else if (element_info[element].custom_description != NULL) + info_text = element_info[element].custom_description; else if (element_info[element].editor_description != NULL) info_text = element_info[element].editor_description; } @@ -5926,7 +5926,11 @@ static void HandleTextInputGadgets(struct GadgetInfo *gi) strcpy(textinput_info[type_id].value, gi->text.value); if (type_id == ED_TEXTINPUT_ID_ELEMENT_NAME) + { CopyCustomElementPropertiesToGame(properties_element); + + ModifyEditorElementList(); /* update changed button info text */ + } } static void HandleSelectboxGadgets(struct GadgetInfo *gi)