More investigation into animation
This commit is contained in:
@@ -201,12 +201,18 @@ func loadProperties(menu *Menu, scanner *asciiscan.Scanner) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// DeBrief.mnu misspells these
|
||||
parts := strings.SplitN(strings.ToUpper(k), " ", 3)
|
||||
if len(parts) > 2 {
|
||||
k = strings.Join(parts[0:2], " ")
|
||||
}
|
||||
|
||||
switch strings.ToUpper(k) {
|
||||
case "BACKGROUND COLOR 0..255..-1 TRANS":
|
||||
case "BACKGROUND COLOR":
|
||||
menu.BackgroundColor = data.ColorPalette[vInt]
|
||||
case "HYPERTEXT COLOR 0..255":
|
||||
case "HYPERTEXT COLOR":
|
||||
menu.HypertextColor = data.ColorPalette[vInt]
|
||||
case "FONT TYPE 0..5":
|
||||
case "FONT TYPE":
|
||||
menu.FontType = vInt
|
||||
default:
|
||||
return fmt.Errorf("Unhandled menu property in %v: %q=%q", menu.Name, k, v)
|
||||
|
Reference in New Issue
Block a user