浏览代码

Added a look button

tags/v0.2.8
Fen Dweller 7 年前
父节点
当前提交
44f619fa1f
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. +1
    -1
      feast.html
  2. +6
    -0
      feast.js

+ 1
- 1
feast.html 查看文件

@@ -53,7 +53,7 @@
<button class="compass-button" id="compass-west">West</button> <button class="compass-button" id="compass-west">West</button>
</th> </th>
<th> <th>
<button class="compass-button inactive-button" id="compass-filler" disabled="true"></button>
<button class="compass-button active-button" id="compass-look">Look</button>
</th> </th>
<th> <th>
<button class="compass-button" id="compass-east">East</button> <button class="compass-button" id="compass-east">East</button>


+ 6
- 0
feast.js 查看文件

@@ -448,4 +448,10 @@ function loadCompass() {
dirButtons[SOUTH_EAST].addEventListener("click", function() { dirButtons[SOUTH_EAST].addEventListener("click", function() {
move(SOUTH_EAST); move(SOUTH_EAST);
}); });

document.getElementById("compass-look").addEventListener("click", look, false);
}

function look() {
update([currentRoom.description]);
} }

正在加载...
取消
保存