Posts: 1,101
Joined: May 2015
Reputation:
48
ontap
Posting Freak
Posts: 1,101
2021-08-01, 21:00
(This post was last modified: 2021-08-01, 21:01 by ontap.)
You need to put the size of your image in the button/image code , for example you have the "item layout" height at 95, lets say you wanted the gap between buttons to be 10 , add the height as 90, you may have to tweak left and top to get it how you want it.Then obviously do same with "focused item layout ".
<control type="button">
<control type="image">
<height>90</height>
<width>?</width>
<left>0</left>
<top>0</top>
<texture colordiffuse="button_focus">lists/focus.png</texture>
<animation effect="fade" start="100" end="0" time="0" condition="[!Control.HasFocus(9000) + !ControlGroup(700).HasFocus] | System.HasActiveModalDialog">Conditional</animation>
</control>
Posts: 28
Joined: Feb 2017
Reputation:
5
could this be an issue? I'm having trouble trying to find this but idk if it makes an impact or not
<control type="group">
<depth>DepthContentPanel</depth>
<include>OpenClose_Left</include>
<control type="list" id="9000">
<left>75</left>
<top>315</top>
<width>462</width>
<bottom>-10</bottom>
<movement>5</movement>
<focusposition>0</focusposition>
<onfocus>ClearProperty(listposition,home)</onfocus>
<onright>SetFocus($INFO[Container(9000).ListItem.Property(menu_id)])</onright>
<onup>700</onup>
<ondown>700</ondown>
<!--<scrolltime tween="cubic" easing="out">500</scrolltime>-->
<!-- what it looks like when selected -->
<focusedlayout height="95">
Posts: 1,101
Joined: May 2015
Reputation:
48
ontap
Posting Freak
Posts: 1,101
No, if your issue is the height between lit items as in your pic , then you can adjust it by doing what I suggested .
Posts: 28
Joined: Feb 2017
Reputation:
5
Figured it out, I had to add the "height" property within the "button" parent, not image. Really appreciate it tho, so simple but didnt know where to start
<control type="button">
<height>95</height>
<control type="image">
<left>1</left>
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
perhaps too obvious, but have you checked the image you're using (lists/focus.png) is fully solid and does not contain a transparent border?
Posts: 17,424
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,424
Why are you using a button? You just need the image/label.
Posts: 29
Joined: Jul 2016
Reputation:
3
2021-08-03, 12:59
(This post was last modified: 2021-08-03, 13:16 by moshep15.)
basicly container also can be good idea using items
<control type="list" id="9000">
<left>75</left>
<top>315</top>
<width>462</width>
<bottom>-10</bottom>
<movement>5</movement>
<orientation>vertical</orientation>
<focusposition>0</focusposition>
<itemlayout height"140">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>40</height>
<texture>black.png</texture>
<colordiffuse>77000000</colordiffuse>
</control>
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>40</height>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
<focusedlayout height="140">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>40</height>
<texture>black.png</texture>
<colordiffuse>77000000</colordiffuse>
</control>
<control type="image">
<!!---this is the focuseditem --!!>
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>40</height>
<texture colordiffuse="gray">white.png</texture>
</control>
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>40</height>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
</control>
</focusedlayout>
<content>
<item>
<label>movies</label>
<onclick>your path</onclick>
</item>
</content>
</control>