Skip to content

Commit 84fc8d3

Browse files
committed
example: add licenses
1 parent 409f0ca commit 84fc8d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/ui.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ func (g *Game) testWindow(ctx *debugui.Context) {
147147
ctx.NumberField(&g.num1, 0.1, 2)
148148
ctx.Slider(&g.num2, 0, 10, 0.1, 2)
149149
})
150+
ctx.Header("Licenses", false, func() {
151+
ctx.Text(`The photograph by Chris Nokleberg is licensed under the Creative Commons Attribution 4.0 License
152+
153+
The Go Gopher by Renee French is licensed under the Creative Commons Attribution 4.0 License.`)
154+
})
150155
})
151156
}
152157

0 commit comments

Comments
 (0)