2010-07-17, 06:08
hi everyone,
after looking around a bit, i have now settled for xbmc as my media center app. currently i am using jeroen's refocus skin. i think it is awesome, but i would also love to improve on it. for example - support for simplified chinese would be good, and i also would like to improve my own configuration.
so i set out to do my own skin, to learn how things work internally, learn about how events are processed and what the concepts are - and also, i want to try wether or not it is possible to implement a certain structure (my best description, in short, would be "i-pod style")
now i started with the "empty" skin, took some cues from refocus, and from other skins, and i am stuck with a few things:
a.) onright -> activatewindow
is it possible to activate a window when the user presses "right" on an item in a list without compromising the function of "right" in any other situation? basically so that "select" and "right" do the same thing on a specific button?
b.) onleft -> back
same thing, but going up to the previous menu when "left" is clicked.
c.) different animations based on direction
if you look at the menu as a tree, it will have things that are more towards the root and others that are more towards the branches. now i want to do a different animation depending on wether we're going up (towards the root) or down (towards the branches).
root -> branches
- closing the window zooms 100->120 and slides out to the left
- opening window zooms 50->100 and slides in from the right
branches -> root
- closing the window zooms 100->120 and slides out to the left
- opening window zooms 50->100 and slides in from the right
i thought that this might be achieved using conditions and the z-index ... but i would have to compare the outgoing and incoming window's z-values ... how do i do that?
any hints, pointers, help would be appreciated ... and ... plenty more stupid questions where this came from, i just dont remember them right now
.rm
after looking around a bit, i have now settled for xbmc as my media center app. currently i am using jeroen's refocus skin. i think it is awesome, but i would also love to improve on it. for example - support for simplified chinese would be good, and i also would like to improve my own configuration.
so i set out to do my own skin, to learn how things work internally, learn about how events are processed and what the concepts are - and also, i want to try wether or not it is possible to implement a certain structure (my best description, in short, would be "i-pod style")
now i started with the "empty" skin, took some cues from refocus, and from other skins, and i am stuck with a few things:
a.) onright -> activatewindow
is it possible to activate a window when the user presses "right" on an item in a list without compromising the function of "right" in any other situation? basically so that "select" and "right" do the same thing on a specific button?
b.) onleft -> back
same thing, but going up to the previous menu when "left" is clicked.
c.) different animations based on direction
if you look at the menu as a tree, it will have things that are more towards the root and others that are more towards the branches. now i want to do a different animation depending on wether we're going up (towards the root) or down (towards the branches).
root -> branches
- closing the window zooms 100->120 and slides out to the left
- opening window zooms 50->100 and slides in from the right
branches -> root
- closing the window zooms 100->120 and slides out to the left
- opening window zooms 50->100 and slides in from the right
i thought that this might be achieved using conditions and the z-index ... but i would have to compare the outgoing and incoming window's z-values ... how do i do that?
any hints, pointers, help would be appreciated ... and ... plenty more stupid questions where this came from, i just dont remember them right now
.rm