Problem naming new view for Arctic: Zephyr
#1
Hello everyone,
Last night I modded the bigwide view, now it shows trailers instead of fanarts on advanced launcher. that's working but with some minor problems that I posted on the development section.

Other problem that I have is the naming on the context menu. The name stays the same "big wide". How can I change the name on the context menu. I can't seem to understand the concept. Here is another exemple, the "View_503_Poster_Square" has the name "Big Icons" on the context menu but I don't find this name on any xml file.

If it's not too much ask, if you can, visit the thread on the development section. I posted the naming question here because for me its related with the skin and not so much with kodi skinning in general.
Arctic: Zephyr MOD game trailers


Thanks and best regards
Reply
#2
http://kodi.wiki/view/List_Container

<viewtype label="xxx">list</viewtype> where 'x' is kodi default view naming.

viewtype :
The type of view. Choices are list, icon, wide, wrap, biglist, bigicon, bigwide, bigwrap, info and biginfo. The label attribute indicates the label that will be used in the "View As" control within the GUI. It is localizable via strings.xml. viewtype has no effect on the view itself. It is used by kodi when switching skin to automatically select a view with a similar layout. Skinners should try to set viewtype to describe the layout as best as possible.

These can be found in the default strings.po in kodi Git: https://github.com/xbmc/xbmc/blob/master...strings.po
eg: line 2434
msgctxt "#540"
msgid "Big wide"
msgstr ""
Reply
#3
Thanks for the help and the info.

In this code the developer defined a view name on Kodi view selector- it's for confluence

PHP Code:
                <viewtype label="AEL Matrix">info</viewtype>
                <
pagecontrol>60</pagecontrol>
                <
scrolltime>200</scrolltime
All the code is HERE

where can I put this on "my" code

PHP Code:
<includes>
    <include 
name="View_BigInfoTrailer">
        <
description>List View (id=513)</description>
        <
control type="group">
            <
viewtype label="AEL Matrix">bigwide</viewtype>
                <
pagecontrol>60</pagecontrol>
                <
scrolltime>200</scrolltime>
            <include>
Animation.Common</include>
            <
visible>Control.IsVisible(513)</visible>
            <
control type="group">
                <
top>PosterPad</top>
                <
left>SidePad</left>
                <
right>SidePad</right>
                <
height>640</height>
                <
control type="image">
                    <
left>-8</left>
                    <
right>-8</right>
                    <
top>-8</top>
                    <
bottom>-8</bottom>
                    <
texture border="15" colordiffuse="Panel">common/rounded-shadow8.png</texture>
                </
control>
                <
control type="wraplist" id="513">
                    <
visible>substring(Container.FolderPath,plugin://plugin.program.advanced.emulator.launcher/,left) | Container.Content(musicvideos) | Container.Content(artists) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(episodes) | Container.Content(sets)</visible>
                    
<width>1112</width>
                    <
right>0</right>
                    <
top>0</top>
                    <
bottom>0</bottom>
                    <
onup condition="!Skin.HasSetting(global.kioskmode)">9000</onup>
                    <
ondown>60</ondown>
                    <
onleft>513</onleft>
                    <
onright>513</onright>
                    <
preloaditems>0</preloaditems>
                    <
pagecontrol>60</pagecontrol>
                    <
orientation>horizontal</orientation>
                    <
viewtype label="540">list</viewtype>
                    <
scrolltime tween="quadratic">400</scrolltime>
                    <
itemlayout height="640" width="1112">
                        <
control type="videowindow">
                            <
top>0</top>
                            <
right>0</right>
                            <
width>100%</width>
                            <
height>100%</height>
                            <
aspectratio scalediffuse="false">scale</aspectratio>
                        </
control>
                    </
itemlayout>

                    <
focusedlayout height="640" width="1112">
                        <
control type="videowindow">
                            <
top>0</top>
                            <
right>0</right>
                            <
width>100%</width>
                            <
height>100%</height>
                            <
aspectratio scalediffuse="false">scale</aspectratio>
                        </
control>
                        
                        <
control type="button">
                        <
onfocus condition="!IsEmpty(ListItem.Trailer)">PlayMedia($INFO[ListItem.trailer],1)</onfocus>
                        <
onunfocus condition="Player.HasVideo">PlayerControl(Stop)</onunfocus>
                        <
texturefocus>-</texturefocus>
                        <
texturenofocus>-</texturenofocus>
                        <
animation type="Focus">
                            <
effect type="fade" delay="1" start="0" />
                        </
animation>
                        </
control>
                    </
focusedlayout>
                </
control>
                <
control type="group">
                    <
left>30</left>
                    <
right>1142</right>
                    <
top>10</top>
                    <
bottom>30</bottom>
                    <
control type="label">
                        <
top>10</top>
                        <
aligny>center</aligny>
                        <
height>64</height>
                        <
font>SmallBold</font>
                        <
scroll>true</scroll>
                        <
textcolor>PanelWhite100</textcolor>
                        <
selectedcolor>PanelWhite100</selectedcolor>
                        <
label>$INFO[ListItem.Label]</label>
                    </
control>
                    <
control type="label">
                        <
top>50</top>
                        <
height>64</height>
                        <
aligny>center</aligny>
                        <
font>Tiny</font>
                        <
textcolor>PanelWhite100</textcolor>
                        <
selectedcolor>PanelWhite100</selectedcolor>
                        <
label>$VAR[LabelGenre]</label>
                    </
control>
                    <
control type="textbox">
                        <
top>125</top>
                        <
height>424</height>
                        <
align>justify</align>
                        <
font>Tiny</font>
                        <
textcolor>PanelWhite100</textcolor>
                        <
selectedcolor>PanelWhite100</selectedcolor>
                        <
label>$VAR[LabelPlotBox]</label>
                    </
control>
                    <
control type="label">
                        <
bottom>0</bottom>
                        <
height>30</height>
                        <
aligny>center</aligny>
                        <
align>right</align>
                        <
font>Tiny</font>
                        <
textcolor>PanelWhite70</textcolor>
                        <
selectedcolor>PanelWhite70</selectedcolor>
                        <
label>$VAR[LabelDuration]$INFO[ListItem.Rating,  •  ]</label>
                        <
visible>!Container.Content(movies) + !Container.Content(episodes)</visible>
                    </
control>
                    <
control type="label">
                        <
bottom>0</bottom>
                        <
height>30</height>
                        <
aligny>center</aligny>
                        <
align>right</align>
                        <
font>Tiny</font>
                        <
textcolor>PanelWhite70</textcolor>
                        <
selectedcolor>PanelWhite70</selectedcolor>
                        <
label>$INFO[ListItem.Year,,  •  ]$INFO[ListItem.Rating]</label>
                        <
visible>substring(Container.FolderPath,plugin://plugin.program.advanced.emulator.launcher/,left)</visible>
                    
</control>
                    <
control type="image">
                        <
centerleft>12</centerleft>
                        <
centerbottom>12</centerbottom>
                        <
width>32</width>
                        <
height>32</height>
                        <
aspectratio aligny="top">keep</aspectratio>
                        <
texture>$VAR[PercentWatched]</texture>
                        <
visible>!stringcompare(ListItem.Label,..)</visible>
                    </
control>
                </
control>
            </
control>
            <include>
Furniture_Scrollbar_Horizontal</include>
        </
control>
    </include>
   
    <include 
name="BigWideContent">
        <
top>PosterPad</top>
        <
left>SidePad</left>
        <
right>SidePad</right>
        <
height>640</height>
        <
control type="image">
            <
left>-8</left>
            <
right>-8</right>
            <
top>-8</top>
            <
bottom>-8</bottom>
            <
texture border="15" colordiffuse="Panel">common/rounded-shadow8.png</texture>
        </
control>
        <
control type="wraplist" id="513">
            <
visible>substring(Container.FolderPath,plugin://plugin.program.advanced.emulator.launcher/,left) | Container.Content(musicvideos) | Container.Content(artists) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(episodes) | Container.Content(sets)</visible>
            
<left>0</left>
            <
right>0</right>
            <
top>0</top>
            <
bottom>0</bottom>
            <
onup condition="!Skin.HasSetting(global.kioskmode)">9000</onup>
            <
ondown>60</ondown>
            <
onleft>513</onleft>
            <
onright>513</onright>
            <
preloaditems>0</preloaditems>
            <
pagecontrol>60</pagecontrol>
            <
orientation>horizontal</orientation>
            <
viewtype label="540">list</viewtype>
            <
scrolltime tween="quadratic">400</scrolltime>
            <
itemlayout height="640" width="1760">
                <
control type="image">
                    <
centerleft>50%</centerleft>
                    <
centertop>50%</centertop>
                    <
width>1920</width>
                    <
height>1080</height>
                    <
aspectratio scalediffuse="false">scale</aspectratio>
                    <
texture background="true" diffuse="diffuse/lovefilm.png">$VAR[FanartImage]</texture>
                </
control>
            </
itemlayout>
           
            <
focusedlayout height="640" width="1760">
                <
control type="image">
                    <
centerleft>50%</centerleft>
                    <
centertop>50%</centertop>
                    <
width>1920</width>
                    <
height>1080</height>
                    <
aspectratio scalediffuse="false">scale</aspectratio>
                    <
texture background="true" diffuse="diffuse/lovefilm.png">$VAR[FanartImage]</texture>
                </
control>
            </
focusedlayout>
        </
control>
    </include>
    
</
includes
Reply
#4
Already know how to do it. thanks again for the help
Reply

Logout Mark Read Team Forum Stats Members Help
Problem naming new view for Arctic: Zephyr0