Solved Problem Modding Movie Information
#1
I need to disable some menu in context menu, but i still need movie information submenu
but since contextual menu is not editable (It has to be all or nothing)
I moved the movie information menu to viewfanart.xml (one of the views from myvideonav.xml)
with a "i" button.

Image

I've set it to visible only when the movie has plot

PHP Code:
            <control type="button" id="7007">
                <
posx>250</posx>
                <
posy>460</posy>
                <
width>40</width>
                <
height>40</height>
                <
label>-</label>
                <
font>-</font>
                <
texturefocus>osd-info-focus.png</texturefocus>
                <
texturenofocus>osd-info-nofocus.png</texturenofocus>
                <
visible>!IsEmpty(Listitem.Plot)</visible>
                <
onclick>ActivateWindow(2003)</onclick>
            </
control


But i only get blank values,

Image

What did i miss here?

Edit 1 : I think it has something to do with the control unable to focus to the selected movie..
What exactly happen in the default movie information menu?
I couldn't find anything in dialogvideo.xml

Edit 2 :
Yes, i'm positive now,
when i do this :
right click > movie information, back
click "i" button
the values are filled up...
So there's something from movie information context menu that i missed...

thanks
Reply
#2
If the button is selected, the movie is not. The info in the info dialog is 'contextual'. Meaning it requires the movie to be selected.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#3
(2013-06-14, 10:02)MassIV Wrote: If the button is selected, the movie is not. The info in the info dialog is 'contextual'. Meaning it requires the movie to be selected.

I see, so is there a way to make the movie selected when button is pressed?

Container.HasFocus(SelectedMovie) something like that?
Reply
#4
not sure if it will work, but give this a shot:
Code:
<control type="button" id="7007">
                <posx>250</posx>
                <posy>460</posy>
                <width>40</width>
                <height>40</height>
                <label>-</label>
                <font>-</font>
                <texturefocus>osd-info-focus.png</texturefocus>
                <texturenofocus>osd-info-nofocus.png</texturenofocus>
                <visible>!IsEmpty(Listitem.Plot)</visible>
                <onclick>SetFocus(50)</onclick>
                <onclick>ActivateWindow(2003)</onclick>
            </control>

that will put the focus back on the movie list before opening the movie-info dialog.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
(2013-06-14, 10:49)ronie Wrote: not sure if it will work, but give this a shot:
Code:
<control type="button" id="7007">
                <posx>250</posx>
                <posy>460</posy>
                <width>40</width>
                <height>40</height>
                <label>-</label>
                <font>-</font>
                <texturefocus>osd-info-focus.png</texturefocus>
                <texturenofocus>osd-info-nofocus.png</texturenofocus>
                <visible>!IsEmpty(Listitem.Plot)</visible>
                <onclick>SetFocus(50)</onclick>
                <onclick>ActivateWindow(2003)</onclick>
            </control>

that will put the focus back on the movie list before opening the movie-info dialog.

Still won't work Ronie..
Hmm.. Kinda weird i don't see anything related to movie list focus in dialogvideoinfo.xml...
Reply
#6
(2013-06-14, 10:55)denywinarto Wrote: Still won't work Ronie..

this one does ;-)

Code:
<control type="button" id="7007">
                <posx>250</posx>
                <posy>460</posy>
                <width>40</width>
                <height>40</height>
                <label>-</label>
                <font>-</font>
                <texturefocus>osd-info-focus.png</texturefocus>
                <texturenofocus>osd-info-nofocus.png</texturenofocus>
                <visible>!IsEmpty(Listitem.Plot)</visible>
                <onclick>SetFocus(50)</onclick>
                <onclick>Info</onclick>
            </control>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
(2013-06-14, 11:06)ronie Wrote:
(2013-06-14, 10:55)denywinarto Wrote: Still won't work Ronie..

this one does ;-)

Code:
<control type="button" id="7007">
                <posx>250</posx>
                <posy>460</posy>
                <width>40</width>
                <height>40</height>
                <label>-</label>
                <font>-</font>
                <texturefocus>osd-info-focus.png</texturefocus>
                <texturenofocus>osd-info-nofocus.png</texturenofocus>
                <visible>!IsEmpty(Listitem.Plot)</visible>
                <onclick>SetFocus(50)</onclick>
                <onclick>Info</onclick>
            </control>

Cheers Big Grin
It works, thanks alot
i never saw <onclick>info</onclick> before
Reply
#8
It's an action. Look here for more actions you can use.
Reply

Logout Mark Read Team Forum Stats Members Help
Problem Modding Movie Information0