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

Method Update

gui.go:4367–4380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4365}
4366
4367func (tt *Tooltip) Update() {
4368 if !tt.Visible {
4369 return
4370 }
4371 tt.Button.Update()
4372 if globals.Mouse.Button(sdl.BUTTON_LEFT).Pressed() && !globals.Mouse.RawPosition().Inside(tt.Button.Rect) {
4373 tt.Displaying = false
4374 }
4375
4376 if tt.Displaying {
4377 globals.DrawOnTop = tt
4378 }
4379
4380}
4381func (tt *Tooltip) Draw() {
4382 if !tt.Visible {
4383 return

Callers

nothing calls this directly

Calls 5

ButtonMethod · 0.80
InsideMethod · 0.80
RawPositionMethod · 0.80
UpdateMethod · 0.65
PressedMethod · 0.45

Tested by

no test coverage detected