1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00
This commit is contained in:
exane 2015-07-04 15:07:49 +02:00
parent 7f7472499e
commit 11764993c6
2 changed files with 9 additions and 6 deletions

View File

@ -167,7 +167,7 @@ let SideView = Backbone.View.extend({
$field.find(".field-close").html(html) $field.find(".field-close").html(html)
$field.find(".large-field-counter").html(score) $field.find(".large-field-counter").html(score)
if(horn){ if(horn){
this.$fields.find(".field-horn-close").html(this.template(horn)); this.$fields.find(".field-horn-close").html(this.templateCards([horn]));
} }
let isInfluencedByWeather; let isInfluencedByWeather;
@ -196,7 +196,7 @@ let SideView = Backbone.View.extend({
$field.find(".field-range").html(html) $field.find(".field-range").html(html)
$field.find(".large-field-counter").html(score) $field.find(".large-field-counter").html(score)
if(horn){ if(horn){
this.$fields.find(".field-horn-range").html(this.template(horn)); this.$fields.find(".field-horn-range").html(this.templateCards([horn]));
} }
let isInfluencedByWeather; let isInfluencedByWeather;
@ -225,7 +225,7 @@ let SideView = Backbone.View.extend({
$field.find(".field-siege").html(html) $field.find(".field-siege").html(html)
$field.find(".large-field-counter").html(score) $field.find(".large-field-counter").html(score)
if(horn){ if(horn){
this.$fields.find(".field-horn-siege").html(this.template(horn)); this.$fields.find(".field-horn-siege").html(this.templateCards([horn]));
} }
let isInfluencedByWeather; let isInfluencedByWeather;
@ -438,7 +438,7 @@ let BattleView = Backbone.View.extend({
if(this.handCards){ if(this.handCards){
this.calculateMargin(this.$el.find(".field-hand")); this.calculateMargin(this.$el.find(".handcard-wrap"));
} }
if(this.user.get("isReDrawing")){ if(this.user.get("isReDrawing")){

View File

@ -7,12 +7,14 @@
$height: 600px; $height: 600px;
$game-height: 800px; $game-height: 800px;
.container { .container {
min-width: 960px; min-width: 970px;
width: 970px important;
background: rgba(5,5,5,0.25); background: rgba(5,5,5,0.25);
padding: 20px; padding: 20px;
margin-bottom: 150px;
} }
.board { .board {
height: $game-height; height: $game-height;
//border: 1px solid black; //border: 1px solid black;
@ -39,6 +41,7 @@ $game-height: 800px;
//width: 100%; //width: 100%;
height: 100px; height: 100px;
border: 1px solid black; border: 1px solid black;
/*margin-bottom: 15px;*/
/* /*
overflow: hidden; overflow: hidden;