1
0
forked from MTSR/mapserver

updated colors

This commit is contained in:
NatureFreshMilk 2019-07-30 13:56:42 +02:00
parent b0e4841380
commit c608e058d5
5 changed files with 29286 additions and 16114 deletions

View File

@ -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)
}
}

View File

@ -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
}

View File

@ -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

File diff suppressed because it is too large Load Diff