diff --git a/paths/pooltile.go b/paths/pooltile.go index 085776f..70cf6b9 100644 --- a/paths/pooltile.go +++ b/paths/pooltile.go @@ -275,7 +275,7 @@ func (gt *GaussTopo) Defaults() { gt.CtrMove = 1 } -func (gt *GaussTopo) ShouldShow(field string) bool { +func (gt *GaussTopo) ShouldDisplay(field string) bool { switch field { case "On": return true @@ -503,7 +503,7 @@ func (gt *SigmoidTopo) Defaults() { gt.CtrMove = 0.5 } -func (gt *SigmoidTopo) ShouldShow(field string) bool { +func (gt *SigmoidTopo) ShouldDisplay(field string) bool { switch field { case "On": return true diff --git a/popcode/popcode1d.go b/popcode/popcode1d.go index 92b2ad3..8867878 100644 --- a/popcode/popcode1d.go +++ b/popcode/popcode1d.go @@ -59,7 +59,7 @@ func (pc *OneD) Defaults() { pc.MinSum = 0.2 } -func (pc *OneD) ShouldShow(field string) bool { +func (pc *OneD) ShouldDisplay(field string) bool { switch field { case "Sigma": return pc.Code == GaussBump diff --git a/popcode/popcode2d.go b/popcode/popcode2d.go index 967b634..5925f64 100644 --- a/popcode/popcode2d.go +++ b/popcode/popcode2d.go @@ -57,7 +57,7 @@ func (pc *TwoD) Defaults() { pc.MinSum = 0.2 } -func (pc *TwoD) ShouldShow(field string) bool { +func (pc *TwoD) ShouldDisplay(field string) bool { switch field { case "Sigma": return pc.Code == GaussBump diff --git a/relpos/rel.go b/relpos/rel.go index a0b2970..d8d1d79 100644 --- a/relpos/rel.go +++ b/relpos/rel.go @@ -57,7 +57,7 @@ func (rp *Rel) Defaults() { } } -func (rp *Rel) ShouldShow(field string) bool { +func (rp *Rel) ShouldDisplay(field string) bool { switch field { case "XAlign": return rp.Rel == FrontOf || rp.Rel == Behind || rp.Rel == Above || rp.Rel == Below