MCPcopy Create free account
hub / github.com/fogleman/nes / highlight

Method highlight

ui/menuview.go:109–114  ·  view source on GitHub ↗
(index int)

Source from the content-addressed store, hash-verified

107}
108
109func (view *MenuView) highlight(index int) {
110 view.scroll = index/view.nx - (view.ny-1)/2
111 view.clampScroll(false)
112 view.i = index % view.nx
113 view.j = (index-view.i)/view.nx - view.scroll
114}
115
116func (view *MenuView) Enter() {
117 gl.ClearColor(0.333, 0.333, 0.333, 1)

Callers 1

onCharMethod · 0.95

Calls 1

clampScrollMethod · 0.95

Tested by

no test coverage detected