Omit the Create New String option for sign and area rect strings, as creating one here would leave it orphaned
This commit is contained in:
@@ -2676,6 +2676,8 @@ void start_string_editing(eStrMode mode,short just_redo_text) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(mode <= STRS_JOURNAL) {
|
||||
// Signs and area rects don't get a Create New option – you create a new one on the map.
|
||||
std::string make_new = std::to_string(num_strs) + " - Create New String";
|
||||
switch(mode) {
|
||||
case 0: set_rb(num_strs, RB_SCEN_STR, num_strs, make_new); break;
|
||||
@@ -2687,6 +2689,7 @@ void start_string_editing(eStrMode mode,short just_redo_text) {
|
||||
case 6: set_rb(num_strs, RB_OUT_RECT, num_strs, make_new); break;
|
||||
case 7: set_rb(num_strs, RB_TOWN_RECT, num_strs, make_new); break;
|
||||
}
|
||||
}
|
||||
|
||||
set_lb(NLS - 3,LB_TEXT,LB_NO_ACTION,"Alt-click to delete",true);
|
||||
update_mouse_spot(translate_mouse_coordinates(sf::Mouse::getPosition(mainPtr())));
|
||||
|
Reference in New Issue
Block a user