@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+namespace UI.Login
+{
+ public partial class UI_ComboBox1_popup
+ {
+ public GComponent target;
+ public GList m_list;
+ public const string URL = "ui://myoktu7pmfq35s";
+ public const string PACKAGE_NAME = "Login";
+ public const string RES_NAME = "ComboBox1_popup";
+ private static UI_ComboBox1_popup _proxy;
+ public static UI_ComboBox1_popup Create(GObject gObject = null)
+ var ui = new UI_ComboBox1_popup();
+ if(gObject == null)
+ ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+ else
+ ui.target = (GComponent)gObject;
+ ui.Init(ui.target);
+ return ui;
+ }
+ public static UI_ComboBox1_popup Proxy(GObject gObject = null)
+ if(_proxy == null)
+ _proxy = new UI_ComboBox1_popup();
+ var ui = _proxy;
+ public static void ProxyEnd()
+ if (_proxy != null)
+ _proxy.Dispose();
+ public static void ClearProxy()
+ ProxyEnd();
+ _proxy = null;
+ private void Init(GComponent comp)
+ m_list = (GList)comp.GetChild("list");
+ public void Dispose(bool disposeTarget = false)
+ m_list = null;
+ if(disposeTarget && target != null)
+ target.RemoveFromParent();
+ target.Dispose();
+ target = null;
+}
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: ba9f765a6053bdd4e917264dfeb7a8e4
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
@@ -13,6 +13,7 @@ namespace UI.Login
public GTextInput m_inputPassword;
public GButton m_btnCancel;
public GButton m_btnSure;
+ public GComboBox m_boxChooseCanal;
public const string URL = "ui://myoktu7pq08xc";
public const string PACKAGE_NAME = "Login";
public const string RES_NAME = "LoginInputUI";
@@ -66,6 +67,7 @@ namespace UI.Login
m_inputPassword = (GTextInput)comp.GetChild("inputPassword");
m_btnCancel = (GButton)comp.GetChild("btnCancel");
m_btnSure = (GButton)comp.GetChild("btnSure");
+ m_boxChooseCanal = (GComboBox)comp.GetChild("boxChooseCanal");
}
public void Dispose(bool disposeTarget = false)
{
@@ -75,6 +77,7 @@ namespace UI.Login
m_inputPassword = null;
m_btnCancel = null;
m_btnSure = null;
+ m_boxChooseCanal = null;
if(disposeTarget && target != null)
target.RemoveFromParent();
@@ -46,6 +46,9 @@ namespace GFGGame
_ui.m_inputAccount.text = account;
+ _ui.m_boxChooseCanal.items = new string[] { "TapTap" , "好游快爆", "Bilibil", "华为", "UC九游(阿里游戏)", "小米", "VIVO", "OPPO", "4399", "联想", "应用宝", "酷派", "魅族", "雷电游戏", "QuickGame_安卓", "WAN665", "AppStore", "抖音", "测试"};
+ _ui.m_boxChooseCanal.onChanged.Add(onChangedCanal);
protected override void OnHide()
@@ -53,7 +56,6 @@ namespace GFGGame
base.OnHide();
-
protected override void AddEventListener()
base.AddEventListener();
@@ -67,6 +69,12 @@ namespace GFGGame
EventAgent.RemoveEventListener(ConstMessage.LOGIN_FAIL, OnLoginFail);
+ private void onChangedCanal()
+ ET.Log.Debug("打印测试======选择的渠道==========" + (_ui.m_boxChooseCanal.selectedIndex + 1));
private void OnClickBtnSure()
var account = _ui.m_inputAccount.text;