Menu Screen + UI Restyle
Created menu screen Created inventory tab with 2 cargo panes and properties panel Updated the style of every UI prefab Implemented Blurred UI material Implemented UI shaders for map layers Created Map tab (still needs input)
This commit is contained in:
parent
ac0361fd9b
commit
4f19189244
106 changed files with 11233 additions and 24584 deletions
|
|
@ -2,28 +2,29 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class ConfirmationDialog : PropertiesPanel
|
||||
{
|
||||
public ClickCatcher CancelClickCatcher;
|
||||
public FlatButton Cancel;
|
||||
public FlatButton Confirm;
|
||||
public Button Cancel;
|
||||
public Button Confirm;
|
||||
|
||||
private Action _onCancel;
|
||||
private Action _onConfirm;
|
||||
|
||||
private new void Start()
|
||||
{
|
||||
Cancel.OnClick += () =>
|
||||
Cancel.onClick.AddListener(() =>
|
||||
{
|
||||
_onCancel?.Invoke();
|
||||
End();
|
||||
};
|
||||
Confirm.OnClick += () =>
|
||||
});
|
||||
Confirm.onClick.AddListener(() =>
|
||||
{
|
||||
_onConfirm?.Invoke();
|
||||
End();
|
||||
};
|
||||
});
|
||||
if (CancelClickCatcher != null)
|
||||
CancelClickCatcher.OnClick += data =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue