Add stubs for unknown widget types

This commit is contained in:
2020-03-25 00:23:28 +00:00
parent b986359047
commit 7824396c24
4 changed files with 83 additions and 2 deletions

View File

@@ -14,6 +14,8 @@ func init() {
}
// A button without hover animation
// FIXME: Keyboard.mnu has TypeSimpleButton instances that seem to include a
// hover in the SpriteId field
type button struct {
path string
@@ -34,6 +36,11 @@ type mainButton struct {
}
func registerSimpleButton(d *Driver, r *menus.Record) error {
// FIXME: LevelPly.mnu specifies a menu oddly. This tweak gets us past it
if d.Name == "levelply" && r.Id == 2 {
return nil
}
return registerButton(d, r, r.SpriteId[0])
}