Esempio n. 1
0
func CreateButtonLoop(left, top int, pInfo *my_image_info, hWindow xcgui.HWINDOW) {
	hButton := xcgui.XBtn_Create(left, top, 37, 42, "B", xcgui.HXCGUI(hWindow))
	xcgui.XBtn_AddAnimationFrame(hButton, pInfo.hImage1, 100)
	xcgui.XBtn_AddAnimationFrame(hButton, pInfo.hImage2, 100)
	xcgui.XBtn_AddAnimationFrame(hButton, pInfo.hImage3, 100)
	xcgui.XBtn_AddAnimationFrame(hButton, pInfo.hImage4, 100)
	xcgui.XBtn_AddAnimationFrame(hButton, pInfo.hImage5, 100)
	xcgui.XBtn_AddAnimationFrame(hButton, pInfo.hImage6, 100)

	xcgui.XBtn_EnableAnimation(hButton, true, true)
}
Esempio n. 2
0
func (b *Button) EnableAnimation(bEnable, bLoopPlay bool) {
	xc.XBtn_EnableAnimation(b.hEle, bEnable, bLoopPlay)
}