Support and General Use > Theming and Appearance Customization

alternative to sublines, useful?

<< < (2/3) > >>

JdGordon:
heading to bed, but I think you cant put images in the current sublines (they wont be cleared when it is not their turn) which this would allow

Llorean:
I've seen WPSes with animated images. I'm pretty sure I've seen it even as far back as dancepuffduo using, if I recall, mono bitmaps before we even had grayscale images.

Besides, wouldn't that mean the solution is to fix it for use within the current method for doing alternating sublines, rather than splitting the functionality between the two (one can do different times per line, the other can do images, but you can't do both with a single method...)

[Saint]:
JdGordon is correct (sortof), you *can* put images in the current subline syntax, but the current subline code won't clear the images if it isn't their turn to be displayed.

However when I'm using sublines to display images it is almost always an animation and draws the next image overtop of the previous one, so unless you use transparency in your images...this isn't a problem.

The one problem I have with this is the fact that it can only have one time increment, as in some (or most actually) of my animations I will display image A for 200ms, image B for 1 second, image C for 500ms etc.

Other than that, I think it could be useful in *some* areas of my code at least, to save massive subline lines and cut down the total size of my WPS/SBS by a little, but as I stated previously I could only use it when all the sublines share the same display period, like for my Now Playing/Next Track info.

I could at least use this tag in *some* places but the fact that I couldn't use it in *all* the places I require sublines I think might make it harder for someone else to read my code, as there would be two distinct syntaxes doing essentially the same thing.

I definitely think it is worth including, but not necessarily to make the code any easier to read, just for the fact that it can cut back a little bit of bloat in some areas at least.

As long as it is included as well as, in not in place of, the regular subline tags...I don't see a problem with it going in at all.
Though, apparently others do...so "meh"  ;)


[St.]

Llorean:
It seems odd to argue for adding *mandatory* bloat so as to cut back on *optional* bloat.

audio-i:

--- Quote from: [St.] on April 19, 2010, 01:44:33 PM ---However when I'm using sublines to display images it is almost always an animation and draws the next image overtop of the previous one, so unless you use transparency in your images...this isn't a problem.

--- End quote ---
That problem can be avoided if you alternate (equally sized and placed) viewports instead of images; the replacing viewport clears completely the preceding one (or overwrites it, I don't know), even if it contains images with transparencies. That way you can even alternate images and text (accurate text placing would be restricted though)

If I'm understanding this right, the new tag would mean an improvement in that sense because no equally sized alternating viewports would be needed, or it would even be possible to alternate the elements (such as images and/or text), but would force the alternating intervals to be equal, which in my opinion, is a huge restriction. The other arguments, making alternating easier to code on WPSs and easier to read for others, are nice, but in my opinion secondary.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version