fixed bug with variable name showing
This commit is contained in:
parent
703770794e
commit
66477c494f
@ -1017,7 +1017,7 @@ yl_speak_up.get_fs_edit_option_related = function(player, table_click_result,
|
||||
-- (state is the second offered option in both preconditions and effects list)
|
||||
if(data.what and data.what == 2 and id_prefix ~= "a_") then
|
||||
if(not(data.variable) or data.variable < 1) then
|
||||
data.variable = 0
|
||||
data.variable = 1
|
||||
-- not enough selected yet for saving
|
||||
save_button = ""
|
||||
elseif(not(data.operator) or data.operator == 1) then
|
||||
@ -1047,7 +1047,7 @@ yl_speak_up.get_fs_edit_option_related = function(player, table_click_result,
|
||||
"label[0.2,4.3;Name of variable:]"..
|
||||
"dropdown[0.2,4.8;6.5,0.6;select_variable;"..
|
||||
var_list_text..";"..
|
||||
tostring(data.variable + 1)..";]"..
|
||||
tostring(data.variable)..";]"..
|
||||
"label[7.0,4.3;"..text_select_operator.."]"..
|
||||
"dropdown[7.0,4.8;4.0,0.6;select_operator;"..
|
||||
table.concat(check_operator, ",")..";"..
|
||||
|
Loading…
Reference in New Issue
Block a user