AllAssets

This commit is contained in:
2025-12-26 11:15:56 +08:00
parent 66904dff05
commit a562538b9d
1399 changed files with 432731 additions and 976 deletions
+1 -1
View File
@@ -1186,7 +1186,7 @@ MonoBehaviour:
panelAddressConfig: {fileID: 11400000, guid: af4956c52185f7248afa632ba0ba63d7, type: 2}
SubPanelParent: {fileID: 2598784230285573744}
defaultButton: {fileID: 2095719531739795814}
FLZYButton: {fileID: 5660061971336108277}
FXYButton: {fileID: 5660061971336108277}
XJMHButton: {fileID: 675111198059572776}
TGXXButton: {fileID: 9215424427851389888}
HHWKButton: {fileID: 4572301368814337958}
File diff suppressed because it is too large Load Diff
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public class UIHome_BY_AnnouncementPenel : UIHome_BY_EmailPenel
public class UIHome_BY_AnnouncementPanel : UIHome_BY_EmailPanel
{
// Start is called before the first frame update
void Start()
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public class UIHome_BY_BackPackPenel : SubUIBase
public class UIHome_BY_BackPackPanel : SubUIBase
{
// Start is called before the first frame update
void Start()
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public class UIHome_BY_EmailPenel : SubUIBase
public class UIHome_BY_EmailPanel : SubUIBase
{
public TMPAutoResize mPAutoResize;
// Start is called before the first frame update
@@ -4,7 +4,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_MonthCardPenel : SubUIBase
public class UIHome_BY_MonthCardPanel : SubUIBase
{
public Button btn_Open;
public TextMeshProUGUI txt_QY;
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_MySelectRoomPenel : SubUIBase
public class UIHome_BY_MySelectRoomPanel : SubUIBase
{
public GameObject panel_PanelParent;
public Button panel_RoomItemPrefab;
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public class UIHome_BY_RankPenel : SubUIBase
public class UIHome_BY_RankPanel : SubUIBase
{
public GameObject obj_LinePrefab;
// Start is called before the first frame update
@@ -4,7 +4,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_SafeBox : SubUIBase
public class UIHome_BY_SafeBoxPanel : SubUIBase
{
public enum SafeBoxPenel {
@@ -1,10 +1,29 @@
using System.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public enum GameType
{
JQQD = 0,
defaultPanel = 1,
FXZY = 2,
TGXX = 3,
ZGXQ = 4,
XJMH = 5,
HHWK = 6,
}
[Serializable]
public class BG_SelectRoom
{
public string name;
public GameType gameType;
public Sprite sprite;
}
public class UIHome_BY_SelectRoomLevelPanel : SubUIBase
{
[Header("DefaultGame")]
[Header("快速进入")]
public Button SelectRoom1;
public Button SelectRoom2;
@@ -13,33 +32,36 @@ public class UIHome_BY_SelectRoomLevelPanel : SubUIBase
public Button MySelectRoom1;
public Button MySelectRoom2;
public Button MySelectRoom3;
public UIHome_BY_MySelectRoomPenel panel_UIHome_BY_MySelectRoomPenel;
public UIHome_BY_MySelectRoomPanel panel_UIHome_BY_MySelectRoomPenel;
public GameType currGameType;
public List<BG_SelectRoom> bG_SelectRooms=new List<BG_SelectRoom>();
public Image img_BG;
public override void Awake()
{
base.Awake();
MySelectRoom1.onClick.AddListener(() =>
{
OnSelectRoom("");
OnSelectRoom(currGameType);
});
MySelectRoom2.onClick.AddListener(() =>
{
OnSelectRoom("");
OnSelectRoom(currGameType);
});
MySelectRoom3.onClick.AddListener(() =>
{
OnSelectRoom("");
OnSelectRoom(currGameType);
});
SelectRoom1.onClick.AddListener(() =>
{
StartGame("");
StartGame(currGameType);
});
SelectRoom2.onClick.AddListener(() =>
{
StartGame("");
StartGame(currGameType);
});
SelectRoom3.onClick.AddListener(() =>
{
StartGame("");
StartGame(currGameType);
});
}
public void OnSelectRoom(object json)
@@ -53,4 +75,43 @@ public class UIHome_BY_SelectRoomLevelPanel : SubUIBase
UIManager.Instance.Close(UIPanel.HomeMainPanel);
}
public override void Show(object args = null)
{
base.Show(args);
if (args != null && args is GameType)
{
currGameType = (GameType)args;
GameManager.Instance.gameData.currGameType = currGameType;
if (currGameType!= GameType.JQQD)
{
SelectRoom1.transform.GetChild((int)currGameType).gameObject.SetActive(true);
SelectRoom2.transform.GetChild((int)currGameType).gameObject.SetActive(true);
SelectRoom3.transform.GetChild((int)currGameType).gameObject.SetActive(true);
}
foreach (var item in bG_SelectRooms)
{
if (item.gameType==currGameType)
{
img_BG.sprite = item.sprite;
img_BG.color =Color.white;
}
}
}
}
public override void Hide()
{
base.Hide();
img_BG.color = new Color(1,1,1,0);
if (currGameType != GameType.JQQD)
{
SelectRoom1.transform.GetChild((int)currGameType).gameObject.SetActive(false);
SelectRoom2.transform.GetChild((int)currGameType).gameObject.SetActive(false);
SelectRoom3.transform.GetChild((int)currGameType).gameObject.SetActive(false);
currGameType = GameType.JQQD;
}
}
}
@@ -4,7 +4,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_ServicePenel : SubUIBase
public class UIHome_BY_ServicePanel : SubUIBase
{
public Button btn_DefaultQuestion;
public Button btn_YouChangeIChange;
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_SettingPenel : SubUIBase
public class UIHome_BY_SettingPanel : SubUIBase
{
public Button btn_ExitGame;
public Slider slider_AudioMusic;
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_ShopPenel : SubUIBase
public class UIHome_BY_ShopPanel : SubUIBase
{
public GameObject obj_PropPrefab;
[Header("左侧按钮")]
@@ -4,7 +4,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_VIPPenel : SubUIBase
public class UIHome_BY_VIPPanel : SubUIBase
{
[Header("下一页上一页")]
+27 -4
View File
@@ -8,11 +8,10 @@ public class UIHomeMain : UIBase
public SubUIManager subUIManager;
public UIPanelAddressConfig panelAddressConfig;
public Transform SubPanelParent;
#region 中间
public Button defaultButton;
[Header("风雷之渊")]
public Button FLZYButton;
public Button FXYButton;
[Header("星际迷航")]
public Button XJMHButton;
[Header("太古仙墟")]
@@ -51,10 +50,34 @@ public class UIHomeMain : UIBase
private void Awake()
{
subUIManager = new SubUIManager(SubPanelParent, panelAddressConfig);
#region
#region Center
defaultButton.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.SelectRoomPenel);
subUIManager.ShowAsync(UIPanel.SelectRoomPenel,GameType.defaultPanel);
});
FXYButton.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.SelectRoomPenel, GameType.FXZY);
});
TGXXButton.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.SelectRoomPenel, GameType.TGXX);
});
ZGXQButton.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.SelectRoomPenel, GameType.ZGXQ);
});
XJMHButton.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.SelectRoomPenel, GameType.XJMH);
});
HHWKButton.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.SelectRoomPenel, GameType.HHWK);
});
JQQDButton.onClick.AddListener(() =>
{
//这里弹出一行字
});
#endregion
#region left
+24 -12
View File
@@ -13,27 +13,39 @@ MonoBehaviour:
m_Name: UIMain
m_EditorClassIdentifier:
panels:
- type: 101
- name: "\u9009\u62E9\u623F\u95F4\u7B49\u7EA7"
type: 101
address: Assets/MyGame/aa/UI/Home/Sub/SelectRoomPanel.prefab
- type: 151
- name: VIP
type: 151
address: Assets/MyGame/aa/UI/Home/Sub/VIPPanel.prefab
- type: 166
- name: "\u4FDD\u9669\u7BB1"
type: 166
address: Assets/MyGame/aa/UI/Home/Sub/SafeBox.prefab
- type: 152
- name: "\u6551\u6D4E\u91D1"
type: 152
address: Assets/MyGame/aa/UI/Home/Sub/JJJPanel.prefab
- type: 164
- name: "\u6392\u884C\u699C"
type: 164
address: Assets/MyGame/aa/UI/Home/Sub/RankPanel.prefab
- type: 168
- name: "\u5546\u5E97"
type: 168
address: Assets/MyGame/aa/UI/Home/Sub/ShopPanel.prefab
- type: 161
- name: "\u6708\u5361"
type: 161
address: Assets/MyGame/aa/UI/Home/Sub/MonthCardPanel.prefab
- type: 162
- name: "\u80CC\u5305"
type: 162
address: Assets/MyGame/aa/UI/Home/Sub/BackPack.prefab
- type: 165
- name: "\u90AE\u4EF6"
type: 165
address: Assets/MyGame/aa/UI/Home/Sub/EmailPanel.prefab
- type: 167
- name: "\u5BA2\u670D"
type: 167
address: Assets/MyGame/aa/UI/Home/Sub/ServicePanel.prefab
- type: 163
- name: "\u516C\u544A"
type: 163
address: Assets/MyGame/aa/UI/Home/Sub/AnnouncementPanel.prefab
- type: 199
- name: "\u8BBE\u7F6E"
type: 199
address: Assets/MyGame/aa/UI/Home/Sub/SettingPanel.prefab