code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/WriteDmActivity.java
Java
asf20
12,236
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/TwitterActivity.java
Java
asf20
6,852
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import and...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/FanfouWidgetSmall.java
Java
asf20
8,339
package com.ch_linghu.fanfoudroid; import java.text.MessageFormat; import java.util.List; import android.content.Intent; import android.os.Bundle; import com.ch_linghu.fanfoudroid.fanfou.Paging; import com.ch_linghu.fanfoudroid.http.HttpException; import com.ch_linghu.fanfoudroid.ui.base.UserArrayBaseActivity; impor...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/FollowersActivity.java
Java
asf20
2,322
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.SearchManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.KeyEvent; import android.view.Lay...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/SearchActivity.java
Java
asf20
11,514
package com.ch_linghu.fanfoudroid.ui.module; import java.util.ArrayList; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Color; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; impor...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java
Java
asf20
5,626
package com.ch_linghu.fanfoudroid.ui.module; import android.widget.ListAdapter; public interface TweetAdapter extends ListAdapter { void refresh(); }
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java
Java
asf20
153
package com.ch_linghu.fanfoudroid.ui.module; import android.app.Activity; import android.view.MotionEvent; import com.ch_linghu.fanfoudroid.BrowseActivity; import com.ch_linghu.fanfoudroid.MentionActivity; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterActivity; /** * MyActivityFlipper ...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/MyActivityFlipper.java
Java
asf20
1,958
package com.ch_linghu.fanfoudroid.ui.module; import android.graphics.Color; import android.text.Editable; import android.text.InputFilter; import android.text.Selection; import android.text.TextWatcher; import android.view.View.OnKeyListener; import android.widget.EditText; import android.widget.TextView; ...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java
Java
asf20
2,457
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; public interface Widget { Context getContext(); // TEMP public static interface OnGestureListener { /** * @param e1 * The fi...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/Widget.java
Java
asf20
1,270
package com.ch_linghu.fanfoudroid.ui.module; import com.ch_linghu.fanfoudroid.R; import android.app.Activity; import android.util.Log; import android.view.GestureDetector; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; import android.view.View; import android.view.View.O...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/FlingGestureListener.java
Java
asf20
4,028
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.AbsListView; import android.widget.ListView; public class MyListView extends ListView implements ListView.OnScrollListener { private int mSc...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java
Java
asf20
1,552
package com.ch_linghu.fanfoudroid.ui.module; public interface IFlipper { void showNext(); void showPrevious(); }
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/IFlipper.java
Java
asf20
117
package com.ch_linghu.fanfoudroid.ui.module; import java.util.ArrayList; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; import android.graphic...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java
Java
asf20
9,914
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java
Java
asf20
6,622
/** * */ package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.graphics.Bitmap; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java
Java
asf20
3,612
package com.ch_linghu.fanfoudroid.ui.module; public interface Feedback { public boolean isAvailable(); public void start(CharSequence text); public void cancel(CharSequence text); public void success(CharSequence text); public void failed(CharSequence text); public void update(Object arg0); public void se...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/Feedback.java
Java
asf20
361
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.text.Layout; import android.text.Spannable; import android.text.Spanned; import android.text.style.Foregrou...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java
Java
asf20
3,502
package com.ch_linghu.fanfoudroid.ui.module; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Intent; import android.util.Log; import android.view.Gravity; import android.widget.ImageView; import android.widget.Toast; import android.widget.ViewSwitcher.ViewFactory...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/ActivityFlipper.java
Java
asf20
6,954
package com.ch_linghu.fanfoudroid.ui.module; import java.util.List; import android.app.Activity; import android.content.Context; import android.util.Log; import android.view.View; import android.widget.ProgressBar; import android.widget.Toast; import com.ch_linghu.fanfoudroid.R; public class SimpleFeedback implemen...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/SimpleFeedback.java
Java
asf20
2,632
/** * */ package com.ch_linghu.fanfoudroid.ui.module; import java.text.ParseException; import java.util.Date; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; import ...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java
Java
asf20
6,786
package com.ch_linghu.fanfoudroid.ui.module; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.drawable.AnimationDrawable; import android.text.TextPaint; import android.util.Log; import android.view.View; import android.view.animation.Animation; import ...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/NavBar.java
Java
asf20
8,578
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.util.Log; public class FeedbackFactory { private static final String TAG = "FeedbackFactory"; public static enum FeedbackType { DIALOG, PROGRESS, REFRESH }; public static Feedback create(Context context, FeedbackType t...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/module/FeedbackFactory.java
Java
asf20
1,165
package com.ch_linghu.fanfoudroid.ui.base; import android.app.Activity; import android.content.Intent; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.BitmapDrawable; import android.text.TextPaint; import android.util.Log; import android.view.View; import android.view.ViewGroup; im...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java
Java
asf20
8,671
package com.ch_linghu.fanfoudroid.ui.base; import java.util.ArrayList; import java.util.List; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; import android.widget.ProgressBar; import android.widget.TextView; import com.ch_linghu.fanfoudroid.R;...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java
Java
asf20
9,000
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java
Java
asf20
16,453
package com.ch_linghu.fanfoudroid.ui.base; public interface Refreshable { void doRetrieve(); }
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java
Java
asf20
97
package com.ch_linghu.fanfoudroid.ui.base; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.content.SharedPreferences; import and...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java
Java
asf20
9,412
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java
Java
asf20
22,940
package com.ch_linghu.fanfoudroid.ui.base; import android.app.ListActivity; /** * TODO: 准备重构现有的几个ListActivity * * 目前几个ListActivity存在的问题是 : 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法, * 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity" * 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListView即可, * 而...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/BaseListActivity.java
Java
asf20
1,225
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java
Java
asf20
9,965
package com.ch_linghu.fanfoudroid.ui.base; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.ContextMenu; import andro...
zzys3228-fanfou
src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java
Java
asf20
14,619
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 2009 Google, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
zzys3228-fanfou
src/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java
Java
asf20
4,702
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 2009 Google, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
zzys3228-fanfou
src/com/commonsware/cwac/merge/MergeAdapter.java
Java
asf20
8,691
package com.hlidskialf.android.hardware; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; public class ShakeListener implements SensorEventListener { private static final int FORCE...
zzys3228-fanfou
src/com/hlidskialf/android/hardware/ShakeListener.java
Java
asf20
2,826
/* Javadoc 样式表 */ /* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */ /* 页面背景颜色 */ body { background-color: #FFFFFF; color:#000000 } /* 标题 */ h1 { font-size: 145% } /* 表格颜色 */ .TableHeadingColor { background: #CCCCFF; color:#000000 } /* 深紫色 */ .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* 淡紫色 */ .TableRowColor ...
zzys3228-fanfou
doc/stylesheet.css
CSS
asf20
1,370
JN_redirect=setTimeout(function(){location.pathname="/"},9800);
zzy-master-blogspot
home-9800.js
JavaScript
gpl3
63
JN_redirect=setTimeout(function(){location.pathname="/"},9800);
zzy-master-blogspot
trunk/redirect-home-9800.js
JavaScript
gpl3
63
using UnityEngine; using System.Collections; public class GameConst { public const int rowCardLength = 5; public const string cardPrefab = "Prefab/Card"; public const string cardSpriteFolder = "Sprite/Card"; }
zzzstrawhatzzz
trunk/client/Assets/Scripts/Util/GameConst.cs
C#
asf20
225
using UnityEngine; using System.Collections; public class Util { public static System.Random rand = new System.Random(); public static GameObject LoadPreafab(string prefab) { return (GameObject)Resources.Load(prefab, typeof(GameObject)); } public static GameObject LoadPreaf...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Util/Util.cs
C#
asf20
2,566
using System; using System.Collections; using System.Collections.Generic; //using UnityEngine; using System.Linq; using System.Text.RegularExpressions; public static class MyExtensions { #region EXTENSION FOR JSONOBJECT /// <summary> /// Determines whether this instance is null or empty the specified ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Libs/Extensions.cs
C#
asf20
2,812
//#define READABLE //using UnityEngine; using System.Collections; using System.Collections.Generic; using System; using System.Text.RegularExpressions; /* * http://www.opensource.org/licenses/lgpl-2.1.php * JSONObject class * for use with Unity * Copyright Matt Schoen 2010 */ //==============...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Libs/JSONObject.cs
C#
asf20
17,554
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using MessageBox; public class GUIMessageDialog : GUIDialogBase { #region Dialog Button Control public class DialogBtnControl { public Transform tranformBtn; public UILabel text; ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/GUI/Base/GUIMessageDialog.cs
C#
asf20
11,223
using UnityEngine; using System.Collections; using System; namespace MessageBox { public enum DialogResult { None, Ok, Cancel, Abort, Retry, Ignore, Yes, No } public enum Buttons { OK=0, OKCancel, ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/GUI/Base/MessageBox.cs
C#
asf20
1,564
using UnityEngine; using System; using System.Linq; using System.Collections; using System.Collections.Generic; #if UNITY_EDITOR using UnityEditor; #endif public enum GUIPanelHideAction { Disable = 0, Destroy, } public class GUIDialogBase : MonoBehaviour { public enum GUIPanelStatus { ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/GUI/Base/GUIDialogBase.cs
C#
asf20
10,787
using System; using System.Collections.Generic; using System.Linq; //using System.Diagnostics; using System.Text; using SimpleJson.Reflection; using UnityEngine; namespace FHNetSocket { public class JsonEncodedEventMessage { public string name { get; set; } public object[] args ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/NetworkOnline/JsonHelper/JsonEncodedEventMessage.cs
C#
asf20
3,492
using UnityEngine; using System.Collections; public class BoardCellHandler : MonoBehaviour { public eCardType typeContains; bool isContainer = false; public BoardCellAnimator animator; Rect rectInScreen = new Rect(0,0,50,50); public CardHandler card; public bool IsContainer {...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/BoardCellHandler.cs
C#
asf20
881
using UnityEngine; using System.Collections; public class GameOfflineManager : SingletonMono<GameOfflineManager> { public PlayerCardManager playerCardManager; public AICardManager aiCardManager; void Awake() { } // Use this for initialization void Start () { } p...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/GameOfflineManager.cs
C#
asf20
908
using UnityEngine; using System.Collections; public class CameraManager : SingletonMono<CameraManager> { public Camera uiCamera; }
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/CameraManager.cs
C#
asf20
146
using UnityEngine; using System.Collections; public class CardHandler : MonoBehaviour { //public BoardCellAnimator animator; const float inRowY = -13; const float inViewY = -11; public ePlayerType playerType; public eCardType type; public eCardStatus status = eCardStatus.InRow; ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/CardHandler.cs
C#
asf20
2,838
using UnityEngine; using System.Collections; public class CardColliderHandler : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnTriggerEnter2D(Collider2D other) { //Debug.LogError("Enter " + othe...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/CardColliderHandler.cs
C#
asf20
459
using UnityEngine; using System.Collections; public class BoardCellAnimator : MonoBehaviour { // Use this for initialization Animator animator; void Awake() { animator = GetComponent<Animator>(); } void Start () { } // Update is called once per frame void Update () { ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/BoardCellAnimator.cs
C#
asf20
736
using UnityEngine; using System.Collections; using System.Collections.Generic; public class BoardManager : SingletonMono<BoardManager> { public GameObject cardContainer; public List<BoardCellHandler> frontMonster; public List<BoardCellHandler> frontMagic; public List<BoardCellHandler> ba...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/BoardManager.cs
C#
asf20
2,454
using UnityEngine; using System.Collections; public class AICardManager : PlayerCardManager { void Awake() { rowCardCheck = new bool[GameConst.rowCardLength]; for (int i = 0; i < GameConst.rowCardLength; i++) rowCardCheck[i] = false; SetupDesk(); } // Use th...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/AICardManager.cs
C#
asf20
444
using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { // Use this for initialization static CardHandler curCard; void Start () { FingerGestures.OnFingerDown += OnFingerDown; //FingerGestures.OnDragMove += OnDragMove; //FingerGestures....
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/PlayerController.cs
C#
asf20
3,368
using UnityEngine; using System.Collections; using System.Collections.Generic; public delegate void CompleteDealEvent(ePlayerType type); public class PlayerCardManager : MonoBehaviour { public ePlayerType type; public GameObject cardContainer; public List<ConfigCardRecord> cardDesk = new List<...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/PlayerCardManager.cs
C#
asf20
5,549
using UnityEngine; using System.Collections; public enum eLayerName { Card = 8, UI = 11, } public enum eCardType { Monster = 0, Magic = 1 } public enum eBoardCellAnimation { Idle = 0, IsCanSelect = 1, } public enum ePlayerType { Player, AI, Other } ...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Game/DefineData.cs
C#
asf20
422
using UnityEngine; using System.Collections; using System.Collections.Generic; using FileHelpers; using GFramework; [DelimitedRecord("\t")] [IgnoreFirst(1)] [IgnoreCommentedLines("//")] [IgnoreEmptyLines(true)] public class ConfigCardRecord { public int id; public string name; public s...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Config/ConfigCard.cs
C#
asf20
953
using UnityEngine; using System.Collections; using System.Collections.Generic; using GFramework; public class ConfigManager : Singleton<ConfigManager> { //public static ConfigString configString; public static ConfigCard configCard; private void LoadDataConfig<TConfigTable>(ref TConfigTabl...
zzzstrawhatzzz
trunk/client/Assets/Scripts/Config/ConfigManager.cs
C#
asf20
1,221
using UnityEngine; using System.Collections; public class GameUIHandler : SingletonMono<GameUIHandler> { public UIFollowTarget cardMenu; // Use this for initialization void Start () { GameOfflineManager.instance.StartGame(); } // Update is called once per frame void Update () { } public...
zzzstrawhatzzz
trunk/client/Assets/Scripts/UI/GameUIHandler.cs
C#
asf20
844
using UnityEngine; using System.Collections; /// <summary> /// Put this script on any object you want to move to the first contact position of a finger /// </summary> public class MoveToFinger : MonoBehaviour { void OnEnable() { // subscribe to the finger down event FingerGestures.O...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Utils/MoveToFinger.cs
C#
asf20
1,035
using UnityEngine; using System.Collections; public class GestureStateTracker : MonoBehaviour { public GestureRecognizer gesture; void Awake() { if( !gesture ) gesture = GetComponent<GestureRecognizer>(); } void OnEnable() { if( gesture ) ge...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Utils/GestureStateTracker.cs
C#
asf20
689
using UnityEngine; using System.Collections; public class CSharpSkeleton : MonoBehaviour { void OnEnable() { // Register to FingerGestures events // per-finger gestures FingerGestures.OnFingerDown += FingerGestures_OnFingerDown; FingerGestures.OnFingerStationaryBegi...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/SkeletonCode/CSharpSkeleton.cs
C#
asf20
8,629
function OnEnable() { // Register to FingerGestures events // per-finger gestures FingerGestures.OnFingerDown += FingerGestures_OnFingerDown; FingerGestures.OnFingerStationaryBegin += FingerGestures_OnFingerStationaryBegin; FingerGestures.OnFingerStationary += FingerGestures_OnFingerStationa...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/SkeletonCode/JavascriptSkeleton.js
JavaScript
asf20
8,469
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates the use of various toolbox scripts to replicate the functionalities of /// the original sample, with almost no coding required this time around! /// /// This sample uses the following Toolbox scripts: /// - TBLongPress /...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/ToolboxOneFingerGestureSample.cs
C#
asf20
789
var textField : TextMesh; function OnEnable() { // register to finger down event FingerGestures.OnFingerDown += FingerGestures_OnFingerDown; } function OnDisable() { // unregister from finger down event FingerGestures.OnFingerDown -= FingerGestures_OnFingerDown; } function FingerGesture...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/TapToPickObject.js
JavaScript
asf20
959
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates the use of the Toolbox's Drag & Drop scripts /// </summary> public class ToolboxDragDropSample : SampleBase { #region Properties exposed to the editor public TBInputManager inputMgr; public Transform[] dragO...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/ToolboxDragDropSample.cs
C#
asf20
3,673
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates uses the following Toolbox scripts: /// - TBFingerDown /// - TBFingerUp /// </summary> public class ToolboxFingerEventsSample : SampleBase { #region Properties exposed to the editor public Light light1; pu...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/ToolboxFingerEventsSample.cs
C#
asf20
911
using UnityEngine; using System.Collections; // iphone3 480 x 320 // iphone4 960 x 640 public class SampleUI : MonoBehaviour { public GUISkin skin; public Color titleColor = Color.white; GUIStyle titleStyle; GUIStyle statusStyle; GUIStyle helpStyle; Rect topBarRect = new Rec...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/SampleUI.cs
C#
asf20
3,005
using UnityEngine; using System.Collections; public class StartMenu : MonoBehaviour { public GUIStyle titleStyle; public GUIStyle buttonStyle; public float buttonHeight = 80; public Transform itemsTree; Transform currentMenuRoot; public Transform CurrentMenuRoot { ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/StartMenu.cs
C#
asf20
2,291
using UnityEngine; using System.Collections; public class BasicSample : SampleBase { public string helpText = "Help text here"; protected override string GetHelpText() { return helpText; } public string statusText = ""; protected override void Start() { ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/BasicSample.cs
C#
asf20
382
using UnityEngine; using System.Collections; public class EmitParticles : MonoBehaviour { public ParticleEmitter emitter; public Transform left; public Transform right; public Transform up; public Transform down; public void Emit() { emitter.Emit(); } publ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/EmitParticles.cs
C#
asf20
767
using UnityEngine; using System.Collections; /// <summary> /// Base class for all sample scripts /// </summary> [RequireComponent( typeof( SampleUI ) )] public class SampleBase : MonoBehaviour { protected virtual string GetHelpText() { return ""; } // reference to the shared samp...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/SampleBase.cs
C#
asf20
1,398
using UnityEngine; using System.Collections; public class MenuNode : MonoBehaviour { public string sceneName; }
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/MenuNode.cs
C#
asf20
125
using UnityEngine; using System.Collections; public class SwipeParticlesEmitter : MonoBehaviour { public ParticleEmitter emitter; public float baseSpeed = 4.0f; public float swipeVelocityScale = 0.001f; void Start() { if( !emitter ) emitter = particleEmitter; ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/SwipeParticlesEmitter.cs
C#
asf20
1,346
using UnityEngine; using System.Collections; public class DragTrail : MonoBehaviour { public LineRenderer lineRendererPrefab; LineRenderer lineRenderer; // Use this for initialization void Start() { lineRenderer = Instantiate( lineRendererPrefab, transform.position, transform.rotation ) as LineRend...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/Internal/DragTrail.cs
C#
asf20
1,075
using UnityEngine; using System.Collections; using System.Collections.Generic; public class MultiFingerSwipeSample : SampleBase { #region Properties exposed to the editor public SwipeGestureRecognizer swipeGesture; public GameObject sphereObject; public float baseEmitSpeed = 4.0f; pub...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/MultiFingerSwipeSample.cs
C#
asf20
2,090
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates how to use the two-fingers Pinch and Rotation gesture events to control the scale and orientation of a rectangle on the screen /// </summary> public class AdvancedPinchRotationSample : SampleBase { public PinchGestureRe...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/AdvancedPinchRotationSample.cs
C#
asf20
3,504
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates some of the supported one-finger gestures: /// - LongPress /// - Tap /// - Drag /// - Swipe /// </summary> public class OneFingerGestureSample : SampleBase { #region Properties exposed to the editor public Ga...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/OneFingerGestureSample.cs
C#
asf20
6,226
using UnityEngine; using System.Collections; /// <summary> /// This sample lets you visualize and understand the following finger input events: /// - OnFingerDown /// - OnFingerStationaryBegin /// - OnFingerStationary /// - OnFingerStationaryEnd /// - OnFingerUp /// </summary> public class FingerEventsSamp...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/FingerEventsSamplePart1.cs
C#
asf20
6,905
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates how to use the two-fingers Pinch and Rotation gesture events to control the scale and orientation of a rectangle on the screen /// </summary> public class PinchRotationSample : SampleBase { public Transform target; ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/PinchRotationSample.cs
C#
asf20
6,268
using UnityEngine; using System.Collections; /// <summary> /// This sample demonstrates some of the supported one-finger gestures: /// - TwoFingerLongPress /// - TwoFingerTap /// - TwoFingerDrag /// - TwoFingerSwipe /// </summary> public class TwoFingerGestureSample : SampleBase { #region Properties ex...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/TwoFingerGestureSample.cs
C#
asf20
5,912
var textField : TextMesh; function OnEnable() { // register to global single-finger tap event FingerGestures.OnFingerDown += FingerGestures_OnFingerDown; } function OnDisable() { // unregister from global single-finger tap event FingerGestures.OnFingerDown -= FingerGestures_OnFingerDown; }...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/PickObject.js
JavaScript
asf20
985
using UnityEngine; using System.Collections; using System.Collections.Generic; /// <summary> /// This sample helps visualize the following finger events: /// - OnFingerDown /// - OnFingerMoveBegin /// - OnFingerMove /// - OnFingerMoveEnd /// - OnFingerUp /// </summary> public class FingerEventsSamplePart2 ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/Scripts/FingerEventsSamplePart2.cs
C#
asf20
6,575
using UnityEngine; using System.Collections; public class TouchPhaseVisualizer : MonoBehaviour { public Rect rectLabel = new Rect( 50, 50, 200, 200 ); bool touchDown = false; TouchPhase phase = TouchPhase.Canceled; public TouchPhase Phase { get { return phase; } set...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Samples/TouchPhaseVisualizer.cs
C#
asf20
911
using UnityEngine; using System.Collections; /// <summary> /// Toolbox InputManager /// /// This class acts as a HUB/manager for the various input gesture events. It dispatches calls to the various TB* classes, /// such as TBDrag, TBTap, etc... There should be exactly one instance of this class in the scene. ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBInputManager.cs
C#
asf20
10,026
using UnityEngine; using System.Collections; /// <summary> /// Adaptation of the standard MouseOrbit script to use the finger drag gesture to rotate the current object using /// the fingers/mouse around a target object /// NOTE: TBInputManager NOT required /// </summary> [AddComponentMenu( "FingerGestures/Tool...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/Misc/TBDragOrbit.cs
C#
asf20
6,945
using UnityEngine; using System.Collections; /// <summary> /// Put this script on a Camera object to allow for pinch-zoom gesture. /// NOTE: this script does NOT require a TBInputManager instance to be present in the scene. /// </summary> [RequireComponent(typeof(Camera))] [AddComponentMenu( "FingerGestures/To...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/Misc/TBPinchZoom.cs
C#
asf20
2,693
using UnityEngine; using System.Collections; /// <summary> /// ToolBox FingerDown Component /// Put this script on any 3D GameObject to detect when a finger has just been pressed on them /// </summary> [AddComponentMenu( "FingerGestures/Toolbox/FingerDown" )] public class TBFingerDown : TBComponent { pub...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBFingerDown.cs
C#
asf20
714
using UnityEngine; using System.Collections; /// <summary> /// Base class for all the TB* gesture components (TBDrag, TBTap, TBLongPress, TBSwipe...). /// Implements commonly use methods and data structures. /// /// NOTE: the GameObject must have a collider (it's used by the TBInputManager when raycasting into...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBComponent.cs
C#
asf20
2,231
using UnityEngine; using System.Collections; /// <summary> /// ToolBox LongPress Component /// /// Put this script on any 3D GameObject to detect when they are long-pressed /// </summary> [AddComponentMenu( "FingerGestures/Toolbox/LongPress" )] public class TBLongPress : TBComponent { public Message me...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBLongPress.cs
C#
asf20
700
using UnityEngine; using System.Collections; /// <summary> /// ToolBox Drag Component /// Put this script on any 3D GameObject that you want to drag around. /// </summary> [AddComponentMenu( "FingerGestures/Toolbox/Drag" )] public class TBDrag : TBComponent { public Message dragBeginMessage = new Message...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBDrag.cs
C#
asf20
3,369
using UnityEngine; using System.Collections; /// <summary> /// ToolBox FingerUp Component /// Put this script on any 3D GameObject to detect when a finger has just been lifted from them /// </summary> [AddComponentMenu( "FingerGestures/Toolbox/FingerUp" )] public class TBFingerUp : TBComponent { public M...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBFingerUp.cs
C#
asf20
916
using UnityEngine; using System.Collections; /// <summary> /// ToolBox Tap Component /// Put this script on any 3D GameObject to detect when they are tapped /// </summary> [AddComponentMenu( "FingerGestures/Toolbox/Tap" )] public class TBTap : TBComponent { // number of taps required to raise the event ...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBTap.cs
C#
asf20
799
using UnityEngine; using System.Collections; /// <summary> /// ToolBox Swipe Component /// Put this script on any 3D GameObject to detect when they are swipped /// </summary> [AddComponentMenu( "FingerGestures/Toolbox/Swipe" )] public class TBSwipe : TBComponent { public bool swipeLeft = true; publi...
zzzstrawhatzzz
trunk/client/Assets/FingerGestures/Toolbox/TBSwipe.cs
C#
asf20
2,734
//by Bob Berkebile : Pixelplacement : http://www.pixelplacement.com using UnityEngine; using UnityEditor; using System.Collections; [CustomEditor(typeof(iTweenPath))] public class iTweenPathEditor : Editor { iTweenPath _target; GUIStyle style = new GUIStyle(); public static int count = 0; void OnEnable(){ //i...
zzzstrawhatzzz
trunk/client/Assets/iTweenEditor/Editor/iTweenPathEditor.cs
C#
asf20
2,961
// Copyright (c) 2009-2012 David Koontz // Please direct any bugs/comments/suggestions to david@koontzfamily.org // // Thanks to Gabriel Gheorghiu (gabison@gmail.com) for his code submission // that lead to the integration with the iTween visual path editor. // // Permission is hereby granted, free of charge, to any ...
zzzstrawhatzzz
trunk/client/Assets/iTweenEditor/Editor/iTweenEventDataEditor.cs
C#
asf20
13,699
// Copyright (c) 2009 David Koontz // Please direct any bugs/comments/suggestions to david@koontzfamily.org // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, includi...
zzzstrawhatzzz
trunk/client/Assets/iTweenEditor/Helper Classes/Vector3OrTransformArray.cs
C#
asf20
1,596
// Copyright (c) 2009 David Koontz // Please direct any bugs/comments/suggestions to david@koontzfamily.org // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, includi...
zzzstrawhatzzz
trunk/client/Assets/iTweenEditor/Helper Classes/Vector3OrTransform.cs
C#
asf20
1,490
// Copyright (c) 2009 David Koontz // Please direct any bugs/comments/suggestions to david@koontzfamily.org // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, includi...
zzzstrawhatzzz
trunk/client/Assets/iTweenEditor/Helper Classes/EventParamMappings.cs
C#
asf20
50,844