-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve statusbar #125
Improve statusbar #125
Conversation
This makes the variable's contents far less confusing.
Also in capture mode the status bar displays frame 0 rather than the total number of frames.
Visually looks nice, will look over code and review the best I can on mobile ASAP. |
@@ -165,8 +165,7 @@ <h2 id="confirm-title"><i class="fa fa-exclamation-triangle"></i> Confirm</h2> | |||
|
|||
<div id="statusBar"> | |||
<ul> | |||
<li id="currentFrame">Current frame: <span>0</span></li> | |||
<li id="num-of-frames"><span>0 frames</span> captured</li> | |||
<li>Frame <span id="currentFrame">0</span> of <span id="num-of-frames">0</span></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go ahead and change this ID to current-frame
since you are already editing it.
+1
So do these need to be renamed too?
That does sound odd but 0 might sound worse. What does other software do in this matter? Also, don't we update the second value in capture mode? Then why not, while in capture mode, update both values to be exactly the same and always remain in sync (Frame 19 of 19, Frame 20 of 20, etc). |
No these have names that make sense :)
Well: Dragonframe in Live view
iStopMotionIn playback mode:In live view:A frame number is simply not shown in capture mode in iStopMotion. (I think...)
The 2nd number is updated when a picture is taken or deleted. When in capture mode and before a picture is taken saying @le717 I've decided after looking at the other programs that (with 18 pics captured and in capture mode) instead of saying Also thanks for reviewing my code here, I'll push a commit soon :) |
Anytime you have this ready, I'm ready. :) |
@le717 I've just pushed some changes. The status bar frame number is updated using a new function called |
@le717 the conflicts have been resolved! |
No dude, you resolve conflicts, not bring them back. :P |
…e-statusbar # Conflicts: # app/animator.html # app/js/main.js
@le717 ah you caught me before I edited it! ;) |
I've made the status bar more compact and less "wordy":
Before:
After:
I've also changed a couple of things that were bugging me:
Renamed curFrame
Firstly I've renamed the variable
curFrame
tototalFrames
. This was getting really confusing for me becausecurFrame
didn't really reflect the variable's purpose (which is to provide the total number of frames captured). Also the variablescurSelectedFrame
andcurPlayFrame
were similarly named tocurFrame
but act quite differently to it since they change value relatively frequently whilecurFrame
is more of a constant. In addition, the variablestatusBarCurFrame
was, despite its name, often not equal to varcurFrame
Changed frame number when in capture mode
When in capture mode the frame number in the status bar is now 0. It was previously equal to the number of frames captured (or the old
curFrame
) which was confusing because the last frame captured would also display a frame number ofcurFrame
.There is a debate to be had that instead of 0 the frame number in capture mode should one more than the frame total (ie 19 in the example above) - which is how Dragonframe works. However, I personally find this quite confusing and in this proposed form the status bar would say
frame 19 of 18
which does sound rather clumsy...