fixed error message when no dialog is found
This commit is contained in:
parent
fe8755a260
commit
fab5316837
@ -480,8 +480,10 @@ yl_speak_up.get_fs_talkdialog = function(player, n_id, d_id, alternate_text, rec
|
||||
|
||||
-- do not crash in case of error
|
||||
if(not(active_dialog)) then
|
||||
return "size[6,2]"..
|
||||
"label[0.2,0.5;Ups! Something went wrong. Please try again.]"
|
||||
return "size[10,3]"..
|
||||
"label[0.2,0.5;Ups! Something went wrong. No dialog found.\n"..
|
||||
"Please talk to the NPC by right-clicking again.]"..
|
||||
"button_exit[4.5,1.6;1,0.9;exit;Exit]"
|
||||
end
|
||||
|
||||
-- how often has the player visted this dialog?
|
||||
|
Loading…
Reference in New Issue
Block a user