Skip to content

Commit

Permalink
v0.7
Browse files Browse the repository at this point in the history
- Saves now keep your last session with imported files
- Smooth map zooming
- Fixed bugs in day view
  • Loading branch information
bionicl authored Aug 12, 2018
2 parents 868d421 + c403c84 commit 916f9c1
Show file tree
Hide file tree
Showing 23 changed files with 1,922 additions and 495 deletions.
59 changes: 55 additions & 4 deletions Assets/Animations/TabBox/Open.anim
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ AnimationClip:
m_Curve:
- serializedVersion: 2
time: 0
value: -39.9
value: -31
inSlope: -210.07977
outSlope: -210.07977
tangentMode: 0
- serializedVersion: 2
time: 0.41666666
value: -54.350006
value: -46
inSlope: 0
outSlope: 0
tangentMode: 136
Expand Down Expand Up @@ -82,6 +82,28 @@ AnimationClip:
path:
classID: 224
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 2
time: 0
value: 245.9231
inSlope: 0
outSlope: 0
tangentMode: 136
- serializedVersion: 2
time: 0.41666666
value: 230.9231
inSlope: 0
outSlope: 0
tangentMode: 136
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.y
path:
classID: 224
script: {fileID: 0}
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
Expand Down Expand Up @@ -111,6 +133,13 @@ AnimationClip:
typeID: 224
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 0
attribute: 3762036201
script: {fileID: 0}
typeID: 224
customType: 0
isPPtrCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
Expand Down Expand Up @@ -138,13 +167,13 @@ AnimationClip:
m_Curve:
- serializedVersion: 2
time: 0
value: -39.9
value: -31
inSlope: -210.07977
outSlope: -210.07977
tangentMode: 0
- serializedVersion: 2
time: 0.41666666
value: -54.350006
value: -46
inSlope: 0
outSlope: 0
tangentMode: 136
Expand Down Expand Up @@ -199,6 +228,28 @@ AnimationClip:
path:
classID: 224
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 2
time: 0
value: 245.9231
inSlope: 0
outSlope: 0
tangentMode: 136
- serializedVersion: 2
time: 0.41666666
value: 230.9231
inSlope: 0
outSlope: 0
tangentMode: 136
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.y
path:
classID: 224
script: {fileID: 0}
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
Expand Down
12 changes: 12 additions & 0 deletions Assets/ButtonTabs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ public class ButtonTabs : MonoBehaviour {
public TabsButton[] buttons;
public GameObject[] tabs;
int? currentlyOpened;
public Text saveButtonText;

void Start () {
foreach (var item in tabs) {
item.SetActive(false);
}
Open(1);
}

public void Open(int id) {
Expand All @@ -30,4 +32,14 @@ public void Open(int id) {
currentlyOpened = id;
}
}

public void Save() {
SaveSystem.Save();
saveButtonText.text = "Saved!";
StartCoroutine(RevertAfterTime());
}
IEnumerator RevertAfterTime() {
yield return new WaitForSeconds(1.5f);
saveButtonText.text = "Save";
}
}
13 changes: 11 additions & 2 deletions Assets/FilesBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@
using UnityEngine.UI;

public class FilesBox : MonoBehaviour {
public static FilesBox instance;

public GameObject fileNamePrefab;
public GameObject textSpawner;

void Awake() {
instance = this;
}

public void SetupTexts(List<string> files) {
for (int i = 0; i < textSpawner.transform.childCount; i++) {
Destroy(textSpawner.transform.GetChild(i).gameObject);
}
foreach (var item in files) {
GameObject go = Instantiate(fileNamePrefab, gameObject.transform.position, gameObject.transform.rotation);
go.transform.SetParent(gameObject.transform);
GameObject go = Instantiate(fileNamePrefab, textSpawner.transform.position, textSpawner.transform.rotation);
go.transform.SetParent(textSpawner.transform);
go.transform.localScale = go.transform.lossyScale;
go.GetComponent<Text>().text = item;
}
Expand Down
Binary file added Assets/Graphics/FilterButton smaller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions Assets/Graphics/FilterButton smaller.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Graphics/Icons/IC Save 24px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions Assets/Graphics/Icons/IC Save 24px.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Graphics/Icons/Map 128px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 916f9c1

Please sign in to comment.