Question about Skin
#1
Photo 
I try learn how to modify a skin and try add 1 button.

Image

1 . But my cursor form keyboard can not go to my new button.
2. If I want change the image this button. How I do it.

Thanks
Reply
#2
Have you set an <onleft> etc. for the favourites button?
Please read the online manual (wiki) & FAQ (wiki) before posting.

Skins: Estuary | Xperience1080
Opinion: Never purchase HTC products
Reply
#3
Please always post your code when asking questions.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
(2015-05-26, 18:26)phil65 Wrote: Please always post your code when asking questions.

Code:
        <control type="group" id="10">
            <left>20</left>
            <top>55r</top>
            <include>Window_OpenClose_Animation</include>
            <control type="button" id="20">
                <description>Power push button</description>
                <left>115</left>
                <top>0</top>
                <width>45</width>
                <height>45</height>
                <label>31003</label>
                <font>-</font>
                <onclick>ActivateWindow(ShutdownMenu)</onclick>
                <texturefocus border="5">floor_buttonFO.png</texturefocus>
                <texturenofocus border="5">floor_button.png</texturenofocus>
                <onleft>21</onleft>
                <onright>21</onright>
                <onup>9002</onup>
                <ondown>9003</ondown>
            </control>
            <control type="image">
                <description>Power Icon</description>
                <left>120</left>
                <top>5</top>
                <width>35</width>
                <height>35</height>
                <aspectratio>keep</aspectratio>
                <texture>icon_power.png</texture>
            </control>
            <control type="button" id="21">
                <description>Favourites push button</description>
                <left>60</left>
                <top>0</top>
                <width>45</width>
                <height>45</height>
                <label>1036</label>
                <font>-</font>
                <onclick>ActivateWindow(Favourites)</onclick>
                <texturefocus border="5">floor_buttonFO.png</texturefocus>
                <texturenofocus border="5">floor_button.png</texturenofocus>
                <onleft>20</onleft>
                <onright>20</onright>
                <onup>9002</onup>
                <ondown>9003</ondown>
            </control>
            <control type="image">
                <description>Favourites Icon</description>
                <left>65</left>
                <top>5</top>
                <width>35</width>
                <height>35</height>
                <aspectratio>keep</aspectratio>
                <texture>icon_favourites.png</texture>
            </control>
            
            <control type="button" id="5">
                <description>Settings push button</description>
                <left>5</left>
                <top>0</top>
                <width>45</width>
                <height>45</height>
                <label>31959</label>
                <font>-</font>
                <onclick>ActivateWindow(Settings)</onclick>
                <texturefocus border="5">floor_buttonFO.png</texturefocus>
                <texturenofocus border="5">floor_button.png</texturenofocus>
                <onleft>59</onleft>
                <onright>59</onright>
                <onup>9002</onup>
                <ondown>9003</ondown>            
            </control>
            <control type="image">
                <description>Settings Icon</description>
                <left>10</left>
                <top>5</top>
                <width>35</width>
                <height>35</height>
                <aspectratio>keep</aspectratio>
                <texture>icon_search.png</texture>
            </control>    
            
            
            
        </control>

I did change in Home.xml.
My goal is make a Settings button and want to change the picture (search for now)

Thanks.
Reply
#5
(2015-05-26, 18:14)Piers Wrote: Have you set an <onleft> etc. for the favourites button?

Hi,

On Power button <onleft>21</onleft>
Favorites button <onleft>20</onleft>

If I want to add one more Setting button what is the value for <onleft>
Reply
#6
(2015-05-26, 18:14)Piers Wrote: Have you set an <onleft> etc. for the favourites button?

Thanks, I know what is means <onleft> or <onright>

Code:
<control type="button" id="5">
                <description>Settings push button</description>
                <left>5</left>
                <top>0</top>
                <width>45</width>
                <height>45</height>
                <label>31959</label>
                <font>-</font>
                <onclick>ActivateWindow(Settings)</onclick>
                <texturefocus border="5">floor_buttonFO.png</texturefocus>
                <texturenofocus border="5">floor_button.png</texturenofocus>
                <onleft>20</onleft>
                <onright>21</onright>
                <onup>9002</onup>
                <ondown>9003</ondown>            
            </control>
            <control type="image">
                <description>Settings Icon</description>
                <left>10</left>
                <top>5</top>
                <width>35</width>
                <height>35</height>
                <aspectratio>keep</aspectratio>
                <texture>icon_search.png</texture>
            </control>


Next question:

How to change the image, right now I use icon_search.png. If I make new icon, how I upload to Kodi?
Reply
#7
%skinfolder%/media

http://kodi.wiki/view/Skin_structure
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#8
(2015-05-26, 19:16)sualfred Wrote: %skinfolder%/media

http://kodi.wiki/view/Skin_structure

Hi Need use TexturePacker. How to add more picture in existing Textures.xbt?
Reply
#9
I found solution:

https://github.com/e0xify/KodiXBMCTextur...exture.exe

Thanks All.
Reply

Logout Mark Read Team Forum Stats Members Help
Question about Skin0