(text string, tableData *TableData)
| 4134 | } |
| 4135 | |
| 4136 | func NewDraggableLabel(text string, tableData *TableData) *DraggableLabel { |
| 4137 | ds := &DraggableLabel{ |
| 4138 | TargetRect: &sdl.FRect{0, 0, 32, 32}, |
| 4139 | rect: &sdl.FRect{0, 0, 32, 32}, |
| 4140 | Label: NewLabel(text, nil, true, AlignLeft), |
| 4141 | TableData: tableData, |
| 4142 | } |
| 4143 | ds.Label.Editable = true |
| 4144 | ds.Label.RegexString = RegexNoNewlines |
| 4145 | ds.Label.WorldSpace = true |
| 4146 | ds.Label.DrawLineUnderTitle = false |
| 4147 | return ds |
| 4148 | } |
| 4149 | |
| 4150 | func (ds *DraggableLabel) Update() { |
| 4151 |