Skip to content

u/SimpGameDev

In this archive from Mar 2022 to Jul 2022

2
posts
5
comments
2
media
11
score

Would have helped if you included some code.

Click on left arrow calls next(-1), click on right arrow calls next(1),

or you create separate next() and back() functions.

int currentIndex = 0;

void next(int dir){

int index = currentIndex + dir;

if(index <= 0){

currentIndex = clothesArray.length -1;

}

else if(index >= clothesArray.length){

currentIndex = 0;

}

else{

currentIndex = index;

}

}

2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.