func mouseDefGr(x, y, w, h int) { // if x < 0 || y < 0 || w <= 0 || h <= 0 { return } if underX { xker.MouseDef(x, y, w, h) return } mouse.Def(uint(x), uint(y), uint(w), uint(h)) }
func switch_(M Mode) { // if M == mode || // && M != maxMode !Switchable(M) { return } mode = M Colours(col.ScreenF, col.ScreenB) if underX { xker.Switch(nX[mode], nY[mode]) } else { Colours(col.ScreenF, col.ScreenB) Cls() if mouse.Ex() { mouse.Def(0, 0, nX[mode], nY[mode]) } } switchFontsize(font.Normal) }
func initMouse() { // pointer[0] = "# . . . . . . . . ." pointer[1] = "# # . . . . . . . ." pointer[2] = "# * # . . . . . . ." pointer[3] = "# * * # . . . . . ." pointer[4] = "# * * * # . . . . ." pointer[5] = "# * * * * # . . . ." pointer[6] = "# * * * * * # . . ." pointer[7] = "# * * * * * * # . ." pointer[8] = "# * * * * * * * # ." pointer[9] = "# * * * * * # # # #" pointer[10] = "# * * * * * # . . ." pointer[11] = "# * # # * * # . . ." pointer[12] = "# # . # * * * # . ." pointer[13] = "# . . # * * * # . ." pointer[14] = ". . . . # * * * # ." pointer[15] = ". . . . # * * * # ." pointer[16] = ". . . . . # * # . ." pointer[17] = ". . . . . # # . . ." mouseOn = false mouse.Def(0, 0, XX, YY) mouse.Warp(nX[mode]/3, nY[mode]/3) }