add
This commit is contained in:
parent
b89a86e776
commit
6b0d3121ad
@ -163,7 +163,7 @@ MonoBehaviour:
|
|||||||
m_IgnoreLayout: 0
|
m_IgnoreLayout: 0
|
||||||
m_MinWidth: 400
|
m_MinWidth: 400
|
||||||
m_MinHeight: -1
|
m_MinHeight: -1
|
||||||
m_PreferredWidth: 1400
|
m_PreferredWidth: 19000
|
||||||
m_PreferredHeight: -1
|
m_PreferredHeight: -1
|
||||||
m_FlexibleWidth: -1
|
m_FlexibleWidth: -1
|
||||||
m_FlexibleHeight: -1
|
m_FlexibleHeight: -1
|
||||||
|
@ -217,7 +217,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
|
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
@ -345,7 +345,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 414, y: -25}
|
m_AnchoredPosition: {x: 414, y: -199.99948}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &9071259163023854629
|
--- !u!114 &9071259163023854629
|
||||||
@ -400,6 +400,7 @@ GameObject:
|
|||||||
- component: {fileID: 9071259163357382586}
|
- component: {fileID: 9071259163357382586}
|
||||||
- component: {fileID: 9071259163357382587}
|
- component: {fileID: 9071259163357382587}
|
||||||
- component: {fileID: 9071259163357382585}
|
- component: {fileID: 9071259163357382585}
|
||||||
|
- component: {fileID: 5254082942373224363}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: pop_up_ui
|
m_Name: pop_up_ui
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -484,6 +485,63 @@ MonoBehaviour:
|
|||||||
scroll_view: {fileID: 6911566712270966713}
|
scroll_view: {fileID: 6911566712270966713}
|
||||||
boxTypes: []
|
boxTypes: []
|
||||||
scroll_mode: 0
|
scroll_mode: 0
|
||||||
|
minHeight: 400
|
||||||
|
--- !u!114 &5254082942373224363
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9071259163357382589}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Navigation:
|
||||||
|
m_Mode: 3
|
||||||
|
m_WrapAround: 0
|
||||||
|
m_SelectOnUp: {fileID: 0}
|
||||||
|
m_SelectOnDown: {fileID: 0}
|
||||||
|
m_SelectOnLeft: {fileID: 0}
|
||||||
|
m_SelectOnRight: {fileID: 0}
|
||||||
|
m_Transition: 1
|
||||||
|
m_Colors:
|
||||||
|
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||||
|
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||||
|
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||||
|
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||||
|
m_ColorMultiplier: 1
|
||||||
|
m_FadeDuration: 0.1
|
||||||
|
m_SpriteState:
|
||||||
|
m_HighlightedSprite: {fileID: 0}
|
||||||
|
m_PressedSprite: {fileID: 0}
|
||||||
|
m_SelectedSprite: {fileID: 0}
|
||||||
|
m_DisabledSprite: {fileID: 0}
|
||||||
|
m_AnimationTriggers:
|
||||||
|
m_NormalTrigger: Normal
|
||||||
|
m_HighlightedTrigger: Highlighted
|
||||||
|
m_PressedTrigger: Pressed
|
||||||
|
m_SelectedTrigger: Selected
|
||||||
|
m_DisabledTrigger: Disabled
|
||||||
|
m_Interactable: 1
|
||||||
|
m_TargetGraphic: {fileID: 9071259163357382587}
|
||||||
|
m_OnClick:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 9071259163357382585}
|
||||||
|
m_TargetAssemblyTypeName: input_box_pop_up_window, Assembly-CSharp
|
||||||
|
m_MethodName: destroy
|
||||||
|
m_Mode: 1
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 0
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 2
|
||||||
--- !u!1 &9071259164145765607
|
--- !u!1 &9071259164145765607
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1020,6 +1020,103 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: f47f17e1ff8b3a947a95099d3cf59c57, type: 3}
|
m_Script: {fileID: 11500000, guid: f47f17e1ff8b3a947a95099d3cf59c57, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1001 &1520963465
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_SizeDelta.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_SizeDelta.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166433, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1125018133084166437, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: pop
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 4d328a61046e1d2498391895fd2c11d7, type: 3}
|
||||||
--- !u!224 &2002424411 stripped
|
--- !u!224 &2002424411 stripped
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 3011360592396996928, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
|
m_CorrespondingSourceObject: {fileID: 3011360592396996928, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
|
||||||
|
@ -9,24 +9,29 @@ public struct Register
|
|||||||
}
|
}
|
||||||
public class mount : MonoBehaviour
|
public class mount : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public static mount mountitem;
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Awake()
|
||||||
{
|
{
|
||||||
|
mountitem = this;
|
||||||
DontDestroyOnLoad(this);
|
DontDestroyOnLoad(this);
|
||||||
|
|
||||||
|
|
||||||
//login_screen();
|
//mountitem.login_screen();
|
||||||
buy_miners();
|
|
||||||
}
|
}
|
||||||
public GameObject add_pop_up()//警속뎐눗
|
public GameObject add_pop_up(bool is_force = false)//添加弹窗
|
||||||
{
|
{
|
||||||
GameObject prefab = Resources.Load<GameObject>("preform/gui/pop_up_ui");
|
GameObject prefab = Resources.Load<GameObject>("preform/gui/pop_up_ui");
|
||||||
GameObject ranking_list_item = Instantiate(prefab, this.transform);
|
GameObject ranking_list_item = Instantiate(prefab, this.transform);
|
||||||
|
ranking_list_item.GetComponent<input_box_pop_up_window>().is_force = is_force;
|
||||||
return ranking_list_item;
|
return ranking_list_item;
|
||||||
}
|
}
|
||||||
//0 输入框
|
//0 输入框
|
||||||
//1 输入框带按钮
|
//1 输入框带按钮
|
||||||
//2 取消按钮 确定按钮
|
//2 取消按钮 确定按钮
|
||||||
|
//3 购买人才item
|
||||||
|
//4 购买人才文字消息
|
||||||
public void login_screen()//注册界面
|
public void login_screen()//注册界面
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -34,7 +39,7 @@ public class mount : MonoBehaviour
|
|||||||
boxTypes.Add(new BoxType { Name = "account_number", textName = " 手机号", prompt= "请输入手机号", Type = 1, is_required = true });
|
boxTypes.Add(new BoxType { Name = "account_number", textName = " 手机号", prompt= "请输入手机号", Type = 1, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "verification_code", textName = " 验证码 ", prompt = "请输入验证码", Type = 0, is_required = true });
|
boxTypes.Add(new BoxType { Name = "verification_code", textName = " 验证码 ", prompt = "请输入验证码", Type = 0, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "submit", textName = " 取消确定 ",Type = 2});
|
boxTypes.Add(new BoxType { Name = "submit", textName = " 取消确定 ",Type = 2});
|
||||||
GameObject gameObject = add_pop_up();
|
GameObject gameObject = add_pop_up(true);//生成弹窗母体
|
||||||
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "注册");//测试输入框回调处理
|
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "注册");//测试输入框回调处理
|
||||||
|
|
||||||
gameObjects[0].GetComponent<input_box_pop_up_window_item>().register_click((BoxType boxType,int type) =>//手机号获取验证码点击
|
gameObjects[0].GetComponent<input_box_pop_up_window_item>().register_click((BoxType boxType,int type) =>//手机号获取验证码点击
|
||||||
@ -64,16 +69,26 @@ public class mount : MonoBehaviour
|
|||||||
{
|
{
|
||||||
List<GameObject> gameObjects1 = new List<GameObject>();
|
List<GameObject> gameObjects1 = new List<GameObject>();
|
||||||
List<BoxType> boxTypes = new List<BoxType>();
|
List<BoxType> boxTypes = new List<BoxType>();
|
||||||
boxTypes.Add(new BoxType { Name = "웁묏1", prompt = "웁묏1", Type = 4, is_required = true });
|
boxTypes.Add(new BoxType { Name = "矿工1文本", prompt = "矿工1", Type = 4, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "웁묏1", prompt = "웁묏1", Type = 4, is_required = true });
|
|
||||||
|
boxTypes.Add(new BoxType { Name = "矿工1文本", prompt = "矿工1", Type = 4, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
||||||
|
|
||||||
|
|
||||||
|
boxTypes.Add(new BoxType { Name = "矿工1文本", prompt = "矿工1", Type = 4, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
||||||
|
|
||||||
|
|
||||||
|
boxTypes.Add(new BoxType { Name = "矿工1文本", prompt = "矿工1", Type = 4, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
||||||
|
|
||||||
|
|
||||||
|
boxTypes.Add(new BoxType { Name = "矿工1文本", prompt = "矿工1", Type = 4, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "矿工1", prompt = "矿工1", Type = 3, is_required = true });
|
||||||
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
boxTypes.Add(new BoxType { Name = "挖矿设备1", prompt = "挖矿设备1", Type = 3, is_required = true });
|
||||||
//boxTypes[3] = new BoxType { Name = "submit", textName = " 取消确定 ", Type = 2 };
|
//boxTypes[3] = new BoxType { Name = "submit", textName = " 取消确定 ", Type = 2 };
|
||||||
@ -82,7 +97,7 @@ public class mount : MonoBehaviour
|
|||||||
gameObject.GetComponent<input_box_pop_up_window>().setScrollMode(1);//设置滚动模式为滚动
|
gameObject.GetComponent<input_box_pop_up_window>().setScrollMode(1);//设置滚动模式为滚动
|
||||||
//gameObject.GetComponent<input_box_pop_up_window>().setScrollMode(0);//设置滚动模式为自动填充
|
//gameObject.GetComponent<input_box_pop_up_window>().setScrollMode(0);//设置滚动模式为自动填充
|
||||||
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "购买人才");//测试输入框回调处理
|
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "购买人才");//测试输入框回调处理
|
||||||
gameObjects[0].GetComponent<input_box_pop_up_window_item>().register_click(async (BoxType boxType, int type) =>//되쩌횅땍샀혤句
|
gameObjects[1].GetComponent<input_box_pop_up_window_item>().register_click(async (BoxType boxType, int type) =>//登录确定或取消
|
||||||
{
|
{
|
||||||
if (type == 0)
|
if (type == 0)
|
||||||
{
|
{
|
||||||
|
@ -30,11 +30,15 @@ public class input_box_pop_up_window : MonoBehaviour
|
|||||||
public event OnClikeWT OnClike;//点击事件
|
public event OnClikeWT OnClike;//点击事件
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
|
|
||||||
public int scroll_mode = 0;
|
public int scroll_mode = 0;//滚动模式
|
||||||
public int minHeight = 400;
|
public int minHeight = 400;//最小高度
|
||||||
|
public bool is_force = false;//是否强制无法关闭
|
||||||
|
|
||||||
public void setScrollMode(int scroll_mode)
|
public void setScrollMode(int scroll_mode)
|
||||||
{
|
{
|
||||||
this.scroll_mode = scroll_mode;
|
this.scroll_mode = scroll_mode;
|
||||||
|
Debug.Log(scroll_mode.ToString()+"-------------------");
|
||||||
|
|
||||||
switch (scroll_mode)
|
switch (scroll_mode)
|
||||||
{
|
{
|
||||||
case 0://自动填充
|
case 0://自动填充
|
||||||
@ -49,11 +53,23 @@ public class input_box_pop_up_window : MonoBehaviour
|
|||||||
scroll_view.GetComponent<ScrollRect>().horizontal = false;
|
scroll_view.GetComponent<ScrollRect>().horizontal = false;
|
||||||
viewport.GetComponent<LayoutElement>().minHeight = minHeight;
|
viewport.GetComponent<LayoutElement>().minHeight = minHeight;
|
||||||
scroll_view.GetComponent<LayoutElement>().minHeight = minHeight;
|
scroll_view.GetComponent<LayoutElement>().minHeight = minHeight;
|
||||||
|
scroll_view.GetComponent<ScrollRect>().vertical = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public void destroy()
|
||||||
|
{
|
||||||
|
if (!is_force)
|
||||||
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
setScrollMode(0);
|
||||||
|
}
|
||||||
public List<GameObject> updateUI(List<BoxType> my_boxTypes,string type = "标题")//ui更新
|
public List<GameObject> updateUI(List<BoxType> my_boxTypes,string type = "标题")//ui更新
|
||||||
{
|
{
|
||||||
List<GameObject> gameObjects = new List<GameObject>();
|
List<GameObject> gameObjects = new List<GameObject>();
|
||||||
|
8
meng_yao/Assets/script/sys.meta
Normal file
8
meng_yao/Assets/script/sys.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: add657b554c4b8946a1c327d130fdc46
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
18
meng_yao/Assets/script/sys/loading.cs
Normal file
18
meng_yao/Assets/script/sys/loading.cs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class loading : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
mount.mountitem.login_screen();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
meng_yao/Assets/script/sys/loading.cs.meta
Normal file
11
meng_yao/Assets/script/sys/loading.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6f00e81ccc253254d9bd5481c32744bd
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user