Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  %?cM %?cl tags (VISUAL CLOCK)
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: %?cM %?cl tags (VISUAL CLOCK)  (Read 7766 times)

Offline ew

  • Member
  • *
  • Posts: 52
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #15 on: January 22, 2010, 12:17:02 PM »
How about some sort of a compromise.  Allow the time tags to also function as conditionals.  That way, images could be loaded and displayed as conditions.

Yeah....the conditions may look ugly, but that becomes a function of the WPS....


Just an idea for what it is worth.
Logged

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #16 on: January 22, 2010, 12:34:20 PM »
THATS EXACTLY WHAT I'd LIKE!!!
%?cM<%xdaa|%xdab|...blahblahblah...>
Rockbox already uses same thing for custom seekbars, custom volumebars and indication, custom battery indication and so on...
By adding something like this we would be even able to make themes that correspond to time (like changing text color in case its evening or midday to make it more readable), imagine custom clocks in custom statusbars (many people will no longer have to poke their noses into small screens to get the time right), doesnt it make sence at all?
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #17 on: January 22, 2010, 12:46:11 PM »
(from an earlier post in this thread...) raudonkepuraite, I don't know exactly where you only get 60 images from, as there are 60 minutes in an hour, and twelve hours around the clock face, so in order to be completely accurate you'd need 12 time 60 (or 720) images (since you can reuse the same images for the time in AM and in PM)... 60 images would at best give you a degree of accuracy of every 12 minutes, which really isn't accurate enough for most people... Even if you only went to a degree of accuracy of every 5 minutes you'd still need 144 images...

(from the most recent post) Yeah, somehow I still don't see any practical ideas coming out of any of this... The status bar is in most cases not very large, so a custom clock using images wouldn't be any better than a simple text-based clock... As for the idea of themes changing colour... Most theme designers pick a colour for their text that makes it most easily readable on whatever background they decide to use, a theme that changes the text colour based on the time of day would be impractical since it would still have to leave the text readable on the background, and you'd have to rewrite all of the viewport code displaying your text for each colour you decided to use (leading to unnecessary bloat, in my opinion...)
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline ew

  • Member
  • *
  • Posts: 52
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #18 on: January 22, 2010, 01:10:53 PM »
OK - to display a visual clock with no changes to the current software ;D
- find an audio file that is EXACTLY 12 hours long
- start it up EXACTLY at noon or midnight
- use the track time %pc to display as a large font - in fact forget any additional information on the wps since the player is not useless as anything but a clock.
- for advanced themes, use the progress bar to display against a timeline (sorta like a straight sundial)

Now, for a 24 hour clock, all that is needed is an audio file that is exactly 24 hours long.

(if you don't like my attempt at humor I apologize in advance)
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #19 on: January 22, 2010, 01:15:15 PM »
Quote from: karashata on January 22, 2010, 12:46:11 PM
(from an earlier post in this thread...) raudonkepuraite, I don't know exactly where you only get 60 images from, as there are 60 minutes in an hour, and twelve hours around the clock face, so in order to be completely accurate you'd need 12 time 60 (or 720) images (since you can reuse the same images for the time in AM and in PM)...

Theoretically, using "the magical transparency colour", that could be done with 12 images for the hours, and 60 images for the minutes.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #20 on: January 22, 2010, 01:18:26 PM »
Quote from: ew on January 22, 2010, 01:10:53 PM
OK - to display a visual clock with no changes to the current software ;D
snip
(if you don't like my attempt at humor I apologize in advance)
Or just use the clock plugin.   ;)

It seems to me that if you want to render an analog clock in the WPS, then the best way would be to allow for drawing of primitive lines rather than just displaying images in the WPS.
« Last Edit: January 22, 2010, 01:20:00 PM by Chronon »
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #21 on: January 22, 2010, 01:20:51 PM »
OH be more creative! (and btw Rockbox can only use 280 contitions of one tag if ui simulator is right).
THIS GOES FOR ANALOGS (I dont prefer this kind of approach for analog clocks... VISUAL CLOCK doesn't mean analog clock)
Still THERE IS NO NEED TO MAKE THOUSANDS OF IMAGES for them. You make 60 images for the minutes (its really easy as you only need to make a line and then you can just rotate it whatever you want using photoshop or even paint :D) and then you make 12 more for outer ring for displaying hours... Or you don't make any at all and just use digits to display hours. There are many ways to make it look right, you can make binary clocks if you want, morse clocks, then you can even make sun clocks (I'm just making some ideas here).

AND ABOUT NORMAL (well i mean digital) clocks
Quote from: bakseetdrivr on January 22, 2010, 09:31:33 AM
2nded, I've been using one of my rockboxed players as an alarm clock and tried to make a suitable theme,  but having a huge font makes menu navigation nearly impossible. If this was committed, it would fix that problem :).
Here is one problem... but of course you are going to suggest multifonts... right? Well yeah its better to reserve additional 60kb for a huge font than use 5kb (in worse case) to make a custom clock? MOST themes aren't using even half image buffer (using like 30kb-50kb assuming that we have sansa fuze in mind). As far as i know that buffer (or whatever it's called) size is constant... right? So we lose nothing here if we use custom clocks.
Text based clocks are small, image based clock would be wonderful solution.
« Last Edit: January 22, 2010, 01:25:31 PM by raudonkepuraite »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #22 on: January 22, 2010, 01:31:16 PM »
have you actually tried using conditionals with the %c tags? any which just return a number should work.

edit: ok, i thought the displayer tried doing number conversions... it doesnt. inore this post
« Last Edit: January 22, 2010, 01:37:37 PM by JdGordon »
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #23 on: January 22, 2010, 01:40:11 PM »
Well, thats the problem- no %c tags that should show time can be used as conditionals :(. Too bad, huh :(
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #24 on: January 22, 2010, 01:46:02 PM »
no promises that this works, totally untested...
* clock_conditionals.txt (3.26 kB - downloaded 198 times.)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #25 on: January 22, 2010, 01:51:58 PM »
Quote from: audio-i on January 22, 2010, 01:15:15 PM
Theoretically, using "the magical transparency colour", that could be done with 12 images for the hours, and 60 images for the minutes.

The transparency colour doesn't work for drawing images over other images, since the transparency draws the background in place of the transparency colour (so all you'd see would be whichever image you drew overtop of the first one)...

Quote from: raudonkepuraite on January 22, 2010, 01:20:51 PM
OH be more creative! (and btw Rockbox can only use 280 contitions of one tag if ui simulator is right).
THIS GOES FOR ANALOGS (I dont prefer this kind of approach for analog clocks... VISUAL CLOCK doesn't mean analog clock)
Still THERE IS NO NEED TO MAKE THOUSANDS OF IMAGES for them. You make 60 images for the minutes (its really easy as you only need to make a line and then you can just rotate it whatever you want using photoshop or even paint :D) and then you make 12 more for outer ring for displaying hours... Or you don't make any at all and just use digits to display hours. There are many ways to make it look right, you can make binary clocks if you want, morse clocks, then you can even make sun clocks (I'm just making some ideas here).

AND ABOUT NORMAL (well i mean digital) clocks
Quote from: bakseetdrivr on January 22, 2010, 09:31:33 AM
2nded, I've been using one of my rockboxed players as an alarm clock and tried to make a suitable theme,  but having a huge font makes menu navigation nearly impossible. If this was committed, it would fix that problem :).
Here is one problem... but of course you are going to suggest multifonts... right? Well yeah its better to reserve additional 60kb for a huge font than use 5kb (in worse case) to make a custom clock? MOST themes aren't using even half image buffer (using like 30kb-50kb assuming that we have sansa fuze in mind). As far as i know that buffer (or whatever it's called) size is constant... right? So we lose nothing here if we use custom clocks.
Text based clocks are small, image based clock would be wonderful solution.

As I stated above, you can't draw one image over another an have the bottom image still displayed, even with the transparency colour, so you couldn't use your idea for an analog clock...

I hadn't taken into account morse clocks or other styles of visual clocks, but those would likely still have the drawback of taking up a lot of screen space, especially on the smaller screened DAPs... (Plus, those could be pretty confusing for anyone who doesn't understand them...) As for the digital clock, there is JDGordon's patch, wherever it went... It would probably need some work done to it to work with the recent code...

The text based clock is only as small as the font used to display it... Assuming the clock uses the UI font, it should be just as easy to read as the rest of the UI, if it's using the built-in system font it would definitely be hard to read on the larger screened DAPs with their higher DPI ratios... On the smaller screened DAPs with lower DPI ratios the system font is still quite readable...
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #26 on: January 22, 2010, 02:21:39 PM »
Gee, didn't I write outer ring? Well I meant square. Do you get it now?...  I just don't know how to explain you this, anyway lets leave those analog clocks for a while, ok?
Transparency colour is useless anyway (except when using %x tag, but the image then is "solid"... you cant do anything with it). This is huge problem for themers as well, believe me, it's one of the main problems why rockbox looks so... dev like (actually it looks worse to me ^^)
The problem is that text based clock IS only as small as the font used to display it. So if you want bigger clock you have to use bigger font... BIG FONTS SCREW UP EVERYTHING. Try putting 35px height font on 360x240 or 220x176 screen... veeery readable, isn't it?

edit: BTW, I want to test the patch provided by JdGordon... this might sound stupid, but is is there any possibility that I might brick my player  :-[ ?
« Last Edit: January 22, 2010, 02:34:18 PM by raudonkepuraite »
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #27 on: January 22, 2010, 02:32:28 PM »
Quote from: karashata on January 22, 2010, 01:51:58 PM
Quote from: audio-i on January 22, 2010, 01:15:15 PM
Theoretically, using "the magical transparency colour", that could be done with 12 images for the hours, and 60 images for the minutes.

The transparency colour doesn't work for drawing images over other images, since the transparency draws the background in place of the transparency colour (so all you'd see would be whichever image you drew overtop of the first one)...

Have you tried it? In this simple example you'll see what I mean


Background + image 1 + image 2 = final image displayed
« Last Edit: October 29, 2010, 01:31:29 AM by audio-i »
Logged

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #28 on: January 22, 2010, 02:36:22 PM »
Quote from: audio-i on January 22, 2010, 02:32:28 PM
Quote from: karashata on January 22, 2010, 01:51:58 PM
Quote from: audio-i on January 22, 2010, 01:15:15 PM
Theoretically, using "the magical transparency colour", that could be done with 12 images for the hours, and 60 images for the minutes.

The transparency colour doesn't work for drawing images over other images, since the transparency draws the background in place of the transparency colour (so all you'd see would be whichever image you drew overtop of the first one)...

Have you tried it? In this simple example you'll see what I mean http://www.fileden.com/files/2008/2/11/1754365/test.zip (ipod video)


Background + image 1 + image 2 = final image displayed

  + + =

This wont work with anything that has tags (I had already tried it with custom volumebars and seekbars)
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: %?cM %?cl tags (VISUAL CLOCK)
« Reply #29 on: January 22, 2010, 02:41:34 PM »
The last time I remember ever trying to draw images over other images (or text over images), the way transparency was handled was to draw the background in place of the transparency colour regardless of whether an image (or text) was overlapping another image. That may have changed since the last time I tried it though...
Logged
Welp, my iriver H10 20GB is out of commission again.

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  %?cM %?cl tags (VISUAL CLOCK)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.107 seconds with 14 queries.