UpdateLabel() public method

Update the visual text label.
public UpdateLabel ( ) : void
return void
Exemplo n.º 1
0
    public void SetUIInput(GameObject to, string newText)
    {
        UIInput input = to.transform.GetComponent <UIInput>();

        input.value = newText;
        input.UpdateLabel();
    }
Exemplo n.º 2
0
    static int UpdateLabel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIInput obj = (UIInput)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIInput");

        obj.UpdateLabel();
        return(0);
    }
Exemplo n.º 3
0
 static public int UpdateLabel(IntPtr l)
 {
     try {
         UIInput self = (UIInput)checkSelf(l);
         self.UpdateLabel();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
 static int UpdateLabel(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIInput obj = (UIInput)ToLua.CheckObject(L, 1, typeof(UIInput));
         obj.UpdateLabel();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 5
0
    public static int UpdateLabel(IntPtr l)
    {
        int result;

        try
        {
            UIInput uIInput = (UIInput)LuaObject.checkSelf(l);
            uIInput.UpdateLabel();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 6
0
    private static int UpdateLabel(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            UIInput uIInput = (UIInput)ToLua.CheckObject(L, 1, typeof(UIInput));
            uIInput.UpdateLabel();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
Exemplo n.º 7
0
        static int _m_UpdateLabel(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UIInput __cl_gen_to_be_invoked = (UIInput)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.UpdateLabel(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 8
0
 public override void buttonEventBase(GameObject gameObj)
 {
     base.buttonEventBase(gameObj);
     if (gameObj.name == "buttonSure")
     {
         if (Utils.EncodeToValid(input.value))
         {
             UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("roleNameWindow_Validname"));
             return;
         }
         else if (getLength(input.value) <= 0)
         {
             UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("s0438"));
             return;
         }
         if (getLength(input.value) > 12)
         {
             UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("s0278"));
             return;
         }
         if (ShieldManagerment.Instance.isContainShield(input.value))
         {
             UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("s0279"));
             return;
         }
         roleRename(input.value);
     }
     else if (gameObj.name == "buttonCancel")
     {
         this.finishWindow();
     }
     else if (gameObj.name == "randomButton")
     {
         string newName = RandomNameManagerment.Instance.getRandomName(isMan);
         input.value = newName;
         input.UpdateLabel();
         MaskWindow.UnlockUI();
     }
 }
Exemplo n.º 9
0
 public static void UpdateInputLabel(this UIInput pInput, UIInput.InputType eInputType)
 {
     pInput.inputType = eInputType;
     pInput.UpdateLabel();
 }