static int SetCurrentSelection(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); UILabel obj = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel"); obj.SetCurrentSelection(); return(0); }
static public int SetCurrentSelection(IntPtr l) { try { UILabel self = (UILabel)checkSelf(l); self.SetCurrentSelection(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int SetCurrentSelection(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UILabel obj = (UILabel)ToLua.CheckObject<UILabel>(L, 1); obj.SetCurrentSelection(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } }
public static int SetCurrentSelection(IntPtr l) { int result; try { UILabel uILabel = (UILabel)LuaObject.checkSelf(l); uILabel.SetCurrentSelection(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
private void EventFilterBet() { betFilterLabel.SetCurrentSelection(); string crtSelect = UIPopupList.current.value; Debug.Log("EventFilterBet " + crtSelect); if (crtSelect == crtBetFilter) { return; } crtBetFilter = crtSelect; switch (crtSelect) { case "Bet_Filter_All": InitScrollViewData(); break; case "Bet_Filter_under_50k": filteredRoomList = new JSONArray(); for (int i = 0; i < roomList.Length; i++) { if (roomList[i].Obj.GetInt("minBet") <= 50000) { filteredRoomList.Add(roomList[i].Obj); } } InitScrollViewData(true); break; case "Bet_Filter_over_100k": filteredRoomList = new JSONArray(); for (int i = 0; i < roomList.Length; i++) { if (roomList[i].Obj.GetInt("minBet") >= 100000) { filteredRoomList.Add(roomList[i].Obj); } } InitScrollViewData(true); break; case "Bet_Filter_over_500k": filteredRoomList = new JSONArray(); for (int i = 0; i < roomList.Length; i++) { if (roomList[i].Obj.GetInt("minBet") >= 500000) { filteredRoomList.Add(roomList[i].Obj); } } InitScrollViewData(true); break; case "Bet_Filter_over_1m": filteredRoomList = new JSONArray(); for (int i = 0; i < roomList.Length; i++) { if (roomList[i].Obj.GetInt("minBet") >= 1000000) { filteredRoomList.Add(roomList[i].Obj); } } InitScrollViewData(true); break; } scrollview.panel.alpha = 0.1f; TweenAlpha tween = TweenAlpha.Begin(scrollview.gameObject, 0.8f, 1.0f); }