Kodi Community Forum
v14 Is it possible to create a 'subskin'-a skin that depends on and modifies another - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Transparency! (https://forum.kodi.tv/forumdisplay.php?fid=115)
+---- Thread: v14 Is it possible to create a 'subskin'-a skin that depends on and modifies another (/showthread.php?tid=228028)



Is it possible to create a 'subskin'-a skin that depends on and modifies another - -Alan - 2015-05-27

Hello there.

I like to fine-tune the skins I use directly in the xml files. At the moment I'm using a modded Transparency! skin and I don't want to lose the changes when I update it, and eventually I will need or want to update it.

I would like to know if there's a solution to that, perhaps some way to create a 'child' skin that replaces only some stuff.

If there's no way to do that, perhaps then there's a 'basic' skin I can use as a basis to develop my own skin for my specific needs. I don't want to create a skin from scratch.

Any help is appreciated.


RE: Is it possible to create a 'subskin'-a skin that depends on and modifies another - sualfred - 2015-05-27

Just copy the folder, rename it and edit the skin id things in the addon.xml. But you have to add the changes of the updates manually.
If you want to start creating your own, Conq is a good base.


RE: Is it possible to create a 'subskin'-a skin that depends on and modifies another - -Alan - 2015-05-27

Thanks. That's what I'm trying to avoid though...

Perhaps there's some kind of program that can automatically 'patch' xml files so I just make a patch with the changes and then the program will apply them to a given Transparency! version so I don't have to manually do that every time. Any ideas?

EDIT: I kinda gave up on making my own skin because it's so much work... modding Transparency! is the way to go.


RE: Is it possible to create a 'subskin'-a skin that depends on and modifies another - ronie - 2015-05-27

(2015-05-27, 20:44)-Alan Wrote: Perhaps there's some kind of program that can automatically 'patch' xml files so I just make a patch with the changes and then the program will apply them to a given Transparency! version so I don't have to manually do that every time. Any ideas?

assuming you're using windows:
http://gnuwin32.sourceforge.net/packages/diffutils.htm
http://gnuwin32.sourceforge.net/packages/patch.htm


RE: Is it possible to create a 'subskin'-a skin that depends on and modifies another - -Alan - 2015-05-28

(2015-05-27, 22:08)ronie Wrote:
(2015-05-27, 20:44)-Alan Wrote: Perhaps there's some kind of program that can automatically 'patch' xml files so I just make a patch with the changes and then the program will apply them to a given Transparency! version so I don't have to manually do that every time. Any ideas?

assuming you're using windows:
http://gnuwin32.sourceforge.net/packages/diffutils.htm
http://gnuwin32.sourceforge.net/packages/patch.htm
Thank you, however, those tools they are not 'xml-aware' afaik. I'd need a tool that identify and replaces xml blocks for a better compatibility, like a tool that identify something like this:
Code:
    <include name="VerticalSubMenuButtonAnim">
        <animation effect="zoom" start="258,219,1,288" end="258,219,310,288" time="200">Visible</animation>
        <animation effect="zoom" start="258,219,310,288" end="258,219,1,288" time="200">Hidden</animation>
    </include>
and replace the occurrence with some other data, no matter in which line it is... so I'd just have to configure what should replace what. If there's no such tool, I could make a simple one (python and xml parser).


RE: Is it possible to create a 'subskin'-a skin that depends on and modifies another - ronie - 2015-05-28

(2015-05-28, 06:47)-Alan Wrote: Thank you, however, those tools they are not 'xml-aware' afaik.

of course they are :-)


RE: Is it possible to create a 'subskin'-a skin that depends on and modifies another - -Alan - 2015-05-28

(2015-05-28, 11:25)ronie Wrote:
(2015-05-28, 06:47)-Alan Wrote: Thank you, however, those tools they are not 'xml-aware' afaik.

of course they are :-)

Nice. I never knew that. I thought diffutils and patch simply would work based on lines numbers (e.g.: deleted line x, inserted line "y" at z, etc.). Time to read some man-pages Smile.

Thank you.