public TestPop4() { m_popId = POP_ID.TEST_POP_4; m_layerIdx = POP_LAYER_IDX.LAYER_POP_1; ShowGameObject(); // m_btnOk = GetChildByName <KButton>("Button_Ok", true); m_btnClose = GetChildByName <KButton>("Button_Close", true); m_panel = GameObjUtil.GetParent(m_btnOk.gameObject); // m_inputName = GetChildByName <KInputField>("Input_name", true); m_labelTestInput = GetChildByName <KText>("Label_testInput", true); // m_tgl_1 = GetChildByName <KToggle>("Toggle_position1", true); m_labelTgl_1 = GetChildByName <KText>(m_tgl_1.gameObject, "Label_Text", true); m_tglGroup_1 = GetChildByName <KToggleGroup>("ToggleGroup_a1", true); // m_sliderSchedule = GetChildByName <KSlider>("Slider_Schedule1", true); m_labelSchedule = GetChildByName <KText>("Label_testSilder", true); // m_barLoading = GetChildByName <KProgressBar>("ProgressBar_loading", true); // m_icon = GetChildByName <KImage>("Image_sharedAnchor", true); // m_scrollView = GetChildByName <KScrollView>("ScrollView_GuildList", true); m_listView = ComponentUtil.EnsureComponent <KListViewScroll>(m_scrollView.gameObject); }
public TestKUIPop3() { m_popId = POP_ID.TEST_KUI_3; m_layerIdx = POP_LAYER_IDX.LAYER_POP_1; ShowGameObject(); m_toggle1 = GetChildByName <KToggle>("Toggle_position1", true); m_toggle1.needReqChange = true; m_toggleGroup1 = GetChildByName <KToggleGroup>("ToggleGroup_1", true); //m_toggleGroup1.allowMultiple = true; //m_toggleGroup1.needReqChange = true; //m_toggleGroup1.allowSwitchOff = true; m_inputName = GetChildByName <KInputField>("Input_name", true); m_buttonAnnounce = GetChildByName <KButton>("Button_SystemAnnounce", true); m_buttonClose = GetChildByName <KButton>("Button_Close", true); m_barExp = GetChildByName <KProgressBar>("ProgressBar_EXP", true); m_sliderSchedule1 = GetChildByName <KSlider>("Slider_Schedule1", true); m_icon1 = GetChildByName <KImage>("Image_Icon1", true); m_scrollViewItemList = GetChildByName <KScrollView>("ScrollView_ItemList", true); }
public LoadingView1() { m_popId = POP_ID.LOADING_1; m_layerIdx = POP_LAYER_IDX.LAYER_LOADING; m_lifeType = POP_LIFE.FOREVER; ShowGameObject(); m_barLoading = GetChildByName <KProgressBar>("ProgressBar_Load", true); m_barLoading.value = 0; m_txtPercent = GetChildByName <KText>("Label_Percent", true); m_txtTips = GetChildByName <KText>("Label_Tips", true); }
public override void ApplyGameObjectParam(GameObject go, JsonData data) { base.ApplyGameObjectParam(go, data); KProgressBar bar = go.AddComponent <KProgressBar>(); bar.AddChildComponent <StateImage>("Image_bar"); //因为不会统一加了, 所以这里要单独加 //if (HasParam(data, PATTERN_RIGHT2LEFT) == true) //{ // AddBuildHelper(go, PARAM_RIGHT2LEFT); //} }
protected override void AddComponent(GameObject go) { KProgressBar bar = go.AddComponent <KProgressBar>(); bar.AddChildComponent <StateImage>("Image_bar"); //因为不会统一加了, 所以这里要单独加 }