2006-01-26, 01:32
new stuff added
this new stuff will work with any skin version, so no need for a version bump.
1. <execute> has been replaced with <onclick> in button/toggle button controls. <execute> will still work, but <onclick> is the favoured tag.
2. <onfocus> has been added to button controls. this performs the action when the button is focused rather than clicked. the action will be performed after any focus animation is completed. you can now have buttons that automatically do stuff when the user focuses them (most useful for switching screens).
3. an attribute always has been added to the <defaultcontrol> tag in windows. if set to true, then the default control will always be focused when the window is started (ie xbmc will not save the previous focused control.) it only works in custom windows and on the home page at this stage - i think that there may be a better way to do it yet, but am currently unsure. let me know if you have any bright ideas. the main reason for needing it is if you change windows on button focus, then return to the window it will change again before you can do anything.
4. added a new built in command replacewindow(window, path) which is identical to activatewindow except it doesn't add the current window to the window history, so going back from the new window will return you to the window before the current window. (eg home -> my music (via activatewindow) -> my videos (via replacewindow) then back will take you to home.)
5. the <id> tag is now optional for image, label and fadelabel controls, as they don't need it in most cases.
cheers,
jonathan
this new stuff will work with any skin version, so no need for a version bump.
1. <execute> has been replaced with <onclick> in button/toggle button controls. <execute> will still work, but <onclick> is the favoured tag.
2. <onfocus> has been added to button controls. this performs the action when the button is focused rather than clicked. the action will be performed after any focus animation is completed. you can now have buttons that automatically do stuff when the user focuses them (most useful for switching screens).
3. an attribute always has been added to the <defaultcontrol> tag in windows. if set to true, then the default control will always be focused when the window is started (ie xbmc will not save the previous focused control.) it only works in custom windows and on the home page at this stage - i think that there may be a better way to do it yet, but am currently unsure. let me know if you have any bright ideas. the main reason for needing it is if you change windows on button focus, then return to the window it will change again before you can do anything.
4. added a new built in command replacewindow(window, path) which is identical to activatewindow except it doesn't add the current window to the window history, so going back from the new window will return you to the window before the current window. (eg home -> my music (via activatewindow) -> my videos (via replacewindow) then back will take you to home.)
5. the <id> tag is now optional for image, label and fadelabel controls, as they don't need it in most cases.
cheers,
jonathan