新增小额奖励
This commit is contained in:
@@ -13,7 +13,7 @@ namespace FGUI.Common_01
|
||||
public Transition t1;
|
||||
public Transition t2;
|
||||
public Transition t3;
|
||||
public const string URL = "ui://jq2t9glprdgq9b";
|
||||
public const string URL = "ui://o9974uc5rdgq9b";
|
||||
|
||||
public static broadcast_top CreateInstance()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace FGUI.Common_01
|
||||
{
|
||||
public GTextField text_1;
|
||||
public Transition t0;
|
||||
public const string URL = "ui://jq2t9glprdgq9c";
|
||||
public const string URL = "ui://o9974uc5rdgq9c";
|
||||
|
||||
public static broadcast_topitem CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_boxreward : GButton
|
||||
{
|
||||
public Transition t0;
|
||||
public const string URL = "ui://jq2t9glptil24j";
|
||||
public const string URL = "ui://o9974uc5til24j";
|
||||
|
||||
public static btn_boxreward CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_buy1 : GButton
|
||||
{
|
||||
public GTextField text_gold;
|
||||
public const string URL = "ui://jq2t9glpirrg1e";
|
||||
public const string URL = "ui://o9974uc5irrg1e";
|
||||
|
||||
public static btn_buy1 CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_card : GButton
|
||||
{
|
||||
public GImage red;
|
||||
public const string URL = "ui://jq2t9glpy1du2p";
|
||||
public const string URL = "ui://o9974uc5y1du2p";
|
||||
|
||||
public static btn_card CreateInstance()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FGUI.Common_01
|
||||
public Controller state;
|
||||
public GImage ad_icon;
|
||||
public GImage img_saveingpot;
|
||||
public const string URL = "ui://jq2t9glpsebxc";
|
||||
public const string URL = "ui://o9974uc5sebxc";
|
||||
|
||||
public static btn_claim CreateInstance()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FGUI.Common_01
|
||||
public Controller state;
|
||||
public GImage ad_icon;
|
||||
public GImage img_saveingpot;
|
||||
public const string URL = "ui://jq2t9glppeww38";
|
||||
public const string URL = "ui://o9974uc5peww38";
|
||||
|
||||
public static btn_claim3 CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_curr : GButton
|
||||
{
|
||||
public GTextField text_value;
|
||||
public const string URL = "ui://jq2t9glpopwgc";
|
||||
public const string URL = "ui://o9974uc5opwgc";
|
||||
|
||||
public static btn_curr CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_failpack : GButton
|
||||
{
|
||||
public GTextField lab_time;
|
||||
public const string URL = "ui://jq2t9glpy1du2q";
|
||||
public const string URL = "ui://o9974uc5y1du2q";
|
||||
|
||||
public static btn_failpack CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_faq : GButton
|
||||
{
|
||||
public GTextField lab_time;
|
||||
public const string URL = "ui://jq2t9glpiec4aw";
|
||||
public const string URL = "ui://o9974uc5iec4aw";
|
||||
|
||||
public static btn_faq CreateInstance()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace FGUI.Common_01
|
||||
{
|
||||
public Controller state;
|
||||
public GImage img_saveingpot;
|
||||
public const string URL = "ui://jq2t9glpcphly";
|
||||
public const string URL = "ui://o9974uc5cphly";
|
||||
|
||||
public static btn_get CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_head : GButton
|
||||
{
|
||||
public GLoader load_avatar;
|
||||
public const string URL = "ui://jq2t9glpopwgh";
|
||||
public const string URL = "ui://o9974uc5opwgh";
|
||||
|
||||
public static btn_head CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_luck_gift : GButton
|
||||
{
|
||||
public GImage red;
|
||||
public const string URL = "ui://jq2t9glpybesal";
|
||||
public const string URL = "ui://o9974uc5ybesal";
|
||||
|
||||
public static btn_luck_gift CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_max_buy : GButton
|
||||
{
|
||||
public GImage img_saveingpot;
|
||||
public const string URL = "ui://jq2t9glpnrk720";
|
||||
public const string URL = "ui://o9974uc5nrk720";
|
||||
|
||||
public static btn_max_buy CreateInstance()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace FGUI.Common_01
|
||||
public GImage img_pack;
|
||||
public Transition t0;
|
||||
public Transition t1;
|
||||
public const string URL = "ui://jq2t9glpcou6ba";
|
||||
public const string URL = "ui://o9974uc5cou6ba";
|
||||
|
||||
public static btn_noads CreateInstance()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FGUI.Common_01
|
||||
public GImage red;
|
||||
public com_add_points add_points;
|
||||
public Transition t0;
|
||||
public const string URL = "ui://jq2t9glpiwfgb0";
|
||||
public const string URL = "ui://o9974uc5iwfgb0";
|
||||
|
||||
public static btn_rank CreateInstance()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace FGUI.Common_01
|
||||
{
|
||||
public GImage img;
|
||||
public GTextField lab_time;
|
||||
public const string URL = "ui://jq2t9glprj3b4h";
|
||||
public const string URL = "ui://o9974uc5rj3b4h";
|
||||
|
||||
public static btn_saveingpot CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_task : GButton
|
||||
{
|
||||
public GImage red;
|
||||
public const string URL = "ui://jq2t9glpfhzacg";
|
||||
public const string URL = "ui://o9974uc5fhzacg";
|
||||
|
||||
public static btn_task CreateInstance()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FGUI.Common_01
|
||||
public GImage red;
|
||||
public GProgressBar pass_pro;
|
||||
public GTextField number_text;
|
||||
public const string URL = "ui://jq2t9glp9eojh";
|
||||
public const string URL = "ui://o9974uc59eojh";
|
||||
|
||||
public static btn_task_pass CreateInstance()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace FGUI.Common_01
|
||||
{
|
||||
public GImage red;
|
||||
public GTextField lab_time;
|
||||
public const string URL = "ui://jq2t9glpy1du2o";
|
||||
public const string URL = "ui://o9974uc5y1du2o";
|
||||
|
||||
public static btn_threeday CreateInstance()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace FGUI.Common_01
|
||||
public GTextField watch;
|
||||
public GImage ad_icon;
|
||||
public GImage img_saveingpot;
|
||||
public const string URL = "ui://jq2t9glpb7ax1h";
|
||||
public const string URL = "ui://o9974uc5b7ax1h";
|
||||
|
||||
public static btn_watchAd CreateInstance()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace FGUI.Common_01
|
||||
public partial class btn_yellow : GButton
|
||||
{
|
||||
public GImage img_saveingpot;
|
||||
public const string URL = "ui://jq2t9glpsebx9";
|
||||
public const string URL = "ui://o9974uc5sebx9";
|
||||
|
||||
public static btn_yellow CreateInstance()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace FGUI.Common_01
|
||||
public GTextField time_text;
|
||||
public btn_get btn_removead;
|
||||
public Transition t0;
|
||||
public const string URL = "ui://jq2t9glpjobfas";
|
||||
public const string URL = "ui://o9974uc5jobfas";
|
||||
|
||||
public static com_adcoming CreateInstance()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace FGUI.Common_01
|
||||
{
|
||||
public Controller type;
|
||||
public GTextField lab_addPoints;
|
||||
public const string URL = "ui://jq2t9glppmolb6";
|
||||
public const string URL = "ui://o9974uc5pmolb6";
|
||||
|
||||
public static com_add_points CreateInstance()
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace FGUI.Common_01
|
||||
public GGroup group_;
|
||||
public Transition t0;
|
||||
public Transition t1;
|
||||
public const string URL = "ui://jq2t9glpqp92ao";
|
||||
public const string URL = "ui://o9974uc5qp92ao";
|
||||
|
||||
public static com_broadcast1 CreateInstance()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace FGUI.Common_01
|
||||
public GTextField text_2;
|
||||
public GTextField text_3;
|
||||
public Transition t1;
|
||||
public const string URL = "ui://jq2t9glpr8lg9a";
|
||||
public const string URL = "ui://o9974uc5r8lg9a";
|
||||
|
||||
public static com_broadcast_new CreateInstance()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace FGUI.Common_01
|
||||
public GRichTextField cast_text;
|
||||
public GRichTextField hide_text;
|
||||
public GButton btn_broad;
|
||||
public const string URL = "ui://jq2t9glpqp92an";
|
||||
public const string URL = "ui://o9974uc5qp92an";
|
||||
|
||||
public static com_broadcast_text1 CreateInstance()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace FGUI.Common_01
|
||||
public GTextField text_gold;
|
||||
public GTextField tips_text;
|
||||
public Transition anim_coin;
|
||||
public const string URL = "ui://jq2t9glpopwgd";
|
||||
public const string URL = "ui://o9974uc5opwgd";
|
||||
|
||||
public static com_gold CreateInstance()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace FGUI.Common_01
|
||||
public GTextField text_gold;
|
||||
public GTextField text_time;
|
||||
public GGroup group_tips;
|
||||
public const string URL = "ui://jq2t9glp733f48";
|
||||
public const string URL = "ui://o9974uc5733f48";
|
||||
|
||||
public static com_money CreateInstance()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FGUI.Common_01
|
||||
public GTextField title;
|
||||
public btn_yellow btn_relog;
|
||||
public GTextField content;
|
||||
public const string URL = "ui://jq2t9glpre5l1i";
|
||||
public const string URL = "ui://o9974uc5re5l1i";
|
||||
|
||||
public static com_tips CreateInstance()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace FGUI.Common_01
|
||||
public GTextField text_rate;
|
||||
public Transition show;
|
||||
public Transition hide;
|
||||
public const string URL = "ui://jq2t9glpr8lg4r";
|
||||
public const string URL = "ui://o9974uc5r8lg4r";
|
||||
|
||||
public static item_wheel CreateInstance()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace FGUI.Common_01
|
||||
{
|
||||
public wheel_ wheel_;
|
||||
public Transition t0;
|
||||
public const string URL = "ui://jq2t9glpr8lg4q";
|
||||
public const string URL = "ui://o9974uc5r8lg4q";
|
||||
|
||||
public static wheel CreateInstance()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace FGUI.Common_01
|
||||
public item_wheel item_7;
|
||||
public Transition t0;
|
||||
public Transition t1;
|
||||
public const string URL = "ui://jq2t9glpr8lg4t";
|
||||
public const string URL = "ui://o9974uc5r8lg4t";
|
||||
|
||||
public static wheel_ CreateInstance()
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace FGUI.JMain
|
||||
UIObjectFactory.SetPackageItemExtension(btn_add.URL, typeof(btn_add));
|
||||
UIObjectFactory.SetPackageItemExtension(btn_minus.URL, typeof(btn_minus));
|
||||
UIObjectFactory.SetPackageItemExtension(com_cardnum.URL, typeof(com_cardnum));
|
||||
UIObjectFactory.SetPackageItemExtension(btn_petty.URL, typeof(btn_petty));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.JMain
|
||||
{
|
||||
public partial class btn_petty : GButton
|
||||
{
|
||||
public GGroup kuang;
|
||||
public Transition t0;
|
||||
public const string URL = "ui://qw9x6rf3uaj0pin";
|
||||
|
||||
public static btn_petty CreateInstance()
|
||||
{
|
||||
return (btn_petty)UIPackage.CreateObject("JMain", "btn_petty");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
kuang = (GGroup)GetChildAt(2);
|
||||
t0 = GetTransitionAt(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 76b1e8a1581e7444a8900307e0980e35
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -12,9 +12,9 @@ namespace FGUI.JMain
|
||||
public GButton btn_getreward;
|
||||
public GTextField txt_title;
|
||||
public GButton closeButton;
|
||||
public GImage img_gold;
|
||||
public GTextField text_num;
|
||||
public GButton btn_get;
|
||||
public GImage img_gold;
|
||||
public GTextField end_point;
|
||||
public const string URL = "ui://qw9x6rf3ngxz38";
|
||||
|
||||
@@ -32,9 +32,9 @@ namespace FGUI.JMain
|
||||
btn_getreward = (GButton)GetChildAt(1);
|
||||
txt_title = (GTextField)GetChildAt(4);
|
||||
closeButton = (GButton)GetChildAt(5);
|
||||
img_gold = (GImage)GetChildAt(6);
|
||||
text_num = (GTextField)GetChildAt(7);
|
||||
btn_get = (GButton)GetChildAt(8);
|
||||
text_num = (GTextField)GetChildAt(6);
|
||||
btn_get = (GButton)GetChildAt(7);
|
||||
img_gold = (GImage)GetChildAt(8);
|
||||
end_point = (GTextField)GetChildAt(10);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ namespace FGUI.JMain
|
||||
public Controller gift;
|
||||
public Controller type;
|
||||
public GGraph gp_fx;
|
||||
public GButton btn_play;
|
||||
public com_cardnum com_cardnum;
|
||||
public com_playnum com_cards;
|
||||
public com_cardplaytext com_cardplay;
|
||||
@@ -21,6 +20,8 @@ namespace FGUI.JMain
|
||||
public btn_question btn_question;
|
||||
public GButton btn_saveingpot;
|
||||
public GButton btn_cashout;
|
||||
public btn_petty btn_petty;
|
||||
public GButton btn_play;
|
||||
public const string URL = "ui://qw9x6rf3lbaa0";
|
||||
|
||||
public static com_main CreateInstance()
|
||||
@@ -35,17 +36,18 @@ namespace FGUI.JMain
|
||||
gift = GetControllerAt(0);
|
||||
type = GetControllerAt(1);
|
||||
gp_fx = (GGraph)GetChildAt(0);
|
||||
btn_play = (GButton)GetChildAt(6);
|
||||
com_cardnum = (com_cardnum)GetChildAt(7);
|
||||
com_cards = (com_playnum)GetChildAt(8);
|
||||
com_cardplay = (com_cardplaytext)GetChildAt(9);
|
||||
btn_ballon = (GButton)GetChildAt(10);
|
||||
btn_set = (GButton)GetChildAt(11);
|
||||
makeup = (makeup)GetChildAt(12);
|
||||
btn_admin = (GButton)GetChildAt(13);
|
||||
btn_question = (btn_question)GetChildAt(14);
|
||||
btn_saveingpot = (GButton)GetChildAt(15);
|
||||
btn_cashout = (GButton)GetChildAt(16);
|
||||
com_cardnum = (com_cardnum)GetChildAt(6);
|
||||
com_cards = (com_playnum)GetChildAt(7);
|
||||
com_cardplay = (com_cardplaytext)GetChildAt(8);
|
||||
btn_ballon = (GButton)GetChildAt(9);
|
||||
btn_set = (GButton)GetChildAt(10);
|
||||
makeup = (makeup)GetChildAt(11);
|
||||
btn_admin = (GButton)GetChildAt(12);
|
||||
btn_question = (btn_question)GetChildAt(13);
|
||||
btn_saveingpot = (GButton)GetChildAt(14);
|
||||
btn_cashout = (GButton)GetChildAt(15);
|
||||
btn_petty = (btn_petty)GetChildAt(16);
|
||||
btn_play = (GButton)GetChildAt(17);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07bad1f23e137dc4fa1371de18b77258
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public class ZM_PettyBinder
|
||||
{
|
||||
public static void BindAll()
|
||||
{
|
||||
UIObjectFactory.SetPackageItemExtension(com_petty_award.URL, typeof(com_petty_award));
|
||||
UIObjectFactory.SetPackageItemExtension(com_get_panel.URL, typeof(com_get_panel));
|
||||
UIObjectFactory.SetPackageItemExtension(com_account.URL, typeof(com_account));
|
||||
UIObjectFactory.SetPackageItemExtension(com_email.URL, typeof(com_email));
|
||||
UIObjectFactory.SetPackageItemExtension(com_firstName.URL, typeof(com_firstName));
|
||||
UIObjectFactory.SetPackageItemExtension(com_lastName.URL, typeof(com_lastName));
|
||||
UIObjectFactory.SetPackageItemExtension(com_detail.URL, typeof(com_detail));
|
||||
UIObjectFactory.SetPackageItemExtension(com_scond_confirm.URL, typeof(com_scond_confirm));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2981a968a89b8514583ad63e5e7b4424
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,31 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_account : GComponent
|
||||
{
|
||||
public com_email com_email;
|
||||
public com_firstName com_first_name;
|
||||
public com_lastName com_last_name;
|
||||
public GButton btn_confirm;
|
||||
public const string URL = "ui://e9w4rbkqkbzo4";
|
||||
|
||||
public static com_account CreateInstance()
|
||||
{
|
||||
return (com_account)UIPackage.CreateObject("ZM_Petty", "com_account");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
com_email = (com_email)GetChildAt(4);
|
||||
com_first_name = (com_firstName)GetChildAt(5);
|
||||
com_last_name = (com_lastName)GetChildAt(6);
|
||||
btn_confirm = (GButton)GetChildAt(7);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a914ed167d523f1428efe0cdc480594d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,33 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_detail : GComponent
|
||||
{
|
||||
public GTextField text_amount;
|
||||
public GTextField text_data;
|
||||
public GTextField text_order;
|
||||
public GTextField text_email;
|
||||
public GTextField text_limit;
|
||||
public const string URL = "ui://e9w4rbkqkbzob";
|
||||
|
||||
public static com_detail CreateInstance()
|
||||
{
|
||||
return (com_detail)UIPackage.CreateObject("ZM_Petty", "com_detail");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
text_amount = (GTextField)GetChildAt(2);
|
||||
text_data = (GTextField)GetChildAt(3);
|
||||
text_order = (GTextField)GetChildAt(4);
|
||||
text_email = (GTextField)GetChildAt(5);
|
||||
text_limit = (GTextField)GetChildAt(6);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce2d2ea1b03310148aee053423f6b7d0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_email : GComponent
|
||||
{
|
||||
public GTextInput enter_email;
|
||||
public const string URL = "ui://e9w4rbkqkbzo5";
|
||||
|
||||
public static com_email CreateInstance()
|
||||
{
|
||||
return (com_email)UIPackage.CreateObject("ZM_Petty", "com_email");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
enter_email = (GTextInput)GetChildAt(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c230ffca0dd06d14899e8ea2c43efa78
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_firstName : GComponent
|
||||
{
|
||||
public GTextInput enter_first_name;
|
||||
public const string URL = "ui://e9w4rbkqkbzo8";
|
||||
|
||||
public static com_firstName CreateInstance()
|
||||
{
|
||||
return (com_firstName)UIPackage.CreateObject("ZM_Petty", "com_firstName");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
enter_first_name = (GTextInput)GetChildAt(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 284c09afa9d82a049b89f18bcc60d585
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,27 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_get_panel : GComponent
|
||||
{
|
||||
public GTextField text_reward;
|
||||
public GButton btn_get;
|
||||
public const string URL = "ui://e9w4rbkqkbzo3";
|
||||
|
||||
public static com_get_panel CreateInstance()
|
||||
{
|
||||
return (com_get_panel)UIPackage.CreateObject("ZM_Petty", "com_get_panel");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
text_reward = (GTextField)GetChildAt(2);
|
||||
btn_get = (GButton)GetChildAt(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d7bd47ab0d30804b86df841447000ed
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_lastName : GComponent
|
||||
{
|
||||
public GTextInput enter_last_name;
|
||||
public const string URL = "ui://e9w4rbkqkbzo9";
|
||||
|
||||
public static com_lastName CreateInstance()
|
||||
{
|
||||
return (com_lastName)UIPackage.CreateObject("ZM_Petty", "com_lastName");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
enter_last_name = (GTextInput)GetChildAt(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f43f0e0b9c5efc4faf79bc76efeac6a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,39 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_petty_award : GComponent
|
||||
{
|
||||
public Controller state;
|
||||
public GGraph anim;
|
||||
public GButton btn_gerAward;
|
||||
public com_get_panel com_get_panel;
|
||||
public com_account com_account;
|
||||
public com_detail com_detail;
|
||||
public com_scond_confirm com_second_confirm;
|
||||
public GButton btn_close;
|
||||
public const string URL = "ui://e9w4rbkqkbzo26";
|
||||
|
||||
public static com_petty_award CreateInstance()
|
||||
{
|
||||
return (com_petty_award)UIPackage.CreateObject("ZM_Petty", "com_petty_award");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
state = GetControllerAt(0);
|
||||
anim = (GGraph)GetChildAt(0);
|
||||
btn_gerAward = (GButton)GetChildAt(1);
|
||||
com_get_panel = (com_get_panel)GetChildAt(2);
|
||||
com_account = (com_account)GetChildAt(3);
|
||||
com_detail = (com_detail)GetChildAt(4);
|
||||
com_second_confirm = (com_scond_confirm)GetChildAt(5);
|
||||
btn_close = (GButton)GetChildAt(6);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 263f1e9d94b21d04ba51132ca8935243
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,31 @@
|
||||
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
|
||||
namespace FGUI.ZM_Petty
|
||||
{
|
||||
public partial class com_scond_confirm : GComponent
|
||||
{
|
||||
public GButton btn_confirm;
|
||||
public GTextField text_account;
|
||||
public GTextField text_first_name;
|
||||
public GTextField text_last_name;
|
||||
public const string URL = "ui://e9w4rbkqkbzoe";
|
||||
|
||||
public static com_scond_confirm CreateInstance()
|
||||
{
|
||||
return (com_scond_confirm)UIPackage.CreateObject("ZM_Petty", "com_scond_confirm");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
btn_confirm = (GButton)GetChildAt(2);
|
||||
text_account = (GTextField)GetChildAt(3);
|
||||
text_first_name = (GTextField)GetChildAt(4);
|
||||
text_last_name = (GTextField)GetChildAt(5);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1ea69dbf4afb0e348bb716ee758fed60
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -11,7 +11,7 @@ namespace FGUI.bkg_jilu
|
||||
public GButton btn_close;
|
||||
public GList list;
|
||||
public com_panel panel;
|
||||
public const string URL = "ui://jsjnplk3f6p00";
|
||||
public const string URL = "ui://u5bqcwhxf6p00";
|
||||
|
||||
public static com_jilu CreateInstance()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace FGUI.bkg_jilu
|
||||
public com_record_item item5;
|
||||
public com_record_item item7;
|
||||
public com_record_item item8;
|
||||
public const string URL = "ui://jsjnplk3f6p05";
|
||||
public const string URL = "ui://u5bqcwhxf6p05";
|
||||
|
||||
public static com_panel CreateInstance()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace FGUI.bkg_jilu
|
||||
public GTextField lab_claim;
|
||||
public GTextField time;
|
||||
public GRichTextField num;
|
||||
public const string URL = "ui://jsjnplk3f6p04";
|
||||
public const string URL = "ui://u5bqcwhxf6p04";
|
||||
|
||||
public static com_record_item CreateInstance()
|
||||
{
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace FGUI.tixian
|
||||
public GRichTextField text_condi1;
|
||||
public GRichTextField text_ch_number;
|
||||
public GButton btn_close;
|
||||
public GButton btn_watchad;
|
||||
public GComponent btn_watchad;
|
||||
public GButton btn_task_watch;
|
||||
public Transition t0;
|
||||
public const string URL = "ui://jwedp6jyut66d";
|
||||
@@ -125,7 +125,7 @@ namespace FGUI.tixian
|
||||
text_condi1 = (GRichTextField)GetChildAt(90);
|
||||
text_ch_number = (GRichTextField)GetChildAt(91);
|
||||
btn_close = (GButton)GetChildAt(92);
|
||||
btn_watchad = (GButton)GetChildAt(94);
|
||||
btn_watchad = (GComponent)GetChildAt(93);
|
||||
btn_task_watch = (GButton)GetChildAt(96);
|
||||
t0 = GetTransitionAt(0);
|
||||
}
|
||||
|
||||
@@ -198,6 +198,7 @@ namespace BingoBrain
|
||||
fx_title_effect,
|
||||
fx_wheel,
|
||||
fx_saving,
|
||||
fx_petty_reward,
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@@ -94,5 +94,8 @@ namespace BingoBrain
|
||||
public int ExchangeModeToggle;
|
||||
public int ExchangeProcessMode;
|
||||
public int CHProcessMode;
|
||||
//小额奖励
|
||||
public int SmallReward;
|
||||
public int ProcessingTime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +131,8 @@ namespace BingoBrain
|
||||
public static uint SaveingPotUI_Close = ++cursor_OpenClose;
|
||||
public static uint RecordViewUI_Open = ++cursor_OpenClose;
|
||||
public static uint RecordViewUI_Close = ++cursor_OpenClose;
|
||||
public static uint PettyAwardUI_Open = ++cursor_OpenClose;
|
||||
public static uint PettyAwardUI_Close = ++cursor_OpenClose;
|
||||
}
|
||||
public static partial class UICtrlMsg
|
||||
{
|
||||
|
||||
@@ -64,5 +64,6 @@ namespace BingoBrain
|
||||
public const string RecordViewCtrl = "RecordViewCtrl";
|
||||
public const string ThreeDaysGiftCtrl = "ThreeDaysGiftCtrl";
|
||||
public const string RewardMulNewCtrl = "RewardMulNewCtrl";
|
||||
}
|
||||
public const string PettyAwardCtrl = "PettyAwardCtrl";
|
||||
}
|
||||
}
|
||||
@@ -52,5 +52,6 @@ namespace BingoBrain
|
||||
public const string RecordViewModel = "RecordViewModel";
|
||||
public const string ThreeDaysGiftModel = "ThreeDaysGiftModel";
|
||||
public const string RewardMulNewModel = "RewardMulNewModel";
|
||||
}
|
||||
public const string PettyAwardModel = "PettyAwardModel";
|
||||
}
|
||||
}
|
||||
@@ -46,6 +46,7 @@ namespace BingoBrain
|
||||
moduleBoardk.AddModel(ModelConst.SaveingPotModel, new SaveingPotModel());
|
||||
moduleBoardk.AddModel(ModelConst.RecordViewModel, new RecordViewModel());
|
||||
moduleBoardk.AddModel(ModelConst.FirstRewardModel, new FirstRewardModel());
|
||||
moduleBoardk.AddModel(ModelConst.PettyAwardModel, new PettyAwardModel());
|
||||
}
|
||||
|
||||
public static void AutoRegisterUIType()
|
||||
@@ -89,6 +90,7 @@ namespace BingoBrain
|
||||
moduleBoardk.AddUIType(UIConst.SaveingPotUI, typeof(SaveingPotUI));
|
||||
moduleBoardk.AddUIType(UIConst.RecordViewUI, typeof(RecordViewUI));
|
||||
moduleBoardk.AddUIType(UIConst.FirstRewardUI, typeof(FirstRewardUI));
|
||||
moduleBoardk.AddUIType(UIConst.PettyAwardUI, typeof(PettyAwardUI));
|
||||
}
|
||||
|
||||
public static void AutoRegisterCtrl()
|
||||
@@ -133,6 +135,7 @@ namespace BingoBrain
|
||||
moduleBoardk.AddCtrl(CtrlConst.SaveingPotCtrl, new SaveingPotCtrl());
|
||||
moduleBoardk.AddCtrl(CtrlConst.RecordViewCtrl, new RecordViewCtrl());
|
||||
moduleBoardk.AddCtrl(CtrlConst.FirstRewardCtrl, new FirstRewardCtrl());
|
||||
moduleBoardk.AddCtrl(CtrlConst.PettyAwardCtrl, new PettyAwardCtrl());
|
||||
}
|
||||
|
||||
public static void AutoRegisterUICtrl()
|
||||
@@ -177,6 +180,7 @@ namespace BingoBrain
|
||||
moduleBoardk.AddUICtrl(UICtrlConst.SaveingPotUICtrl, new SaveingPotUICtrl());
|
||||
moduleBoardk.AddUICtrl(UICtrlConst.RecordViewUICtrl, new RecordViewUICtrl());
|
||||
moduleBoardk.AddUICtrl(UICtrlConst.FirstRewardUICtrl, new FirstRewardUICtrl());
|
||||
moduleBoardk.AddUICtrl(UICtrlConst.PettyAwardUICtrl, new PettyAwardUICtrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -102,5 +102,6 @@ namespace BingoBrain
|
||||
public const string RecordViewUI = "RecordViewUI";
|
||||
public const string ThreeDaysGiftUI = "ThreeDaysGiftUI";
|
||||
public const string RewardMulNewUI = "RewardMulNewUI";
|
||||
}
|
||||
public const string PettyAwardUI = "PettyAwardUI";
|
||||
}
|
||||
}
|
||||
@@ -65,5 +65,6 @@ namespace BingoBrain
|
||||
public const string ThreeDaysGiftUICtrl = "ThreeDaysGiftUICtrl";
|
||||
public const string RewardMulNewUICtrl = "RewardMulNewUICtrl";
|
||||
public const string MakeupConfirmUICtrl = "MakeupConfirmUICtrl";
|
||||
}
|
||||
public const string PettyAwardUICtrl = "PettyAwardUICtrl";
|
||||
}
|
||||
}
|
||||
@@ -189,6 +189,10 @@ namespace BingoBrain
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.SaveingPotUI_Open);
|
||||
});
|
||||
ui.btn_petty.SetClick(() =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.PettyAwardUI_Open);
|
||||
});
|
||||
}
|
||||
|
||||
private void UpdateNextCardBoardTime()
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 929445620293f0a40a24fb36e503ba37
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
using BingoBrain.Core;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class PettyAwardCtrl : BaseCtrl
|
||||
{
|
||||
public static PettyAwardCtrl Instance { get; private set; }
|
||||
|
||||
private PettyAwardModel model;
|
||||
|
||||
#region 生命周期
|
||||
protected override void OnInit()
|
||||
{
|
||||
Instance = this;
|
||||
//model = ModuleManager.Instance..GetModel(ModelConst.PettyAwardModel) as PettyAwardModel;
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
Instance = null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90b28f931a8a485439898f66ca3a9822
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
using BingoBrain.Core;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class PettyAwardModel : BaseModel
|
||||
{
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnReset()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 88d12f04c8019c541bb34a5ed9e11b72
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,319 @@
|
||||
using System;
|
||||
using BingoBrain.Core;
|
||||
using BingoBrain.HotFix;
|
||||
using DontConfuse;
|
||||
using FGUI.ACommon;
|
||||
using Newtonsoft.Json;
|
||||
using Spine.Unity;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class PettyAwardUI : BaseUI
|
||||
{
|
||||
private PettyAwardUICtrl ctrl;
|
||||
private PettyAwardModel model;
|
||||
private FGUI.ZM_Petty.com_petty_award ui;
|
||||
private Action closeCallback;
|
||||
public PettyAwardUI(PettyAwardUICtrl ctrl) : base(ctrl)
|
||||
{
|
||||
uiName = UIConst.PettyAwardUI;
|
||||
this.ctrl = ctrl;
|
||||
}
|
||||
|
||||
protected override void SetUIInfo(UIInfo uiInfo)
|
||||
{
|
||||
uiInfo.packageName = "ZM_Petty";
|
||||
uiInfo.assetName = "com_petty_award";
|
||||
uiInfo.layerType = UILayerType.Popup;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = true;
|
||||
}
|
||||
|
||||
#region 生命周期
|
||||
protected override void OnInit()
|
||||
{
|
||||
//model = ModuleManager.Instance.GetModel(ModelConst.PettyAwardModel) as PettyAwardModel;
|
||||
}
|
||||
|
||||
protected override void OnClose()
|
||||
{
|
||||
closeCallback?.Invoke();
|
||||
}
|
||||
|
||||
protected override void OnBind()
|
||||
{
|
||||
ui = baseUI as FGUI.ZM_Petty.com_petty_award;
|
||||
}
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
|
||||
InitView();
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
{
|
||||
//open_sign = (System.Action)args;
|
||||
}
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnDisplay(object args)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 消息
|
||||
protected override void AddListener()
|
||||
{
|
||||
|
||||
}
|
||||
protected override void RemoveListener()
|
||||
{
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
private int _mLastState;
|
||||
//初始化页面逻辑
|
||||
private void InitView()
|
||||
{
|
||||
_mLastState = SaveData.GetSaveobject().PettyState;
|
||||
Debug.Log($"PettyState============: {SaveData.GetSaveobject().PettyState}");
|
||||
var num = GameHelper.GetCommonModel().SmallReward;
|
||||
ui.com_get_panel.text_reward.text = $"{GameHelper.Get102Str(num)} USD";
|
||||
|
||||
|
||||
ui.com_get_panel.btn_get.SetClick(GotoEnterAccount);
|
||||
ui.btn_close.SetClick(() =>
|
||||
{
|
||||
if (ui.state.selectedIndex == 4)
|
||||
{
|
||||
GotoEnterAccount();
|
||||
}
|
||||
else
|
||||
{
|
||||
CtrlCloseUI();
|
||||
}
|
||||
});
|
||||
|
||||
if (_mLastState == 0)
|
||||
{
|
||||
// SkeletonAnimation sk = FXManager.Instance.SetFx<SkeletonAnimation>(ui.anim, Fx_Type.fx_petty_reward, ref closeCallback);
|
||||
SkeletonAnimation sk = null;
|
||||
FX.Instance.SetFx<SkeletonAnimation>(ui.anim, Fx_Type.fx_petty_reward,
|
||||
ps =>
|
||||
{
|
||||
// ps.transform.localPosition = new Vector3(0, 195, 0);
|
||||
sk = ps;
|
||||
|
||||
}, closeCallback);
|
||||
|
||||
sk.state.SetAnimation(0, "newbie_reward_an01", false);
|
||||
|
||||
sk.state.Complete += (a) =>
|
||||
{
|
||||
sk.state.SetAnimation(0, "newbie_reward_an02", true);
|
||||
ui.btn_gerAward.SetClick(() =>
|
||||
{
|
||||
ui.btn_gerAward.visible = false;
|
||||
sk.state.SetAnimation(0, "newbie_reward_an03", false);
|
||||
sk.state.Complete += (a) =>
|
||||
{
|
||||
ui.state.selectedIndex = 1;
|
||||
SaveData.GetSaveobject().PettyState = 1;
|
||||
ui.anim.visible = false;
|
||||
};
|
||||
});
|
||||
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
GotoPanel(_mLastState);
|
||||
}
|
||||
}
|
||||
|
||||
private void GotoPanel(int index)
|
||||
{
|
||||
switch (index)
|
||||
{
|
||||
case 1:
|
||||
ui.state.selectedIndex = 1;
|
||||
break;
|
||||
case 2:
|
||||
ui.state.selectedIndex = 2;
|
||||
GotoEnterAccount();
|
||||
break;
|
||||
case 3:
|
||||
ui.state.selectedIndex = 3;
|
||||
GotoDetail();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void GotoEnterAccount()
|
||||
{
|
||||
ui.state.selectedIndex = 2;
|
||||
SaveData.GetSaveobject().PettyState = 2;
|
||||
if (!SaveData.GetSaveobject().PettyAccount.IsNullOrWhiteSpace())
|
||||
{
|
||||
ui.com_account.com_email.enter_email.text = SaveData.GetSaveobject().PettyAccount;
|
||||
}
|
||||
if (!SaveData.GetSaveobject().PettyFirstName.IsNullOrWhiteSpace())
|
||||
{
|
||||
ui.com_account.com_first_name.enter_first_name.text = SaveData.GetSaveobject().PettyFirstName;
|
||||
}
|
||||
if (!SaveData.GetSaveobject().PettyLastName.IsNullOrWhiteSpace())
|
||||
{
|
||||
ui.com_account.com_last_name.enter_last_name.text = SaveData.GetSaveobject().PettyLastName;
|
||||
}
|
||||
|
||||
ui.com_account.btn_confirm.SetClick(ConfirmClick);
|
||||
}
|
||||
|
||||
private void ConfirmClick()
|
||||
{
|
||||
var account = ui.com_account.com_email.enter_email.text.Replace(" ", "");
|
||||
if (account == "")
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GameHelper.CheckAccountValidly(account))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var fname = ui.com_account.com_first_name.enter_first_name.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(fname))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var lname = ui.com_account.com_last_name.enter_last_name.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(lname))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
return;
|
||||
}
|
||||
|
||||
SaveData.GetSaveobject().PettyAccount = account;
|
||||
SaveData.GetSaveobject().PettyFirstName = fname;
|
||||
SaveData.GetSaveobject().PettyLastName = lname;
|
||||
|
||||
GotoSecondConfirm(account, fname, lname);
|
||||
|
||||
}
|
||||
|
||||
private void GotoSecondConfirm(string account, string fname, string lname)
|
||||
{
|
||||
ui.state.selectedIndex = 4;
|
||||
PaymentMsg info = new PaymentMsg
|
||||
{
|
||||
email = account,
|
||||
first_name = fname,
|
||||
last_name = lname
|
||||
};
|
||||
|
||||
ui.com_second_confirm.text_account.SetVar("account", account).FlushVars();
|
||||
ui.com_second_confirm.text_first_name.SetVar("name", fname).FlushVars();
|
||||
ui.com_second_confirm.text_last_name.SetVar("name", lname).FlushVars();
|
||||
|
||||
ui.com_second_confirm.btn_confirm.SetClick(() =>
|
||||
{
|
||||
ui.com_second_confirm.btn_confirm.enabled = false;
|
||||
NetworkKit.PostWithHeader<object>("shop/payOutUserInfo", info, (isSuccess, obj) =>
|
||||
{
|
||||
Debug.Log("[petty ui]-------------payOutUserInfo---" + JsonConvert.SerializeObject(info));
|
||||
if (isSuccess)
|
||||
{
|
||||
GotoDetail();
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.ShowTips("Failed to save information., please try again");
|
||||
ui.com_second_confirm.btn_confirm.enabled = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private void GotoDetail()
|
||||
{
|
||||
ui.state.selectedIndex = 3;
|
||||
SaveData.GetSaveobject().PettyState = 3;
|
||||
|
||||
var pettyAmount = SaveData.GetSaveobject().PettyAmount;
|
||||
if (pettyAmount != 0)
|
||||
{
|
||||
ui.com_detail.text_amount.SetVar("num", GameHelper.Get102Str(pettyAmount)).FlushVars();
|
||||
}
|
||||
else
|
||||
{
|
||||
var num = GameHelper.GetCommonModel().SmallReward;
|
||||
ui.com_detail.text_amount.SetVar("num", GameHelper.Get102Str(num)).FlushVars();
|
||||
SaveData.GetSaveobject().PettyAmount = num;
|
||||
}
|
||||
|
||||
var pettyDateTime = SaveData.GetSaveobject().PettyDateTime;
|
||||
if (!pettyDateTime.IsNullOrWhiteSpace())
|
||||
{
|
||||
ui.com_detail.text_data.SetVar("data", pettyDateTime).FlushVars();
|
||||
}
|
||||
else
|
||||
{
|
||||
var dateTime = DateTime.Now.ToString("yyyy.MM.dd");
|
||||
ui.com_detail.text_data.SetVar("data", dateTime).FlushVars();
|
||||
SaveData.GetSaveobject().PettyDateTime = dateTime;
|
||||
}
|
||||
|
||||
var pettyOrderID = SaveData.GetSaveobject().PettyOrderID;
|
||||
if (!pettyOrderID.IsNullOrWhiteSpace())
|
||||
{
|
||||
ui.com_detail.text_order.SetVar("order", pettyOrderID).FlushVars();
|
||||
}
|
||||
else
|
||||
{
|
||||
string datePart = DateTime.Now.ToString("yyyyMMdd");
|
||||
System.Random random = new System.Random();
|
||||
string randomPart = random.Next(1000, 9999).ToString(); // 生成1000-9999之间的四位数
|
||||
ui.com_detail.text_order.SetVar("order", datePart + randomPart).FlushVars();
|
||||
|
||||
SaveData.GetSaveobject().PettyOrderID = datePart + randomPart;
|
||||
}
|
||||
|
||||
|
||||
ui.com_detail.text_email.SetVar("email", SaveData.GetSaveobject().PettyAccount).FlushVars();
|
||||
|
||||
var pettyDataLimit = SaveData.GetSaveobject().PettyDataLimit;
|
||||
if (pettyDataLimit != 0)
|
||||
{
|
||||
ui.com_detail.text_limit.SetVar("day", pettyDataLimit.ToString()).FlushVars();
|
||||
}
|
||||
else
|
||||
{
|
||||
var day = GameHelper.GetCommonModel().ProcessingTime;
|
||||
ui.com_detail.text_limit.SetVar("day", day.ToString()).FlushVars();
|
||||
SaveData.GetSaveobject().PettyDataLimit = day;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace DontConfuse
|
||||
{
|
||||
public class PaymentMsg
|
||||
{
|
||||
public string email;
|
||||
public string first_name;
|
||||
public string last_name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3419b0d0813ffd14294efe17fecb0b0e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,74 @@
|
||||
using BingoBrain.Core;
|
||||
using BingoBrain.HotFix;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class PettyAwardUICtrl : BaseUICtrl
|
||||
{
|
||||
private PettyAwardUI ui;
|
||||
private PettyAwardModel model;
|
||||
|
||||
private uint openUIMsg = SkinInfo.PettyAwardUI_Open;
|
||||
private uint closeUIMsg = SkinInfo.PettyAwardUI_Close;
|
||||
|
||||
#region 生命周期
|
||||
protected override void OnInit()
|
||||
{
|
||||
//model = ModuleManager.Instance.GetModel(ModelConst.PettyAwardModel) as PettyAwardModel;
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OpenUI(object args = null)
|
||||
{
|
||||
if (ui == null)
|
||||
{
|
||||
ui = new PettyAwardUI(this);
|
||||
ui.Open(args);
|
||||
}
|
||||
}
|
||||
|
||||
public override void CloseUI(object args = null)
|
||||
{
|
||||
if (ui != null && !ui.isClose)
|
||||
{
|
||||
ui.Close();
|
||||
}
|
||||
ui = null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 消息
|
||||
public override uint GetOpenUIMsg(string uiName)
|
||||
{
|
||||
return openUIMsg;
|
||||
}
|
||||
public override uint GetCloseUIMsg(string uiName)
|
||||
{
|
||||
return closeUIMsg;
|
||||
}
|
||||
|
||||
protected override void AddListener()
|
||||
{
|
||||
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
|
||||
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
|
||||
}
|
||||
protected override void RemoveListener()
|
||||
{
|
||||
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
|
||||
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
|
||||
}
|
||||
|
||||
protected override void AddServerListener()
|
||||
{
|
||||
|
||||
}
|
||||
protected override void RemoveServerListener()
|
||||
{
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c8a241703482ef64ab8b07f9577ced78
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -183,5 +183,14 @@ namespace BingoBrain
|
||||
public float saveingpot_ch;
|
||||
public float last_saveingpot_ch;
|
||||
public int ExchangeModeToggle = 1;
|
||||
public int PettyState;
|
||||
public string PettyAccount;
|
||||
public string PettyFirstName;
|
||||
public string PettyLastName;
|
||||
|
||||
public int PettyAmount;
|
||||
public string PettyOrderID;
|
||||
public string PettyDateTime;
|
||||
public int PettyDataLimit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace BingoBrain
|
||||
FGUI.tixian.tixianBinder.BindAll();
|
||||
FGUI.Common_01.Common_01Binder.BindAll();
|
||||
FGUI.bkg_jilu.bkg_jiluBinder.BindAll();
|
||||
FGUI.ZM_Petty.ZM_PettyBinder.BindAll();
|
||||
}
|
||||
|
||||
public static void AutoRegisterCommonPackages()
|
||||
|
||||
Reference in New Issue
Block a user