closes #21 - add panic to AddChild
This commit is contained in:
parent
b405874889
commit
20fd6ab608
|
@ -110,6 +110,7 @@ func (c *ControlBase) SetPack(pk PackType) {
|
|||
}
|
||||
|
||||
func (c *ControlBase) AddChild(ctrl Control, scale int) {
|
||||
panic("This control cannot have children")
|
||||
}
|
||||
|
||||
func (c *ControlBase) Children() []Control {
|
||||
|
|
Loading…
Reference in New Issue