Support and General Use > Theming and Appearance Customization
Scrolling margins
BdN3504:
I'm trying to create my own WPS and am now facing minor complications regarding scrolling margins. For now, scrolling margins can be implemented to let a text in one line start scrolling from a specific point which is defined by %s%m |x|, if i got that right. But that point is atuomatically aligned on the left. I want to know if there is a way of implementing a scrolling margin on the right. And the best would be if there was a modifictation to %s%m command which modifies from where to where a text scrolls.
like this %s%m|x|y|
For example %s%m|32|64| this text scrolls bewtween 32 and 64
results in: #32#this text scrolls between 32 a#64#
i hope you understand what i'm trying to get through to you.
MarcGuay:
Sounds like a job for viewports. See the CustomWPS wiki page.
BdN3504:
Ok, thanks, viewports helped indeed.
I got a question concerning viewports now. Is it possible to put a viewport containing the progress bar above another one, which contains an image of an "empty" progress bar, so that the full one overlaps the empty bar? Because in the cabbiev2 theme for example the "empty" progress bar is simply drawn onto the background.
MarcGuay:
Viewports can't overlap/be layered. Why not just include it in the background the same way it's done in the default theme? And by statusbar do you mean the progress bar?
Arwym:
Since I was looking for the same help, I would like to ask in this same thread (I hope you don't mind) something about the viewports. I am not sure I understood what the wiki says about them very well: can the viewports be transparent? I don't want to apply any colors to them, because what I am looking for is a way to set a margin between two elements.
Also, something about %m... Is there really any reason why this can only be used for the left? I think there should be something like %m|top|right|bottom|left. Think of how 'margin' works in CSS.
Navigation
[0] Message Index
[#] Next page
Go to full version