Context Menu positioning
#1
Is it possible to have it's position based on the fullscreen dimensions?
Reply
#2
? not sure I understand what you mean but the context menu is positioned based on where the actual list of panel is located
Reply
#3
I just wondered if that can be overridden so you can have it in the same position across the whole skin only Alaska uses large text and on some views it's missing the bottom options.
If not I'll just have to resize the text.
Reply
#4
no go with that idea what i done was make the list position it and then make the list using labels on position in the list ie. Container(57).ListItem(0).Label as our idea was to have it centred on all views.
Reply
#5
<origin>'s will probably override it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
jmarshall Wrote:<origin>'s will probably override it.

Seems to work, though I can't get the list to centre vertically. Stops items from being cut off at the bottom though. Thanks Jonathan.
Reply
#7
I've not seen that before, how do you use it?
Reply
#8
Hitcher Wrote:I've not seen that before, how do you use it?

I haven't either, I'm assuming it just changes the point that the window originates at? I just did this:

Code:
<!--Alaska-->

<window id="106">
    <defaultcontrol>1000</defaultcontrol>
    <include>Animation_ZoomInMenu</include>    
    <coordinates>
        <system>1</system>
        <posx>0</posx>
        <posy>0</posy>
        <origin x="0" y="150"></origin>
    </coordinates>
    <controls>
        <control type="button" id="1000">
            <description>button template</description>
            <posx>0</posx>
            <posy>0</posy>
            <height>30</height>
            <width>1280</width>
            <font>Font_MenuValue</font>
            <textcolor>MenuValue</textcolor>
            <focusedcolor>MenuValue</focusedcolor>
            <animation effect="fade" start="100" end="50" time="200">Focus</animation>
            <align>center</align>
        </control>
    </controls>
</window>

Seems to stop items being cut off
Reply
#9
Cheers jmarshall & redtapemedia makes my life a lot easier lol dint even know that existed.
Reply
#10
Thanks, means we can go back to the larger text.
Reply
#11
Origins are conditional, so you can specify <origin x="50" y="200">condition</origin>

You may be able to center it vertically with some cunning use of conditionals. Not entirely sure how you'd do it offhand, but I'm sure you guys can come up with something (eg something like Control.IsVisible(1010) is probably only true if there are 10 buttons)

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Context Menu positioning0