Determine the Soldiers At War palette
This commit also takes the first step towards making it configurable; override `internal/palettes.DefaultPaletteName` at build time to choose one palette over another. It would be nice to set this at runtime!
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"code.ur.gs/lupine/ordoor/internal/data"
|
||||
"code.ur.gs/lupine/ordoor/internal/palettes"
|
||||
"code.ur.gs/lupine/ordoor/internal/util/asciiscan"
|
||||
)
|
||||
|
||||
@@ -218,9 +218,9 @@ func loadProperties(menu *Menu, scanner *asciiscan.Scanner) error {
|
||||
|
||||
switch strings.ToUpper(k) {
|
||||
case "BACKGROUND COLOR":
|
||||
menu.BackgroundColor = data.ColorPalette[vInt]
|
||||
menu.BackgroundColor = palettes.DefaultPalette()[vInt]
|
||||
case "HYPERTEXT COLOR":
|
||||
menu.HypertextColor = data.ColorPalette[vInt]
|
||||
menu.HypertextColor = palettes.DefaultPalette()[vInt]
|
||||
case "FONT TYPE":
|
||||
menu.FontType = vInt
|
||||
default:
|
||||
|
Reference in New Issue
Block a user