minor redesign of trade formspec

This commit is contained in:
Sokomine 2021-05-24 23:59:52 +02:00
parent 2e6ecf6006
commit c563603583

View File

@ -431,14 +431,16 @@ yl_speak_up.get_fs_trade_simple = function(player)
-- show images of price and what is sold so that the player knows what
-- it costs and what he will get even if the trade is not possible at
-- that moment
"item_image[1,1.5;1,1;"..tostring(trade.player_gives).."]"..
"item_image[4,1.5;1,1;"..tostring(trade.npc_gives).."]"..
"item_image[1.1,1.6;0.8,0.8;"..tostring(trade.player_gives).."]"..
"item_image[4.1,1.6;0.8,0.8;"..tostring(trade.npc_gives).."]"..
"image[3.0,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
-- show the pay slot from the detached player's trade inventory
"list[detached:yl_speak_up_player_"..pname..";pay;2,1.5;1,1;]" ..
-- show the buy slot from the same inventory
"list[detached:yl_speak_up_player_"..pname..";buy;5,1.5;1,1;]" ..
"label[1.5,2.8;"..trade_possible_msg.."]"..
"button[6.2,1.6;2.0,0.9;finished_trading;Back to talk]"..
"button[0.2,0.0;2.0,0.9;finished_trading;Back to talk]"..
-- "button[6.2,1.6;2.0,0.9;finished_trading;Back to talk]"..
"tooltip[finished_trading;Click here once you've traded enough with this "..
"NPC and want to get back to talking.]"
end