Show tooltips when hovering

This commit is contained in:
2020-03-22 15:37:48 +00:00
parent bfe9fbdf7d
commit ba7c06e5fd
6 changed files with 58 additions and 19 deletions

View File

@@ -6,6 +6,8 @@ import (
"os"
"path/filepath"
"strings"
"code.ur.gs/lupine/ordoor/internal/data"
)
const (
@@ -32,11 +34,12 @@ type AssetStore struct {
entries entryMap
// These members are used to store things we've already loaded
maps map[string]*Map
menus map[string]*Menu
objs map[string]*Object
sets map[string]*Set
sounds map[string]*Sound
maps map[string]*Map
menus map[string]*Menu
objs map[string]*Object
sets map[string]*Set
sounds map[string]*Sound
strings *data.I18n
}
// New returns a new AssetStore
@@ -86,6 +89,7 @@ func (a *AssetStore) Refresh() error {
a.objs = make(map[string]*Object)
a.sets = make(map[string]*Set)
a.sounds = make(map[string]*Sound)
a.strings = nil
return nil
}