Skip to content

Commit

Permalink
add animation button image
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 16, 2023
1 parent df1c067 commit 969e010
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
Binary file added public/ui/backButton_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ui/nextButton_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions src/components/TraitInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,16 @@ export default function TraitInformation({currentVRM, animationManager}){
</div>
<br/>
<div className={styles["animationSelect"]}>
<button
className={styles["traitInfoText"]}
<div
className={`${styles["anim-button"]} ${styles["left-button"]}`}
onClick={prevAnimation}
>1</button>
></div>
<div className={styles["traitInfoText"]}>{animationName}</div>
<button
className={styles["traitInfoText"]}
<div
//`${styles.class1} ${styles.class2}`
className={`${styles["anim-button"]} ${styles["right-button"]}`}
onClick={nextAnimation}
>1</button>
></div>
</div>
</div>

Expand Down
34 changes: 34 additions & 0 deletions src/components/TraitInformation.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,37 @@
height:40px;
align-items: center;
}

.anim-button {

cursor: pointer;
overflow: hidden;
opacity: 0.8;
width: 32px;
height: 32px;
margin: 2px;
text-align: center;
outline-color: #3b434f;
outline-width: 2px;
outline-style: solid;
align-items: center;
margin-bottom: 30px;
background-color: #1e2530;
}
.left-button{
background: url('/ui/backButton_small.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

.right-button{
background: url('/ui/nextButton_small.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

.anim-button:hover {
opacity: 1;
}

0 comments on commit 969e010

Please sign in to comment.