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

Method SetTextRaw

gui.go:2435–2448  ·  view source on GitHub ↗
(text []rune)

Source from the content-addressed store, hash-verified

2433}
2434
2435func (label *Label) SetTextRaw(text []rune) {
2436
2437 if string(label.Text) != string(text) {
2438
2439 label.Text = []rune{}
2440 for _, c := range text {
2441 label.Text = append(label.Text, c)
2442 }
2443
2444 label.TextureDirty = true
2445
2446 }
2447
2448}
2449
2450// NextAutobreak returns the index of the next automatic break in the text.
2451func (label *Label) NextAutobreak(startPoint int) int {

Callers 5

SetTextMethod · 0.95
ConstructMenusFunction · 0.95
OpenProjectFromFunction · 0.80
UpdateTargetTimerTextMethod · 0.80
DeserializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected