forked from MTSR/mapserver
updated colors
This commit is contained in:
parent
b0e4841380
commit
c608e058d5
@ -80,16 +80,17 @@ func Setup(p params.ParamsType, cfg *Config) *App {
|
||||
a.Colormapping = colormapping.NewColorMapping()
|
||||
|
||||
colorfiles := []string{
|
||||
"/colors/default.txt",
|
||||
//https://daconcepts.com/vanessa/hobbies/minetest/colors.txt
|
||||
"/colors/custom.txt",
|
||||
"/colors/vanessa.txt",
|
||||
"/colors/advtrains.txt",
|
||||
"/colors/scifi_nodes.txt",
|
||||
"/colors/custom.txt",
|
||||
}
|
||||
|
||||
for _, colorfile := range colorfiles {
|
||||
_, err := a.Colormapping.LoadVFSColors(false, colorfile)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
panic(err.Error() + " file:" + colorfile)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ func (m *ColorMapping) LoadBytes(buffer []byte) (int, error) {
|
||||
}
|
||||
|
||||
func (m *ColorMapping) LoadVFSColors(useLocal bool, filename string) (int, error) {
|
||||
buffer, err := vfs.FSByte(useLocal, "/colors.txt")
|
||||
buffer, err := vfs.FSByte(useLocal, filename)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
@ -1 +1,7 @@
|
||||
planetoidgen:sun 255 100 0
|
||||
|
||||
# planetoidgen
|
||||
planetoidgen:sun 255 100 0
|
||||
|
||||
# beacon
|
||||
beacon:redbeam 255 0 0
|
||||
beacon:greenbeam 0 255 0
|
File diff suppressed because it is too large
Load Diff
29274
static/colors/vanessa.txt
Normal file
29274
static/colors/vanessa.txt
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user