http://wiki.webos-internals.org/index.php?title=Patch_Camera_10_Second_Countdown_Timer&feed=atom&action=historyPatch Camera 10 Second Countdown Timer - Revision history2024-03-29T11:29:05ZRevision history for this page on the wikiMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=Patch_Camera_10_Second_Countdown_Timer&diff=3483&oldid=prevHopspitfire at 23:12, 2 August 20092009-08-02T23:12:29Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:12, 2 August 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{template:patch}}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_Camera_10_Second_Countdown_Timer&diff=3363&oldid=prevHopspitfire: Camera Mod 10 Second Countdown Timer moved to Patch Camera 10 Second Countdown Timer: app specific patch2009-08-01T06:23:41Z<p><a href="/wiki/Camera_Mod_10_Second_Countdown_Timer" class="mw-redirect" title="Camera Mod 10 Second Countdown Timer">Camera Mod 10 Second Countdown Timer</a> moved to <a href="/wiki/Patch_Camera_10_Second_Countdown_Timer" title="Patch Camera 10 Second Countdown Timer">Patch Camera 10 Second Countdown Timer</a>: app specific patch</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 06:23, 1 August 2009</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_Camera_10_Second_Countdown_Timer&diff=2911&oldid=prevHopspitfire at 16:58, 29 July 20092009-07-29T16:58:38Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:58, 29 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">= 10 second countdown timer mod=</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_Camera_10_Second_Countdown_Timer&diff=2910&oldid=prevHopspitfire: New page: = 10 second countdown timer mod= I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry) First the Vi...2009-07-29T16:58:27Z<p>New page: = 10 second countdown timer mod= I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry) First the Vi...</p>
<p><b>New page</b></p><div>= 10 second countdown timer mod=<br />
<br />
I made a mod of this mod so that instead of a 2.5sec delay, you get a 10 second countdown timer complete with animated countdown! (-- retry)<br />
<br />
First the View needs to start at 10 (or any other value you want really)<br />
<pre><nowiki><br />
<div class="capture-button capture-timer-button" id="captureTimerButton">10</div><br />
</nowiki></pre><br />
<br />
Then edit javascripts/camera-control.js . This is the biggest mod of the OP's work. Notice I am still using the same captureTimer method name but its contents are different, and it calls a new method, captureTimerLoop, and there are two class properties used. If you are using something other than 10 seconds, make sure you change both of the 10's here, so that all three 10's are identical. If I knew a way to call a public class property in the view, this could be a single config var, ah well.<br />
<pre><nowiki><br />
<br />
_captureTimerLoopCount:10,<br />
_captureTimerIntId:false,<br />
captureTimerLoop: function(){<br />
--this._captureTimerLoopCount;<br />
this.scene.controller.get('captureTimerButton').innerHTML = this._captureTimerLoopCount<br />
if ( this._captureTimerLoopCount == 0 ) {<br />
this.scene.controller.window.clearInterval(this._captureTimerIntId);<br />
this.capture();<br />
this._captureTimerIntId = false;<br />
this._captureTimerLoopCount = 10;<br />
this.scene.controller.get('captureTimerButton').innerHTML = this._captureTimerLoopCount;<br />
}<br />
},<br />
<br />
/** hack<br />
* Perform capture with timer delay<br />
*<br />
* @return Returns true if the capture started successfully.<br />
*/<br />
captureTimer: function(){<br />
if ( !this._captureTimerIntId ) {<br />
this._captureTimerIntId = this.scene.controller.window.setInterval( function(){<br />
this.captureTimerLoop();<br />
}.bind(this), 1000 );<br />
}<br />
},<br />
<br />
</nowiki></pre><br />
<br />
For stylesheets/camera.css , I merely added a font color of white so the seconds countdown contrasts nicely. I tried to place the count in the center, but it messed up the neighboring images, and I rather like the way it looks off on the far upper left.<br />
<pre><nowiki><br />
.capture-timer-button {<br />
background: url(../images/menu-capture-timer.png) top left no-repeat;<br />
left: 155px;<br />
color: white;<br />
}<br />
</nowiki></pre><br />
<br />
And that's it. Now restart the GUI with :<br />
<pre><nowiki><br />
root@castle:/# initctl stop LunaSysMgr && initctl start LunaSysMgr<br />
</nowiki></pre><br />
<br />
Wait for the GUI to come back and snap some delayed shots!<br />
<br />
When you're happy with the hack, don't forget to remount the root fs read-only:<br />
<pre><nowiki><br />
mount -o remout,ro /<br />
</nowiki></pre><br />
<br />
My thanks to the OP for this hack which helped me to get some understanding of how Luna apps function.</div>Hopspitfire