示例#1
0
文件: mouse.go 项目: CaptainSoOmA/Uni
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))
}
示例#2
0
文件: modes.go 项目: CaptainSoOmA/Uni
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)
}
示例#3
0
文件: mouse.go 项目: CaptainSoOmA/Uni
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)
}