修改ui样式
This commit is contained in:
@@ -16,7 +16,6 @@ namespace NBF
|
||||
UIObjectFactory.SetPackageItemExtension(ClassifyList.URL, typeof(ClassifyList));
|
||||
UIObjectFactory.SetPackageItemExtension(CommonMenu.URL, typeof(CommonMenu));
|
||||
UIObjectFactory.SetPackageItemExtension(MarqueeTag.URL, typeof(MarqueeTag));
|
||||
UIObjectFactory.SetPackageItemExtension(BtnSubMenuLeft.URL, typeof(BtnSubMenuLeft));
|
||||
UIObjectFactory.SetPackageItemExtension(BtnTextInputControl.URL, typeof(BtnTextInputControl));
|
||||
UIObjectFactory.SetPackageItemExtension(CommonItemList.URL, typeof(CommonItemList));
|
||||
UIObjectFactory.SetPackageItemExtension(BtnTitleInputControl.URL, typeof(BtnTitleInputControl));
|
||||
|
||||
@@ -18,14 +18,16 @@ namespace NBF
|
||||
public Controller MessageStyle;
|
||||
[AutoFind(Name = "back")]
|
||||
public GImage back;
|
||||
[AutoFind(Name = "box")]
|
||||
public GImage box;
|
||||
[AutoFind(Name = "TextTitle")]
|
||||
public GTextField TextTitle;
|
||||
[AutoFind(Name = "TextContent")]
|
||||
public GTextField TextContent;
|
||||
[AutoFind(Name = "BtnCancel")]
|
||||
public BtnTitleInputControl BtnCancel;
|
||||
[AutoFind(Name = "BtnConfirm")]
|
||||
public BtnTitleInputControl BtnConfirm;
|
||||
[AutoFind(Name = "t0")]
|
||||
public Transition t0;
|
||||
public override string[] GetDependPackages(){ return new string[] {}; }
|
||||
|
||||
public static void Show(object param = null){ UI.Inst.OpenUI<MessageBox>(param); }
|
||||
|
||||
@@ -47,10 +47,8 @@ namespace NBF
|
||||
protected override void OnInit()
|
||||
{
|
||||
this.AutoAddClick(OnClick);
|
||||
// HideAnim = this.HideCenterScaleBig;
|
||||
// ShowAnim = this.ShowCenterScaleBig;
|
||||
IsModal = true;
|
||||
IsDontBack = true;
|
||||
HideAnim = UIPanelAnimation.GetCenterPopScaleFade(this, true);
|
||||
InputManager.OnUICanceled += OnUICanceled;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ namespace NBF
|
||||
protected override void OnInit()
|
||||
{
|
||||
IsShowCursor = false;
|
||||
IsDontBack = true;
|
||||
}
|
||||
|
||||
protected override void OnShow()
|
||||
|
||||
2
Assets/Scripts/UI/Home/HomePanel.Designer.cs
generated
2
Assets/Scripts/UI/Home/HomePanel.Designer.cs
generated
@@ -15,7 +15,7 @@ namespace NBF
|
||||
public override string UIResName => "HomePanel";
|
||||
|
||||
[AutoFind(Name = "Back")]
|
||||
public GLabel Back;
|
||||
public UIBlurBackground Back;
|
||||
[AutoFind(Name = "Pages")]
|
||||
public GComponent Pages;
|
||||
[AutoFind(Name = "Menu")]
|
||||
|
||||
2
Assets/Scripts/UI/Login/LoginPanel.Designer.cs
generated
2
Assets/Scripts/UI/Login/LoginPanel.Designer.cs
generated
@@ -15,7 +15,7 @@ namespace NBF
|
||||
public override string UIResName => "LoginPanel";
|
||||
|
||||
[AutoFind(Name = "Back")]
|
||||
public GLabel Back;
|
||||
public UIBlurBackground Back;
|
||||
[AutoFind(Name = "InputAccount")]
|
||||
public CommonInput InputAccount;
|
||||
[AutoFind(Name = "BtnLogin")]
|
||||
|
||||
@@ -22,7 +22,9 @@ namespace NBF
|
||||
{
|
||||
if (btn == BtnLogin)
|
||||
{
|
||||
OnLoginClick().Coroutine();
|
||||
// OnLoginClick().Coroutine();
|
||||
Debug.LogError("test");
|
||||
MessageBox.Show();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +32,7 @@ namespace NBF
|
||||
{
|
||||
await LoginHelper.Login(InputAccount.text);
|
||||
|
||||
await Fishing.Instance.Go(RoleModel.Instance.Info.MapId);
|
||||
// await Fishing.Instance.Go(RoleModel.Instance.Info.MapId);
|
||||
// await MapHelper.EnterMap(mapId, role.RoomCode);
|
||||
|
||||
// BagPanel.Show();
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace NBF
|
||||
{
|
||||
base.OnInit();
|
||||
IsShowCursor = true;
|
||||
IsDontBack = true;
|
||||
//TEXT_SETTINGS_
|
||||
var groupNames = Settings.Instance.GetAllTabs();
|
||||
foreach (var group in groupNames)
|
||||
|
||||
4
Assets/Scripts/UI/Shops/ShopGearItem.Designer.cs
generated
4
Assets/Scripts/UI/Shops/ShopGearItem.Designer.cs
generated
@@ -11,7 +11,7 @@ namespace NBF
|
||||
{
|
||||
public const string URL = "ui://hxr7rc7poome9";
|
||||
|
||||
public GImage back;
|
||||
public GImage select;
|
||||
public GTextField TextPrice;
|
||||
public GImage Quality;
|
||||
public GTextField TextAmount;
|
||||
@@ -20,7 +20,7 @@ namespace NBF
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
back = (GImage)GetChild("back");
|
||||
select = (GImage)GetChild("select");
|
||||
TextPrice = (GTextField)GetChild("TextPrice");
|
||||
Quality = (GImage)GetChild("Quality");
|
||||
TextAmount = (GTextField)GetChild("TextAmount");
|
||||
|
||||
3
Assets/Scripts/UI/Tween.meta
Normal file
3
Assets/Scripts/UI/Tween.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 034e1664c8564ba4985717b0ac055420
|
||||
timeCreated: 1770175824
|
||||
27
Assets/Scripts/UI/Tween/UITweenConfig.cs
Normal file
27
Assets/Scripts/UI/Tween/UITweenConfig.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
/**注册组件动效绑定。本脚本为自动生成,每次生成会覆盖!请勿手动修改,生成插件文档及项目地址:https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using FairyGUI;
|
||||
using NBC;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class UITweenConfig : UIComponentTweenPack
|
||||
{
|
||||
public UITweenConfig()
|
||||
{
|
||||
AddData();
|
||||
}
|
||||
|
||||
private void AddData()
|
||||
{
|
||||
// Common
|
||||
Add("ui://6hgkvlauips61", new UIComponentTween()
|
||||
{
|
||||
{ "__root__", "Fade" },
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/Tween/UITweenConfig.cs.meta
Normal file
2
Assets/Scripts/UI/Tween/UITweenConfig.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 290ed26c6e28f694b95cdb9c6ebd14d5
|
||||
Reference in New Issue
Block a user