PLUGINDev and SKINners: How to find out the X- and Y- Position of a control element? (1 Viewer)

weissollo

MP Donator
  • Premium Supporter
  • March 2, 2007
    200
    7
    Franken
    Home Country
    Germany Germany
    Hi everybody,

    I'm going to make my first plugin for MP :) .

    So I'm at the point making the skin XML. In my plugin there should be a kind of table which displays information:

    Text_________Text________Text__________Text_________Text
    ____________Picture____________________Picture__________

    Text_________Text________Text__________Text_________Text
    ____________Picture____________________Picture__________

    Text_________Text________Text__________Text_________Text
    ____________Picture____________________Picture__________
    ....

    Is there a special table control?

    Can I use the listControl for grouping?

    How can I find out the data for
    <posX>???</posX>
    <posY>???</posY>
    ? Should I try it out? Or is there a kind of "pattern" or "raster" which you can blend over my screen to find it out?

    Is the skin editor still in development?
    It is mentoid here: MediaPortal1_Development/PluginDevelopersGuide - MediaPortal Manual Documentation (Part: Creating a skin file) but the link for the skin editor is dead!

    Thx a lot
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,250
    153
    53
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    top-left-handed @ ur display is zero
    (also oben links in der ecke)

    from the left to right is "X"
    and from top to the ground is "Y"

    and if u wana place a kind of button without a dialog-field use ur screen resolution.


    but it would be easier if u use the common.***.xml-files ...
    (die lassen sich von haus aus recht flott umstricken)

    greetings

    EDIT:

    for what do u need the skin editor ...?
    simple - XML-files ...
     

    weissollo

    MP Donator
  • Premium Supporter
  • March 2, 2007
    200
    7
    Franken
    Home Country
    Germany Germany
    from the left to right is "X"
    and from top to the ground is "Y"
    OK, thanks!!! The minimum is 0 but what is the maximum?

    and if u wana place a kind of button without a dialog-field use ur screen resolution.
    but it would be easier if u use the common.***.xml-files ...
    (die lassen sich von haus aus recht flott umstricken)
    What do you mean with button without dialog field?
    I will have a look at the common.....xml file in the evening or tomorrow. I just looked at the example in the wiki.

    for what do u need the skin editor ...?
    simple - XML-files ...
    I thought this will llook like the Windows Form Designer, won't it?
    A WYSIWYG-Editor, like MS Word, not LATEX.
    (Wesst scho so typisch Microsoft ein paar Buttons, ein paar Textboxen ein paar Lables auf den Desktop ziehen können und dann festzustellen, dass so ein Button gar nix bring, wenn da nix passiert!)
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,250
    153
    53
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    shit ... wanna quote - but hit the thx button :D

    well - maximum isn't "0" .. in some cases i took some negativ factor but not all XML-files could handle it.
    result by "not handle negativ" was that for e.g. the thump i wanna possiotion new - sized up and was anywhere in the matrix :D
    looks sometimes very funny...
    if u wanna change possiotins of buttons or icons - not need to delete the cache ...
    those changings could be seen while u flip between ur plugin and the main-page of MePo ...


    if u use a dialog-field - the coordinates are not longer the backround coordinates.
    (also dann veraändern sich die x/y- werte bezogen auf die dialog box)

    i've been looking for such skin-editor long time ago - but changing the settings in the XML-files was quiet more fun ;)
    (reinfuchsen - wenn sich erfolg meldet ist dat ein gutes gefühl :D )

    by the way - do u have a link to some nice looking icons?
    still need some for the retro-core-reloaded-skin ..
    (und isch hab kein plan von photo-shop ...nur google-skeetch-up und dat hilft net viel)
     

    weissollo

    MP Donator
  • Premium Supporter
  • March 2, 2007
    200
    7
    Franken
    Home Country
    Germany Germany
    OK thanks!

    Sry. No Icons! And I also don't know anything about Photoshop.



    Can you tell me if there is a special table control?
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,250
    153
    53
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    öhm --- what is the meaning of "table-control" ...?
    (tisch kontrolle?
    i heard often about tables and templates ...
    but i do not know what all that means ...

    (i teste einfach immer so lange bis es von den masen und koordianten her past :D )

    if u can explain table-control maybe i have an answer...
     

    weissollo

    MP Donator
  • Premium Supporter
  • March 2, 2007
    200
    7
    Franken
    Home Country
    Germany Germany
    Do you think that my is bad? Hope not! On April to May I'll work six weeks in Canada. Until now everybody, except you understood my English.
    I think that table is the right word for the German "Tabelle", isn't it?
    Look here: LEO Ergebnisse für "Tabelle"
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,250
    153
    53
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    Do you think that my is bad? Hope not! On April to May I'll work six weeks in Canada. Until now everybody, except you understood my English.
    I think that table is the right word for the German "Tabelle", isn't it?
    Look here: LEO Ergebnisse für "Tabelle"

    *g* .. well i never said that my english is perfekt ;)

    hmm i know that a template is a "matrize also ein layout" ...
    but the "table" was allways a strange word to me couse i always made a "tisch" out of it ..

    nu ja - missunderstood :)

    so - well i don't have any tables in use - i just look around in the reference XML -files for some things i can
    find again in e.g. the media-folder - and than i look what kind of texture it is and see if it fits to the dialog or the window i wanna change

    EDIT:

    dat war quasie weil ich mich mit fachbegriffen nicht so gut auskenne ...
     

    jburnette

    Portal Pro
    August 24, 2006
    758
    116
    Kentucky
    Home Country
    United States of America United States of America
    Table is the correct word for what you're describing, and no there's not a table control. What are you trying to accomplish? It would be possible for you to use a series of StackLayouts, I believe, depending on what you want to do. Take a look at the groups of buttons in actionmenus and you'll see the <layout>StackLayout</layout> tag in action.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Take a look at <layout>gridlayout</layout>, this may help you although I don't understand your question ;)
     

    Users who are viewing this thread

    Top Bottom