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:
Reinier Vens 2020-12-14 02:56:35 +00:00
commit 4f19189244
106 changed files with 11233 additions and 24584 deletions

View file

@ -46,12 +46,13 @@ public class DropdownMenu : MonoBehaviour
{
var optionButton = Instantiate(OptionPrefab, ContentRoot);
optionButton.Label.text = text;
optionButton.Button.OnClick += data =>
optionButton.Button.onClick.AddListener(() =>
{
action();
End();
};
optionButton.Button.CurrentState = !enabled ? FlatButtonState.Disabled : selected ? FlatButtonState.Selected : FlatButtonState.Unselected;
});
optionButton.Button.interactable = enabled;
//optionButton.Button..CurrentState = !enabled ? FlatButtonState.Disabled : selected ? FlatButtonState.Selected : FlatButtonState.Unselected;
_options.Add(optionButton.gameObject);
}