修改ui样式

This commit is contained in:
Bob.Song
2026-02-04 18:55:28 +08:00
parent b6570fa8fa
commit ca9226015d
154 changed files with 13770 additions and 338 deletions

View File

@@ -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));

View File

@@ -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); }

View File

@@ -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;
}

View File

@@ -11,7 +11,6 @@ namespace NBF
protected override void OnInit()
{
IsShowCursor = false;
IsDontBack = true;
}
protected override void OnShow()

View File

@@ -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")]

View File

@@ -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")]

View File

@@ -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();

View File

@@ -22,7 +22,6 @@ namespace NBF
{
base.OnInit();
IsShowCursor = true;
IsDontBack = true;
//TEXT_SETTINGS_
var groupNames = Settings.Instance.GetAllTabs();
foreach (var group in groupNames)

View File

@@ -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");

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 034e1664c8564ba4985717b0ac055420
timeCreated: 1770175824

View 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" },
}
);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 290ed26c6e28f694b95cdb9c6ebd14d5