mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-17 14:18:05 +02:00
reset scroll counter when entering edit mode
This commit is contained in:
parent
1967eeef15
commit
68f5ac0d7c
@ -96,6 +96,9 @@ yl_speak_up.input_talk = function(player, formname, fields)
|
||||
-- result
|
||||
return
|
||||
end
|
||||
-- for older formspec versions: reset scroll counter
|
||||
yl_speak_up.speak_to[pname].counter = 1
|
||||
yl_speak_up.speak_to[pname].option_index = 1
|
||||
-- enter edit mode with that particular NPC
|
||||
yl_speak_up.edit_mode[pname] = yl_speak_up.speak_to[pname].n_id
|
||||
-- start a new chat - but this time in edit mode
|
||||
|
Loading…
Reference in New Issue
Block a user