摘要: 单选按钮:一,常用属性:1,CheckSprite:选中后,才显示的Sprite,即为“选中”状态;2,Starts Checked:true,一开始就显示“选中”状态;3,RadioButtonRoot:一组UICheckbox,在这组UICheckbox中只能是一个被“选中”状态,其它的UICheckbox为“初始”状态;4,Option Can Be None :true,在“选中”状态下,再次选中,即向“初始”状态转变;为fase,不做任何转变;5,Function Name:状态改变,提供接口;二,接口说明:1:UICheckbox.Set(bool );state:true,&qu 阅读全文
posted @ 2013-07-23 12:47 韦斯利yx 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: publicclass OpenClooseGoUI : MonoBehaviour {public GameObject closeBt;public GameObject goUI;public GameObject openBt;void Start () {if(closeBt)UIEventListener.Get(closeBt).onPress += closeList;if(openBt)UIEventListener.Get(openBt).onPress += openList;}void closeList(GameObject go, bool istrue) {... 阅读全文
posted @ 2013-07-23 12:26 韦斯利yx 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 功能需求:点击退出按钮,弹出“退出”UI,询问玩家是否退出游戏;退出按钮退出UI:publicclass GameQuit : MonoBehaviour {// 取消按钮public GameObject closeBt;// 退出UIpublic GameObject goUI;// 退出按钮public GameObject openBt;//确定退出游戏按钮public GameObject quitBt;void Start () {NGUIAddListener();}void NGUIAddListener(){if(openBt) UIEventListener.Get... 阅读全文
posted @ 2013-07-23 12:18 韦斯利yx 阅读(5130) 评论(0) 推荐(0) 编辑