|
@@ -25,6 +25,7 @@ class ActionInventory extends Action {
|
|
public static async createButton (thing : Thing, resolve : (t : Thing) => void) {
|
|
public static async createButton (thing : Thing, resolve : (t : Thing) => void) {
|
|
let p = document.createElement("p");
|
|
let p = document.createElement("p");
|
|
p.classList.add("choice");
|
|
p.classList.add("choice");
|
|
|
|
+ p.classList.add("small");
|
|
let elements = await ((new Say(thing)).getPureElements());
|
|
let elements = await ((new Say(thing)).getPureElements());
|
|
elements.forEach(ele => {
|
|
elements.forEach(ele => {
|
|
p.appendChild(ele);
|
|
p.appendChild(ele);
|
|
@@ -52,7 +53,7 @@ class ActionInventory extends Action {
|
|
Controls.KeyHandler.reset();
|
|
Controls.KeyHandler.reset();
|
|
let say = new Say();
|
|
let say = new Say();
|
|
if (wielded.length > 0) {
|
|
if (wielded.length > 0) {
|
|
- say.add(new SayBold("Wielded:"), Say.LINE_BREAK);
|
|
|
|
|
|
+ say.add(new SayBold("Wielded:"), Say.PARAGRAPH_BREAK);
|
|
for (let i = 0; i < wielded.length; i++) {
|
|
for (let i = 0; i < wielded.length; i++) {
|
|
say.add(await ActionInventory.createButton(wielded[i], resolve));
|
|
say.add(await ActionInventory.createButton(wielded[i], resolve));
|
|
}
|
|
}
|