Browse Source

Rename option

Vova Tkach 5 years ago
parent
commit
e15abd7eb1
2 changed files with 8 additions and 8 deletions
  1. 6 6
      engine/wrapper/config.go
  2. 2 2
      modules/module_api.go

+ 6 - 6
engine/wrapper/config.go

@@ -18,10 +18,10 @@ type Config struct {
 			Category int
 		}
 		Thumbnails struct {
-			ControlPanel [2]int
-			Thumbnail1   [2]int
-			Thumbnail2   [2]int
-			Thumbnail3   [2]int
+			Thumbnail0 [2]int
+			Thumbnail1 [2]int
+			Thumbnail2 [2]int
+			Thumbnail3 [2]int
 		}
 	}
 	API struct {
@@ -47,8 +47,8 @@ func (this *Config) configDefault() {
 	this.Shop.Pagination.Index = 9
 	this.Shop.Pagination.Category = 9
 
-	this.Shop.Thumbnails.ControlPanel[0] = 100
-	this.Shop.Thumbnails.ControlPanel[1] = 100
+	this.Shop.Thumbnails.Thumbnail0[0] = 100
+	this.Shop.Thumbnails.Thumbnail0[1] = 100
 	this.Shop.Thumbnails.Thumbnail1[0] = 200
 	this.Shop.Thumbnails.Thumbnail1[1] = 200
 	this.Shop.Thumbnails.Thumbnail2[0] = 250

+ 2 - 2
modules/module_api.go

@@ -308,8 +308,8 @@ func (this *Modules) RegisterModule_Api() *Module {
 				return
 			}
 
-			width := (*wrap.Config).Shop.Thumbnails.ControlPanel[0]
-			height := (*wrap.Config).Shop.Thumbnails.ControlPanel[1]
+			width := (*wrap.Config).Shop.Thumbnails.Thumbnail0[0]
+			height := (*wrap.Config).Shop.Thumbnails.Thumbnail0[1]
 
 			if thumb_type == "thumb-1" {
 				width = (*wrap.Config).Shop.Thumbnails.Thumbnail1[0]