Skip to content

Commit

Permalink
placeholder postcard review icon
Browse files Browse the repository at this point in the history
  • Loading branch information
levimhuillet committed Sep 27, 2024
1 parent d3f51bc commit b12f821
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Assets/Project/Prefabs/GameConsts.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ MonoBehaviour:
IncorrectColor: {r: 1, g: 0, b: 0, a: 1}
DefaultCursor: {fileID: 0}
GrabCursor: {fileID: 2800000, guid: e092f32e3e649f1408900c7496466b14, type: 3}
NotationColors: []
PostcardIcon: {fileID: 21300000, guid: d4d2c857c7b00a64d8bbfc6363fb3d94, type: 3}
2 changes: 2 additions & 0 deletions Assets/Project/Scripts/General/GameConsts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class GameConsts : MonoBehaviour
public Texture2D GrabCursor;

public Color[] NotationColors;

public Sprite PostcardIcon;
}

static public class GameEvents
Expand Down
Binary file added Assets/Project/Sprites/postcard-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
135 changes: 135 additions & 0 deletions Assets/Project/Sprites/postcard-icon.png.meta

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

3 changes: 2 additions & 1 deletion Assets/ReviewItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public void PopulatePuzzle(ReviewQueue queue, PostcardPuzzle obj, float time, in
m_Timer = new Timer(time);
m_RefPuzzleObject = obj;
m_Points = pts;
m_Image.sprite = null; // obj.Data.Represent2D;
GameConsts consts = FindObjectOfType<GameConsts>();
m_Image.sprite = consts.PostcardIcon;
}

private bool CheckCorrect() {
Expand Down

0 comments on commit b12f821

Please sign in to comment.