()
| 4365 | } |
| 4366 | |
| 4367 | func (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 | } |
| 4381 | func (tt *Tooltip) Draw() { |
| 4382 | if !tt.Visible { |
| 4383 | return |
nothing calls this directly
no test coverage detected