主页面

This commit is contained in:
bob
2025-06-03 11:45:53 +08:00
parent f1aa7207b7
commit 8ba78d5d1c
39 changed files with 303 additions and 31 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: b3aecf52a4fd7cb42813dc565dc02e37
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: e829b894bb774259bd3d518f066f6130
timeCreated: 1748827749

View File

@@ -2,7 +2,7 @@
{
public class UI
{
public static UIManager _inst;
private static UIManager _inst;
public static UIManager Inst
{

View File

@@ -11,7 +11,6 @@ namespace NBF
UIObjectFactory.SetPackageItemExtension(FishingStateInfo.URL, typeof(FishingStateInfo));
UIObjectFactory.SetPackageItemExtension(InteractiveTag.URL, typeof(InteractiveTag));
UIObjectFactory.SetPackageItemExtension(FishingPower.URL, typeof(FishingPower));
UIObjectFactory.SetPackageItemExtension(WeatherInfo.URL, typeof(WeatherInfo));
}
}
}

View File

@@ -10,6 +10,7 @@ namespace NBF
{
UIObjectFactory.SetPackageItemExtension(SettingItem.URL, typeof(SettingItem));
UIObjectFactory.SetPackageItemExtension(IntroduceTag.URL, typeof(IntroduceTag));
UIObjectFactory.SetPackageItemExtension(HomeButtonGroups.URL, typeof(HomeButtonGroups));
}
}
}

View File

@@ -22,14 +22,14 @@ namespace NBF
[AutoFind(Name = "TextFPS")]
public GTextField TextFPS;
[AutoFind(Name = "TextTime")]
public WeatherInfo TextTime;
public GLabel TextTime;
[AutoFind(Name = "FishingState")]
public FishingStateInfo FishingState;
[AutoFind(Name = "Interactive")]
public InteractiveTag Interactive;
[AutoFind(Name = "OperationTips")]
public GList OperationTips;
public override string[] GetDependPackages(){ return new string[] {}; }
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
}

View File

@@ -0,0 +1,43 @@
/**本脚本为自动生成每次生成会覆盖请勿手动修改生成插件文档及项目地址https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
using FairyGUI;
using FairyGUI.Utils;
using NBC;
namespace NBF
{
public partial class HomeButtonGroups
{
public const string URL = "ui://hxr7rc7plvqln";
public GButton BtnMap;
public GButton BtnMessage;
public GButton BtnExit;
public GButton BtnSettings;
public GButton BtnStatistics;
public GButton BtnBag;
public GButton BtnSkill;
public GButton BtnPass;
public GButton BtnMission;
public GButton BtnTournament;
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
BtnMap = (GButton)GetChild("BtnMap");
BtnMessage = (GButton)GetChild("BtnMessage");
BtnExit = (GButton)GetChild("BtnExit");
BtnSettings = (GButton)GetChild("BtnSettings");
BtnStatistics = (GButton)GetChild("BtnStatistics");
BtnBag = (GButton)GetChild("BtnBag");
BtnSkill = (GButton)GetChild("BtnSkill");
BtnPass = (GButton)GetChild("BtnPass");
BtnMission = (GButton)GetChild("BtnMission");
BtnTournament = (GButton)GetChild("BtnTournament");
OnInited();
UILanguage.TrySetComponentLanguage(this);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 008c0b556690f1a4f9ea76cb05b6746e

View File

@@ -0,0 +1,31 @@
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
using UnityEngine;
using FairyGUI;
using NBC;
namespace NBF
{
public partial class HomeButtonGroups : GComponent
{
private void OnInited()
{
this.AutoAddClick(OnClick);
}
private void OnClick(GComponent btn)
{
if (btn == BtnExit)
{
MessageBox.Show("确定推出到桌面吗?", (b) =>
{
if (b) Application.Quit();
});
}
else if (btn == BtnSettings)
{
UI.Inst.OpenUI<SettingPanel>();
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 52070c9a16d995346a51eb093365c170

View File

@@ -11,8 +11,12 @@ namespace NBF
public partial class HomePanel
{
public GObject this[string aKey] => ContentPane.GetChild(aKey);
[AutoFind(Name = "Bottom")]
public BottomMenu Bottom;
[AutoFind(Name = "Menu")]
public CommonMenu Menu;
[AutoFind(Name = "BottomMenu")]
public BottomMenu BottomMenu;
[AutoFind(Name = "OpGroup")]
public HomeButtonGroups OpGroup;
public override string[] GetDependPackages(){ return new string[] {"Common"}; }