Example #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)
}
Example #2
0
func (b *Button) AddAnimationFrame(hImage xc.HIMAGE, uElapse uint32) {
	xc.XBtn_AddAnimationFrame(b.hEle, hImage, uElapse)
}