0.0.6 Added pallette dropdown. /JL

This commit is contained in:
2022-12-10 19:59:50 +01:00
parent 23d813b432
commit 627aa1d24a
3 changed files with 39 additions and 4 deletions
+8
View File
@@ -70,6 +70,14 @@ type (
}
)
func CreateBrandsList(mw *MyMainWindow) []string {
brands := make([]string, 0)
for _, brand := range mw.pallette.Brands.Brand {
brands = append(brands, brand.BrandName)
}
return brands
}
func CreatePallette(mw *MyMainWindow) {
// Open our xmlFile
XMLFile, err := os.Open("pallettes\\pallette.xml")