added tooltips for precondition and effect list

This commit is contained in:
Sokomine 2021-06-07 04:28:15 +02:00
parent 0bea918686
commit ba31a932ad

View File

@ -301,10 +301,14 @@ yl_speak_up.get_fs_edit_option_dialog = function(player, n_id, d_id, o_id)
"tooltip[1.2,1.2;19.6,3.0;This is what the NPC says to the player.]"..
-- list the preconditions
"label[0.2,4.2;If all of the following pre(C)onditions are fulfilled:]"..
-- TODO: perhaps add tooltip for the type of the conditions
"tablecolumns[text;color,span=1;text;text]"..
"table[1.2,4.5;19.6,2.0;table_of_preconditions;"..
list_of_preconditions..";0]"..
"tooltip[1.2,4.5;19.6,2.0;"..
"*All* pre(C)onditions need to be true in order\n"..
"for the option to be offered to the player.\n"..
"Please click on a pre(C)ondition in order\n"..
"to edit or delete it!]"..
-- answer of the player (the actual option)
"label[0.2,6.8;..the player may answer with this text:]"..
"label[1.2,7.6;A:]"..
@ -333,10 +337,16 @@ yl_speak_up.get_fs_edit_option_dialog = function(player, n_id, d_id, o_id)
-- list of effects
"label[0.2,12.0;If the player completed the above action successfully, "..
"apply the following (Ef)fects:]"..
-- TODO: perhaps add tooltip for the type of the conditions
"tablecolumns[text;color,span=1;text;text]"..
"table[1.2,12.3;19.6,2.0;table_of_effects;"..
list_of_effects..";0]"..
"tooltip[1.2,12.3;19.6,2.0;"..
"*All* (Ef)fects are executed after the action (if there is\n"..
"one defined in this option) has been completed successfully\n"..
"by the player. If there is no action defined, then the\n"..
"(Ef)fects will always be executed when this option here is\n"..
"selected.\n"..
"Please click on an (Ef)fect in order to edit or delete it!]"..
-- ..and what the NPC will reply to that answer
"label[0.2,15.1;The NPC will react to this answer with the following dialog:]"..
"hypertext[1.2,15.7;19.6,2.5;d_text_next;<normal>"..