紧接上一个的项目,使用NGUI在Plane下创建Button
选中Hierarchy窗口中Plane,选择菜单NGUI->Open->Widget Wizard,打开Widget Tool窗口
在Widget Tool窗口选择先前制作的Atlas,在Template中选择Button,在Background选择按钮背景图,Add To选择Plane,按钮就会出现了。
...
分类:
其他好文 时间:
2014-10-09 17:33:07
阅读次数:
286
3-4 计算长方形的周长和面积
Time Limit: 1000MS Memory limit: 65536K
题目描述
通过本题的练习可以掌握拷贝构造函数的定义和使用方法;
设计一个长方形类Rect,计算长方形的周长与面积。类中有私有数据成员Length(长)、Width(宽),由具有缺省参数值的构造函数对其初始化,函数原型为:Rect(double Length=0...
分类:
其他好文 时间:
2014-10-09 16:30:58
阅读次数:
173
这篇文章是根据目前 chrome 稳定版(19.0.1084.52 m)写的, 因为 google 也在不断完善chrome developer tool, 所以 chrome 版本不同可能稍有差别. 一些快捷键也是 windows 上的, mac 下的应该大同小异.
常规的断点相关的 breakpoint/conditional-breakpoint/call-stack/watch-ex...
分类:
其他好文 时间:
2014-10-08 16:03:15
阅读次数:
420
C#脚本:
public class NewBehaviourScript2 : MonoBehaviour {
public Texture t;
public GUISkin skin;
// Use this for initialization
void Start () {
}
void OnGUI(){
GUILayout.BeginArea(new Rect(0...
分类:
其他好文 时间:
2014-10-08 12:02:25
阅读次数:
201
在eclipse中点击window→Customize Perspective→Command Groups availability→Available command groups下勾选Android SDK and AVD Manager选项,然后在Tool Bar Visibility 下勾...
分类:
移动开发 时间:
2014-10-08 00:43:54
阅读次数:
224
GUI.Button (new Rect(0,0,5,5,"哈哈");
GUILayout.Button ("heheh");
1.以上代码都是现实一个按钮
2.不同之处:
GUI中需要通过new Rect()指定button的位置,不灵活
GUILayout不需要指定位置,会自动确定现实位置,较为灵活。...
分类:
其他好文 时间:
2014-10-07 19:14:03
阅读次数:
185
USING GIT IN XCODEUSING BRANCHESBranches can be a very effective tool to isolate new features or experiments in code. Xcode has pretty good support fo...
分类:
其他好文 时间:
2014-10-07 16:01:23
阅读次数:
168
总结 Android 自定义EditText输入框 带清空按钮
当用户输入字符后 EditText会自动在输入框的内部右侧出现删除按钮
重写EditText达到简化布局的效果
效果图:
继承EditText
package com.example.myedittexttest;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Draw...
分类:
移动开发 时间:
2014-10-07 12:37:13
阅读次数:
293
源码:/// /* 2014-9-3 by tonglu_wzq*/; (function ($) { var tool = { format: function (source, params) { if (arguments.length =...
分类:
其他好文 时间:
2014-10-06 17:21:00
阅读次数:
183
我的开发环境为:ubuntu14.04LTS 64bit;Spring Tool Suite3.5.0.RELEASEMaven 3.2.3SSM整合中遇到的不能扫描注解的bug最终解决方法:更换spring版本bug详情:这几天一直在被这个bug虐。所有的配置文件我和类文件都检查了N遍了都没问题。...
分类:
其他好文 时间:
2014-10-04 20:18:37
阅读次数:
447