MCPcopy Create free account
hub / github.com/SolarLune/masterplan / NewDraggableLabel

Function NewDraggableLabel

gui.go:4136–4148  ·  view source on GitHub ↗
(text string, tableData *TableData)

Source from the content-addressed store, hash-verified

4134}
4135
4136func 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
4150func (ds *DraggableLabel) Update() {
4151

Callers 1

ResizeMethod · 0.85

Calls 1

NewLabelFunction · 0.85

Tested by

no test coverage detected