Make i18n optional, add SoW note

This commit is contained in:
2020-05-19 11:07:10 +01:00
parent 9d0750d134
commit 04bdf3e352
2 changed files with 9 additions and 3 deletions

View File

@@ -27,6 +27,10 @@ I keep a GIF showcasing interesting progress here:
![](https://ur.gs/img/ordoor-main-menu.gif)
I've just been informed that another game from 1998, [Soldiers At War](https://en.wikipedia.org/wiki/Soldiers_at_War),
seems to use the same engine. Maybe at some point Ordoor will be able to play
both. Will that need a rename? Hmm. Watch this space.
## Building from source
I'm writing code in Go at the moment, so you'll need to have a Go runtime

View File

@@ -1,6 +1,8 @@
package assetstore
import (
"log"
"github.com/hajimehoshi/ebiten"
"code.ur.gs/lupine/ordoor/internal/menus"
@@ -77,11 +79,11 @@ func (a *AssetStore) Menu(name string) (*Menu, error) {
i18n, err := a.i18n()
if err != nil {
return nil, err
log.Printf("Failed to load i18n data, skipping internationalisatoin: %s", err)
} else {
raw.Internationalize(i18n)
}
raw.Internationalize(i18n)
// FIXME: we should parse the menu into a list of elements like "ListBox",
// "Dialogue", etc, and present those with objects already selected
objects, err := a.loadMenuObjects(raw)