Beispiel #1
0
    static int RemoveItem(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIPopupList obj  = (UIPopupList)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIPopupList");
        string      arg0 = LuaScriptMgr.GetLuaString(L, 2);

        obj.RemoveItem(arg0);
        return(0);
    }
Beispiel #2
0
 static public int RemoveItem(IntPtr l)
 {
     try {
         UIPopupList   self = (UIPopupList)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         self.RemoveItem(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #3
0
    void onClearPsw()
    {
        string PswString = File.ReadAllText("config/passwords.conf");

        string[] lines = PswString.Replace("\r", "").Split("\n");
        for (int i = 0; i < lines.Length; i++)
        {
            list.RemoveItem(lines[i]);                                                                        //清空list
        }
        FileStream stream = new FileStream("config/passwords.conf", FileMode.Truncate, FileAccess.ReadWrite); //清空文件内容

        stream.Close();
        inputPsw.value = "";
        Program.PrintToChat(InterString.Get("房间密码已清空"));
    }
Beispiel #4
0
 static int RemoveItem(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIPopupList obj  = (UIPopupList)ToLua.CheckObject(L, 1, typeof(UIPopupList));
         string      arg0 = ToLua.CheckString(L, 2);
         obj.RemoveItem(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    private static int RemoveItem(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            UIPopupList uIPopupList = (UIPopupList)ToLua.CheckObject(L, 1, typeof(UIPopupList));
            string      text        = ToLua.CheckString(L, 2);
            uIPopupList.RemoveItem(text);
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
Beispiel #6
0
 public void removeItem(string item)
 {
     mPopupList.RemoveItem(item);
 }
Beispiel #7
0
 public override void RemoveItem(string item)
 {
     PopupLIist.RemoveItem(item);
 }