Changes to the skinning engine for XBMC Gotham
#46
(2013-11-12, 18:30)ronie Wrote: 2013-11-12 New window: DialogSubtitles.xml

the xbmc subtitles addon will no longer be used in gotham.
instead, much of the code has been moved to xbmc core.

for this change, you need to:
- remove script.xbmc.subtitles from your addon.xml file
- rename script-XBMC-Subtitles-main.xml to DialogSubtitles.xml
- change the onclick of the subtitle button on the video osd to: ActivateWindow(SubtitleSearch)
- remove the code in skin settings where the user can select a subtitle addon
- rating images are now on a scale 0-5 (previously 0-10)
- add an extension to the flag images: https://github.com/xbmc/xbmc/commit/eee7...5680ac8d5f


confluence example: https://github.com/xbmc/xbmc/commit/4baf...2f49b5b93e

git commit: https://github.com/xbmc/xbmc/commit/8dc1...6d4ecb25cf
pull request: 3552 (PR)

I was wondering, since Subs are now part of the core, if there's a string number for "Local Subtitles Available" to use. Thanks.
Image Image
Did I Help? Add to my reputation
Reply
#47
(2013-11-11, 22:14)ronie Wrote: 2013-11-11 Add textbox to OK, YesNo and Progress dialogs

...

The textbox doesn't auto-size, does it? While I agree that a textbox is better than labels, I won't want to use it in my skin as long as it doesn't support auto-sizing so I can align the header label and buttons around the textbox (top and bottom).
Image
Reply
#48
2014-01-05 New button in DialogSubtitles.xml

one thing we forgot when we added the new SubtitleSearch window,
it needs a button for manual search:

- button control id="160"

git commit: https://github.com/xbmc/xbmc/commit/a701...bb4e98580f
pull request: 3816 (PR)
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
#49
2014-01-04 Add support for $NUMBER[] in labels

you can now use $NUMBER[] inside labels to display a numerical value.

forum thread: http://forum.xbmc.org/showthread.php?tid=181529
git commit: https://github.com/xbmc/xbmc/commit/bcbd...d4e5a4b68f
pull request: 3919 (PR)
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
#50
2013-12-21 Add support for auto-scrolling in containers

you can now use <autoscroll>true</autoscroll> in containers.

git commit: https://github.com/Black09/xbmc/commit/b...d61cb87359
pull request: 3792 (PR)
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
#51
(2013-04-06, 13:32)ronie Wrote: 2013-04-06 Change to auto width for labels

using <width>auto</width> is now also supported.
this means specifying 'max=xx' is now optional.

git commit: https://github.com/xbmc/xbmc/commit/996c...06c20e8d37
pull request: 2023 (PR)
trac ticket: http://trac.xbmc.org/ticket/13887

If you don't set a maximum width the label doesn't get truncated so if you had another label or image to display behind it in a grouplist it wont appear.

To test in Confluence edit Home.xml.

Add this below <include>CommonBackground</include>

Code:
        <control type="grouplist">
            <posx>40</posx>
            <posy>300</posy>
            <width>1200</width>
            <itemgap>0</itemgap>
            <orientation>horizontal</orientation>
            <usecontrolcoords>true</usecontrolcoords>
            <control type="label">
                <width min="0" max="600">auto</width>
                <font>font13_title</font>
                <textcolor>white</textcolor>
                <label>10047</label>
            </control>
            <control type="label">
                <width min="0" max="600">auto</width>
                <font>font13_title</font>
                <textcolor>blue</textcolor>
                <label>10047</label>
            </control>
        </control>

Both labels get truncated at 600px -

Image

When you change to <width>Auto</width> the second label doesn't appear -

Image

Thanks.

EDIT: Thinking about this a bit more it would be even better if, when not setting a max length, each label was truncated by the same amount if their combined widths (plus itemgaps) was greater than the parent control's width.

ie grouplist width is 1000px (itemgap = 20px) with three auto width labels (600px, 200px, 400px).

Result -

Code:
<------520------> <--120--> <----320---->

That way if their total widths plus itemgaps were less than the grouplist's width they'd all fit without truncating.

Thoughts?
Reply
#52
is <centerx> working in latest alpha?

I was using it fine, but now it seems to be broken...
Image Image
Did I Help? Add to my reputation
Reply
#53
@Hitcher: fixed in 50829f8ab950f5b - thanks for the report Smile

@fastcolors: We'll need some sample code.
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
#54
Thanks Jonathan. Smile
Reply
#55
Code:
<control type="grouplist" id="9000">
          <include>DialogGLs</include>
          <control type="button" id="699">
                <include>DialogButt</include>
                <label>$LOCALIZE[128] $LOCALIZE[5]</label>
                <onclick>Close</onclick>
                <onclick>ActivateWindow(Settings)</onclick>
          </control>
</control>

<include name="DialogGLs">
      <centerx>960</centerx>
      <top>8</top>
      <width>470</width>
      <height>1064</height>
      <itemgap>3</itemgap>
      <onleft>50</onleft>
      <onright>50</onright>
      <onup>9000</onup>
      <ondown>9000</ondown>
      <align>center</align>
      <scrolltime>200</scrolltime>
</include>

this used to work, but now it just aligns everything 0px from left... (at least up to the latest gotham I tried which is Jan 18th - 2014117-63f8ce5 - OSX 10.9)


this commit of my skin has a lot of it.

Thanks!
Image Image
Did I Help? Add to my reputation
Reply
#56
Ah, that's because it was changed Smile

You want <centerleft> or <centerright> depending on whether you want to measure from the left or right for the center anchor.

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
#57
(2014-01-23, 21:24)jmarshall Wrote: Ah, that's because it was changed Smile

You want <centerleft> or <centerright> depending on whether you want to measure from the left or right for the center anchor.

Cheers,
Jonathan

thanks!
Image Image
Did I Help? Add to my reputation
Reply
#58
2014-02-02 Add support for auto-height in textbox control

you can now use <height>auto</height> in a textbox control.

git commit: https://github.com/xbmc/xbmc/commit/2db7...c19d2fb38c
pull request: 4085 (PR)
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
#59
2014-02-18 Add support for artwork in lists with directory content

You can now fetch art with lists using directory content as mentioned here

git commit: https://github.com/xbmc/xbmc/commit/b1a0...7bb7748a32
pull request: 4094 (PR)
Reply
#60
(2013-11-09, 04:28)ronie Wrote: 2013-08-10 Remove Stack and Flatten buttons

forgot to mention this one when it was merged...

remove the stack and flatten buttons (id="7" / id="17") from MyVideoNav.xml
these options have been moved to settings > video > file lists


git commit: https://github.com/xbmc/xbmc/commit/6a2f...399f27f298
pull request: 3017 (PR)

Does this also make DialogFileStacking.xml obsolete? I see no mention of this, but I don't see any way of envoking the window in UI?
I never used stacking so forgive me if this is a stupid question.
Reply
 
Thread Rating:
  • 3 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
Changes to the skinning engine for XBMC Gotham53