main
pengjunwu 2024-01-12 14:38:11 +08:00
parent 7628581877
commit d04cddc084
9 changed files with 294 additions and 3 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5fc70d1586ad4d348ab387fa42b7d18d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,162 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3170596210044094474
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4076313392852242653}
m_Layer: 5
m_Name: UI_Camp
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4076313392852242653
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3170596210044094474}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 5270348796142205963}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &643562100325951817
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 4076313392852242653}
m_Modifications:
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_SizeDelta.x
value: 455.93005
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_SizeDelta.y
value: 127.100006
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_AnchoredPosition.x
value: -657
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 396
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8687545733931836314, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
propertyPath: m_Name
value: Button_Back
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2ece976bb7b041640a969c074b3c7858, type: 3}
--- !u!224 &5270348796142205963 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4740722626188776770, guid: 2ece976bb7b041640a969c074b3c7858,
type: 3}
m_PrefabInstance: {fileID: 643562100325951817}
m_PrefabAsset: {fileID: 0}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 90ad38392f4a0fe40a67355da8eb0fc5
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -69,7 +69,8 @@ public partial class UIManager
_WindowMeta(UINameConst.UI_GetItemWindow, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UINoticeOne, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_PVPMain,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIMissionWin,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIMissionWin,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Camp,UIWindowLayer.Normal);
}
@ -158,4 +159,5 @@ public static class UINameConst
public static readonly string UI_Purchase = "Interface/Shop/UI_Purchase";
public static readonly string UI_GetItemWindow= "Interface/Shop/UI_GetItemWindow";
public static readonly string UI_PVPMain = "PVP/UI_PVPMain";
public static readonly string UI_Camp = "Camp/UI_Camp";
}

View File

@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using Framework;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.UIElements;
using Button = UnityEngine.UI.Button;
using Image = UnityEngine.UI.Image;
using Toggle = UnityEngine.UI.Toggle;
using ScrollView = PhxhSDK.PhxhScrollView;
public class UI_CampBinder
{
public static void GetComponents(UI_CampController window)
{
window.Button_Back = window.GetComponent<Button>("Button_Back");
window.Button_back = window.GetComponent<Button>("Button_Back/Button_back");
window.Text_Back = window.GetComponent<TMP_Text>("Button_Back/Button_back/Text_Back");
window.Button_Home = window.GetComponent<Button>("Button_Back/Button_Home");
}
/****** ******
public Button Button_Back;
public Button Button_back;
public TMP_Text Text_Back;
public Button Button_Home;
****** End ******/
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 280230234f88b48478fd71fd5b19d2b5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,58 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.UIElements;
using Button = UnityEngine.UI.Button;
using Image = UnityEngine.UI.Image;
using Toggle = UnityEngine.UI.Toggle;
using ScrollView = PhxhSDK.PhxhScrollView;
using Framework;
public class UI_CampController : UIWindow
{
//UI GameObj
///Auto Gen Start///
public Button Button_Back;
public Button Button_back;
public TMP_Text Text_Back;
public Button Button_Home;
///Auto Gen End///
// Use this for initialization
public override void OnAwake()
{
//bind UI GameObj
UI_CampBinder.GetComponents(this);
RegisterEvent();
}
private void RegisterEvent()
{
BindButton(Button_back, OnClickBack);
BindButton(Button_Home, OnClickBack);
}
private void OnClickBack()
{
CampManager.Instance.ExitCamp();
}
//invoke when open window
protected override void OnOpenWindow(object data = null)
{
}
//invoke when reload window
protected override void OnReloadWindow(object data = null)
{
}
//invoke when close window
protected override void OnCloseWindow()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 72795dccafd576940bd64bf810e844b0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -16910,8 +16910,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 780044538}
serializedVersion: 2
m_LocalRotation: {x: 0.32021627, y: -0.082530394, z: 0.028015291, w: 0.9433268}
m_LocalPosition: {x: -0.00000023255352, y: 25, z: -21.835663}
m_LocalRotation: {x: -0.01250172, y: 0.9647858, z: -0.2585278, w: -0.04685639}
m_LocalPosition: {x: 5.3579903, y: 12.73402, z: 23.021904}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []