|
|
@ -62,7 +62,8 @@ func (self *Screen) Close() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
func (self *Screen) Draw(ptr interface{}) { |
|
|
|
func (self *Screen) Draw(objects ...interface{}) { |
|
|
|
|
|
|
|
for _, ptr := range objects { |
|
|
|
switch ptr.(type) { |
|
|
|
switch ptr.(type) { |
|
|
|
case *Market: |
|
|
|
case *Market: |
|
|
|
object := ptr.(*Market) |
|
|
|
object := ptr.(*Market) |
|
|
@ -72,6 +73,7 @@ func (self *Screen) Draw(ptr interface{}) { |
|
|
|
self.draw(object.Fetch().Format()) |
|
|
|
self.draw(object.Fetch().Format()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
func (self *Screen) DrawTime() { |
|
|
|
func (self *Screen) DrawTime() { |
|
|
|