主页面

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

View File

@@ -2,9 +2,9 @@
<component size="85,32" pivot="0.5,0.5" extention="Button">
<controller name="show" pages="0,,1," selected="0"/>
<displayList>
<loader id="n9_r03u" name="icon" xy="0,0" size="32,32" url="ui://6hgkvlau9mf1jv" align="center" vAlign="middle" autoSize="true" color="#cbcbcb"/>
<text id="n10_r03u" name="title" xy="38,0" size="47,32" alpha="0.7" font="ui://6hgkvlaugkm7x" fontSize="22" color="#cbcbcb" text="继续"/>
<loader id="n9_r03u" name="icon" xy="0,0" size="32,32" url="ui://6hgkvlau9mf1jv" align="center" vAlign="middle" autoSize="true"/>
<text id="n10_r03u" name="title" xy="38,0" size="47,32" font="ui://6hgkvlaugkm7x" fontSize="22" color="#ffffff" text="继续"/>
</displayList>
<Button downEffect="scale" downEffectValue=".95"/>
<Button downEffect="scale" downEffectValue="0.95"/>
<relation target="n10_r03u" sidePair="rightext-right"/>
</component>

View File

@@ -190,6 +190,7 @@
<component id="nmzbk7" name="ButtonSubTab.xml" path="/Com/Menu/" exported="true"/>
<component id="nmzbk8" name="ButtonSubIconTab.xml" path="/Com/Menu/" exported="true"/>
<image id="nmzbl6" name="LDR_LLL1_0.png" path="/Images/bluenoise64/" exported="true" scale="tile" scale9grid="0,0,64,64"/>
<component id="tmu81h" name="WeatherInfo.xml" path="/Com/" exported="true"/>
</resources>
<publish name="" path="../Assets/Resources/Fgui/Common" packageCount="2" genCode="true"/>
</packageDescription>

View File

@@ -12,7 +12,7 @@
<text id="n6_tmu8" name="TextFPS" xy="19,130" size="46,49" font="ui://6hgkvlaugkm7v" fontSize="36" color="#ffffff" text="56">
<relation target="" sidePair="left-left,top-top"/>
</text>
<component id="n7_tmu8" name="TextTime" src="tmu81h" fileName="Com/WeatherInfo.xml" xy="1739,0">
<component id="n7_tmu8" name="TextTime" src="tmu81h" fileName="Com/WeatherInfo.xml" xy="1739,0" pkg="6hgkvlau">
<relation target="" sidePair="right-right,top-top"/>
</component>
<list id="n13_tmu8" name="n13" xy="106,15" size="168,81" overflow="scroll" defaultItem="ui://6hgkvlautmu81k">

View File

@@ -10,7 +10,6 @@
<component id="jgpto" name="Progress.xml" path="/Com/"/>
<component id="jgptp" name="PlayerInfo1.xml" path="/Com/"/>
<component id="tmu8q" name="SightTag.xml" path="/"/>
<component id="tmu81h" name="WeatherInfo.xml" path="/Com/"/>
<image id="tmu81i" name="766570_19.jpg" path="/参考/"/>
<component id="tmu81l" name="HudItem.xml" path="/Com/"/>
<component id="o0hz1m" name="Component1.xml" path="/Com/"/>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="732,370" extention="Button">
<controller name="button" pages="2,up,3,down,4,over,5,selectedOver" selected="2"/>
<displayList>
<loader id="n21_lvql" name="icon" xy="0,0" size="732,370" url="ui://6hgkvlaudheveh" align="center" vAlign="middle" fill="scaleFree">
<relation target="" sidePair="width-width,height-height"/>
</loader>
<image id="n22_lvql" name="n22" src="r03uiv" fileName="Images/Shapes/Square/Square - Stroke 2px.png" pkg="6hgkvlau" xy="0,0" size="732,370" color="#34a7de">
<gearColor controller="button" pages="4" values="#34a7de" default="#4297be"/>
</image>
<component id="n23_lvql" name="Weather" src="tmu81h" fileName="Com/WeatherInfo.xml" pkg="6hgkvlau" xy="4,4"/>
</displayList>
<Button/>
</component>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="410,242" extention="Button">
<displayList>
<graph id="n33_lvql" name="back" xy="0,0" size="410,242" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11">
<relation target="" sidePair="width-width,height-height"/>
</graph>
<text id="n34_lvql" name="title" xy="180,104" size="49,34" fontSize="24" color="#ffffff" align="center" vAlign="middle" text="title"/>
</displayList>
<Button/>
</component>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="356,112" pivot="0.5,0.5" extention="Button">
<controller name="button" pages="2,up,3,down,4,over,5,selectedOver" selected="1"/>
<displayList>
<image id="n36_lvql" name="n36" src="kryob" fileName="Images/Square.png" pkg="6hgkvlau" xy="0,0" size="356,112" alpha="0.8" color="#0e0f11"/>
<image id="n37_lvql" name="overBack" src="kryob" fileName="Images/Square.png" pkg="6hgkvlau" xy="0,0" size="356,112" color="#34a7de">
<gearDisplay controller="button" pages="3,4,5"/>
<gearColor controller="button" pages="3,5" values="#34a7de|#34a7de" default="#4297be"/>
</image>
<loader id="n33_lvql" name="icon" xy="253,11" size="90,90" alpha="0.7" url="ui://hxr7rc7plvqlr" align="center" vAlign="middle" fill="scale"/>
<text id="n34_lvql" name="title" xy="16,17" size="217,73" alpha="0.7" fontSize="25" color="#ffffff" vAlign="middle" autoSize="none" text="设置"/>
</displayList>
<Button/>
</component>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="1162,766">
<displayList>
<component id="n20_nmzb" name="BtnMap" src="lvqlq" fileName="Com/Home/BtnHomeMap.xml" xy="0,0"/>
<component id="n19_nmzb" name="BtnMessage" src="lvqlo" fileName="Com/Home/BtnHomeSmall.xml" xy="0,522" size="356,112">
<Button title="消息" icon="ui://hxr7rc7plvqlv"/>
</component>
<component id="n27_nmzb" name="BtnExit" src="lvqlo" fileName="Com/Home/BtnHomeSmall.xml" xy="0,654" size="356,112">
<Button title="退出" icon="ui://hxr7rc7plvqls"/>
</component>
<component id="n28_nmzb" name="BtnSettings" src="lvqlo" fileName="Com/Home/BtnHomeSmall.xml" xy="376,654" size="356,112">
<Button title="设置" icon="ui://hxr7rc7plvqlr"/>
</component>
<component id="n21_nmzb" name="BtnStatistics" src="lvqlo" fileName="Com/Home/BtnHomeSmall.xml" xy="376,522" size="356,112">
<Button title="统计" icon="ui://hxr7rc7plvqlw"/>
</component>
<component id="n22_nmzb" name="BtnBag" src="lvqlo" fileName="Com/Home/BtnHomeSmall.xml" xy="0,390" size="356,112">
<Button title="背包" icon="ui://hxr7rc7plvqly"/>
</component>
<component id="n23_nmzb" name="BtnSkill" src="lvqlo" fileName="Com/Home/BtnHomeSmall.xml" xy="376,390" size="356,112">
<Button title="能力" icon="ui://hxr7rc7plvqlx"/>
</component>
<component id="n24_nmzb" name="BtnPass" src="lvqlp" fileName="Com/Home/BtnHomeMedium.xml" xy="752,0" size="410,242">
<Button title="通行证"/>
</component>
<component id="n25_nmzb" name="BtnMission" src="lvqlp" fileName="Com/Home/BtnHomeMedium.xml" xy="752,260" size="410,242">
<Button title="任务"/>
</component>
<component id="n26_nmzb" name="BtnTournament" src="lvqlp" fileName="Com/Home/BtnHomeMedium.xml" xy="752,522" size="410,244">
<Button title="赛事"/>
</component>
</displayList>
</component>

View File

@@ -4,23 +4,17 @@
<graph id="n17_nmzb" name="n17" xy="0,0" size="1920,1080" type="rect" lineSize="0" fillColor="#ff182128">
<relation target="" sidePair="width-width,height-height"/>
</graph>
<image id="n30_nmzb" name="n30" src="nmzbl6" fileName="Images/bluenoise64/LDR_LLL1_0.png" pkg="6hgkvlau" xy="0,0" size="1920,1080" alpha="0.2"/>
<component id="n1_nmzb" name="n1" src="fcfggr" fileName="Com/Menu/CommonMenu.xml" pkg="6hgkvlau" xy="0,0" size="1920,125">
<image id="n30_nmzb" name="n30" src="nmzbl6" fileName="Images/bluenoise64/LDR_LLL1_0.png" pkg="6hgkvlau" xy="0,0" size="1920,1080" alpha="0.2">
<relation target="" sidePair="width-width,height-height"/>
</image>
<component id="n1_nmzb" name="Menu" src="fcfggr" fileName="Com/Menu/CommonMenu.xml" pkg="6hgkvlau" xy="0,0" size="1920,125">
<relation target="" sidePair="width-width,center-center,top-top"/>
</component>
<component id="n2_nmzb" name="Bottom" src="9mf1z" fileName="Com/Menu/BottomMenu.xml" pkg="6hgkvlau" xy="0,992">
<component id="n2_nmzb" name="BottomMenu" src="9mf1z" fileName="Com/Menu/BottomMenu.xml" pkg="6hgkvlau" xy="0,992">
<relation target="" sidePair="center-center,bottom-bottom"/>
</component>
<graph id="n19_nmzb" name="n19" xy="79,701" size="356,112" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n20_nmzb" name="n20" xy="79,179" size="732,370" group="n29_nmzb" type="rect" lineSize="4" lineColor="#994297be" fillColor="#cc0e0f11"/>
<graph id="n21_nmzb" name="n21" xy="455,701" size="356,112" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n22_nmzb" name="n22" xy="79,569" size="356,112" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n23_nmzb" name="n23" xy="455,569" size="356,112" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n24_nmzb" name="n24" xy="831,179" size="410,242" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n25_nmzb" name="n25" xy="831,441" size="410,240" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n26_nmzb" name="n26" xy="831,701" size="410,244" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n27_nmzb" name="n27" xy="79,833" size="356,112" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<graph id="n28_nmzb" name="n28" xy="455,833" size="356,112" group="n29_nmzb" type="rect" lineSize="0" lineColor="#ff4297be" fillColor="#cc0e0f11"/>
<group id="n29_nmzb" name="n29" xy="79,179" size="1162,766" advanced="true"/>
<component id="n19_nmzb" name="OpGroup" src="lvqln" fileName="Com/Home/HomeButtonGroups.xml" xy="79,179">
<relation target="" sidePair="middle-middle,left-left"/>
</component>
</displayList>
</component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="1920,1080" designImage="ui://hxr7rc7pe9z82" designImageAlpha="30">
<displayList>
<image id="n1_e9z8" name="back" src="kryob" fileName="Images/Square.png" pkg="6hgkvlau" xy="0,0" size="1920,1080" alpha="0.8" color="#031018">
<image id="n1_e9z8" name="back" src="kryob" fileName="Images/Square.png" pkg="6hgkvlau" xy="0,0" size="1920,1080" color="#182128">
<relation target="" sidePair="width-width,height-height"/>
</image>
<component id="n0_e9z8" name="Menu" src="fcfggr" fileName="Com/Menu/CommonMenu.xml" pkg="6hgkvlau" xy="0,0">

View File

@@ -23,6 +23,16 @@
<image id="nmzbk" name="Tom-Clancys-Rainbow-Six-Siege07172020-095237-84280.jpg" path="/效果图/主页参考/"/>
<image id="nmzbl" name="Tom-Clancys-Rainbow-Six-Siege07172020-095450-32422.jpg" path="/效果图/"/>
<image id="nmzbm" name="back1.png" path="/Images/"/>
<component id="lvqln" name="HomeButtonGroups.xml" path="/Com/Home/"/>
<component id="lvqlo" name="BtnHomeSmall.xml" path="/Com/Home/"/>
<component id="lvqlp" name="BtnHomeMedium.xml" path="/Com/Home/"/>
<component id="lvqlq" name="BtnHomeMap.xml" path="/Com/Home/"/>
<image id="lvqlr" name="Settings.png" path="/Images/"/>
<image id="lvqls" name="OnOff.png" path="/Images/"/>
<image id="lvqlv" name="Bell.png" path="/Images/"/>
<image id="lvqlw" name="Cup.png" path="/Images/"/>
<image id="lvqlx" name="Fire.png" path="/Images/"/>
<image id="lvqly" name="Bag.png" path="/Images/"/>
</resources>
<publish name="" path="../Assets/Resources/Fgui/Main" packageCount="2" genCode="true"/>
</packageDescription>

View File

@@ -9,8 +9,8 @@
<image id="fcfg5" name="咖啡店.jpg" path="/x效果图/"/>
<image id="fcfg6" name="食品店.jpg" path="/x效果图/"/>
<component id="fcfg8" name="FishingShopPanel.xml" path="/" exported="true"/>
<component id="oome9" name="ShopGearItem.xml" path="/" exported="true"/>
<component id="drkwb" name="SelectTextItem.xml" path="/"/>
<component id="oome9" name="ShopGearItem.xml" path="/Com/" exported="true"/>
<component id="drkwb" name="SelectTextItem.xml" path="/Com/"/>
<image id="r03uc" name="20250521000344_1.jpg" path="/x效果图/"/>
<image id="r03ud" name="20250521221501_1.jpg" path="/x效果图/"/>
<image id="r03ue" name="20250521221613_1.jpg" path="/x效果图/"/>

View File

@@ -0,0 +1 @@
{"url":"ui://hxr7rc7plvqln","name":"HomeButtonGroups","scriptType":"component","isCustomName":false,"customName":"","annotation":"","member":{}}