|
|
@@ -14,7 +14,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="explore-nav"> |
|
|
<div class="explore-nav"> |
|
|
<NavButton @click.native="location.connections[direction].travel(world, world.player)" v-for="direction in Object.keys(location.connections)" :key="direction" :style="navBtnCss(direction)" :location="location" :direction="direction" /> |
|
|
<NavButton @click.native="location.connections[direction].travel(world, world.player)" v-for="direction in Object.keys(location.connections)" :key="direction" :style="navBtnCss(direction)" :location="location" :direction="direction" /> |
|
|
<div class="nav-filler" :Style="navBtnCss(direction)" v-for="direction in Object.keys(directions)" :key="direction + '-filler'"></div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="explore-choices"> |
|
|
<div class="explore-choices"> |
|
|
<ChoiceButton @click.native="writeLog(choice.execute(world, world.player))" v-for="(choice, index) in location.choices.filter(choice => choice.visible(world))" :key="'choice' + index" :choice="choice" :world="world" /> |
|
|
<ChoiceButton @click.native="writeLog(choice.execute(world, world.player))" v-for="(choice, index) in location.choices.filter(choice => choice.visible(world))" :key="'choice' + index" :choice="choice" :world="world" /> |
|
|
@@ -137,6 +136,7 @@ export default class Explore extends Vue { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.explore-nav { |
|
|
.explore-nav { |
|
|
|
|
|
position: relative; |
|
|
grid-area: nav; |
|
|
grid-area: nav; |
|
|
background: #444; |
|
|
background: #444; |
|
|
display: grid; |
|
|
display: grid; |
|
|
@@ -151,12 +151,6 @@ export default class Explore extends Vue { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.nav-filler { |
|
|
|
|
|
grid-area: var(--nav-direction); |
|
|
|
|
|
background: #222; |
|
|
|
|
|
margin: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.explore-choices { |
|
|
.explore-choices { |
|
|
grid-area: choices; |
|
|
grid-area: choices; |
|
|
background: #555; |
|
|
background: #555; |
|
|
|