Inheritance: MonoBehaviour
Ejemplo n.º 1
0
	/// <summary>
	/// Check to see if the specified key happens to be bound to some element.
	/// </summary>

	static public bool IsBound (KeyCode key)
	{
		for (int i = 0, imax = mList.Count; i < imax; ++i)
		{
			UIKeyBinding kb = mList[i];
			if (kb != null && kb.keyCode == key) return true;
		}
		return false;
	}
Ejemplo n.º 2
0
 static public int get_action(IntPtr l)
 {
     try {
         UIKeyBinding self = (UIKeyBinding)checkSelf(l);
         pushValue(l, true);
         pushEnum(l, (int)self.action);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 3
0
 static public int get_captionText(IntPtr l)
 {
     try {
         UIKeyBinding self = (UIKeyBinding)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.captionText);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 4
0
 static public int set_keyCode(IntPtr l)
 {
     try {
         UIKeyBinding        self = (UIKeyBinding)checkSelf(l);
         UnityEngine.KeyCode v;
         checkEnum(l, 2, out v);
         self.keyCode = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 5
0
 static public int IsBound_s(IntPtr l)
 {
     try {
         UnityEngine.KeyCode a1;
         checkEnum(l, 1, out a1);
         var ret = UIKeyBinding.IsBound(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 6
0
 static public int set_action(IntPtr l)
 {
     try {
         UIKeyBinding        self = (UIKeyBinding)checkSelf(l);
         UIKeyBinding.Action v;
         checkEnum(l, 2, out v);
         self.action = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 7
0
    public static bool IsBound(KeyCode key)
    {
        //IL_002b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0030: Unknown result type (might be due to invalid IL or missing references)
        int i = 0;

        for (int count = mList.Count; i < count; i++)
        {
            UIKeyBinding uIKeyBinding = mList[i];
            if (uIKeyBinding != null && uIKeyBinding.keyCode == key)
            {
                return(true);
            }
        }
        return(false);
    }
Ejemplo n.º 8
0
    public static Boolean IsBound(KeyCode key)
    {
        Int32 i     = 0;
        Int32 count = UIKeyBinding.mList.Count;

        while (i < count)
        {
            UIKeyBinding uikeyBinding = UIKeyBinding.mList[i];
            if (uikeyBinding != (UnityEngine.Object)null && uikeyBinding.keyCode == key)
            {
                return(true);
            }
            i++;
        }
        return(false);
    }
Ejemplo n.º 9
0
    // Token: 0x0600022B RID: 555 RVA: 0x000184C0 File Offset: 0x000166C0
    public static bool IsBound(KeyCode key)
    {
        int i     = 0;
        int count = UIKeyBinding.list.Count;

        while (i < count)
        {
            UIKeyBinding uikeyBinding = UIKeyBinding.list[i];
            if (uikeyBinding != null && uikeyBinding.keyCode == key)
            {
                return(true);
            }
            i++;
        }
        return(false);
    }
Ejemplo n.º 10
0
    public static int get_action(IntPtr l)
    {
        int result;

        try
        {
            UIKeyBinding uIKeyBinding = (UIKeyBinding)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)uIKeyBinding.action);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 11
0
 static public int GetKeyCode_s(IntPtr l)
 {
     try {
         System.String a1;
         checkType(l, 1, out a1);
         UnityEngine.KeyCode   a2;
         UIKeyBinding.Modifier a3;
         var ret = UIKeyBinding.GetKeyCode(a1, out a2, out a3);
         pushValue(l, true);
         pushValue(l, ret);
         pushValue(l, a2);
         pushValue(l, a3);
         return(4);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 12
0
    public static int set_action(IntPtr l)
    {
        int result;

        try
        {
            UIKeyBinding        uIKeyBinding = (UIKeyBinding)LuaObject.checkSelf(l);
            UIKeyBinding.Action action;
            LuaObject.checkEnum <UIKeyBinding.Action>(l, 2, out action);
            uIKeyBinding.action = action;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 13
0
    public static int set_keyCode(IntPtr l)
    {
        int result;

        try
        {
            UIKeyBinding uIKeyBinding = (UIKeyBinding)LuaObject.checkSelf(l);
            KeyCode      keyCode;
            LuaObject.checkEnum <KeyCode>(l, 2, out keyCode);
            uIKeyBinding.keyCode = keyCode;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 14
0
    public static int set_modifier(IntPtr l)
    {
        int result;

        try
        {
            UIKeyBinding          uIKeyBinding = (UIKeyBinding)LuaObject.checkSelf(l);
            UIKeyBinding.Modifier modifier;
            LuaObject.checkEnum <UIKeyBinding.Modifier>(l, 2, out modifier);
            uIKeyBinding.modifier = modifier;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 15
0
 // Token: 0x06000231 RID: 561 RVA: 0x000185CD File Offset: 0x000167CD
 protected virtual bool IsModifierActive()
 {
     return(UIKeyBinding.IsModifierActive(this.modifier));
 }
Ejemplo n.º 16
0
 // Token: 0x06000236 RID: 566 RVA: 0x0001882C File Offset: 0x00016A2C
 public override string ToString()
 {
     return(UIKeyBinding.GetString(this.keyCode, this.modifier));
 }
Ejemplo n.º 17
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(UIKeyBinding.IsBound((KeyCode)(*(int *)args))));
 }