How button
Closed this issue ยท 3 comments
moh1122 commented
Hello
I like that dev of the game great one ๐
BTW the how button is not functioning ?
Evilcome commented
YES.
howButton.actionTouchUpInside = GWButtonTarget.aBlock({ () -> Void in
print("click how")
})
later, I want to add some ui for telling people how to play.
moh1122 commented
hello
can you please tell me in which file is the howbutton configured.
Thank you
Evilcome commented
Still in the UISpriteComponent.swift
file:
let howNormalTexture = SKTexture(imageNamed: "icon_how")
howButton = GWButton(normalTexture: howNormalTexture)
howButton.size = CGSizeMake(50, 50)
howButton.position = playButton.position + CGPointMake(110, 0)
howButton.zPosition = 2
howButton.setRawPosition()
howButton.setRawScale()
root.addChild(howButton)
....
howButton.actionTouchUpInside = GWButtonTarget.aBlock({ () -> Void in
print("click how")
})
only print now, no more function added, just a placeholder.