Updated lobby to show map preview, misc.

This commit is contained in:
2021-01-05 17:30:23 -06:00
parent 7087316347
commit a6c2b080b9
5 changed files with 54 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ class IMICRTS
raise "Failed to find entity: #{data[:entity].inspect}" unless ent
action.label = ent.name.to_s.split("_").map{ |s| s.capitalize }.join(" ")
action.description = "Cost: #{ent.cost}\n#{ent.description}"
action.description = "#{action.label}\nCost: #{ent.cost}\n#{ent.description}"
action.block = proc do
@parent.director.schedule_order(IMICRTS::Order::BUILD_UNIT, @parent.player.id, @parent.id, data[:entity])
end
@@ -26,7 +26,7 @@ class IMICRTS
raise "Failed to find entity: #{data[:entity].inspect}" unless ent
action.label = ent.name.to_s.split("_").map { |s| s.capitalize }.join(" ")
action.description = "Cost: #{ent.cost}\n#{ent.description}"
action.description = "#{action.label}\nCost: #{ent.cost}\n#{ent.description}"
action.block = proc { @parent.director.game.set_tool(data[:tool], data) }
else