Author Topic: Request for help on layout (newbie)  (Read 4516 times)

laite

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Gmusicbrowser-plugins by laite
Request for help on layout (newbie)
« on: March 09, 2011, 12:59:35 »
I have modified the "Conz Aishi (with Filter Panes)" to suit my needs and I'm quite happy with it but there's one thing I can't seem to get working:

I have tried to get menubuttons to work with my songtree and some of them (PlayItem, QueueItem) do while others (LSortItem) don't. Also, "Total" doesn't show any songs "listed" or even "selected" no matter what I do.

So could somebody tell me if there's something wrong with my code. Here's the interesting part (I think):
Code: [Select]
MBlist = LSortItem PlayItem QueueItem
HBSongTree = 3Pref(size=menu) _SimpleSearch 3Sort 3Filter 3Queue 3Pos -Total(size=small) -ResetFilter -MBlist
VBSongTree = HBSongTree _SongTree
VPcenter        = _VBSongTree

And here is the whole layout:

Code: [Select]
[laiteConzAishi]

Author = "Satoshi Hayazaki/laite"
Type=G

Category = gmb-art

Default = Window(size=80%x80%,sticky=0)
VBfirst = 5Filler5 _HPall 2Filler6
HPall = VBall VPpanelyr
VBall = VBControls _HPmain
HBProgress = Prev Play Next 10Filler7 VolumeIcon Time(markup=%s,initsize="-XX:XX") _Scale LabelTime(markup='%m ')
VBControls = HBStatus HBProgress
HBStatus = 4Filler1 HBTitle(xalign=.5, yalign=1) -Stars(yalign=0.5)
HBTitle = Title_by(expand_max=300,minsize=0,markup="<b>%t</b> by <b>%a</b> in <i>%l</i> (%y)",tip=_"Title: %t (Track No. %n)",yalign=0.5)
HPmain          = _HPpart
HPpart = _VPcenter
VPpanelyr = HPFilters NBpart3
HPFilters = FPane0(nb=1,pages=genre, hidebb=1) HPFilter1
HPFilter1 = FPane2(nb=2,pages=album, hidebb=1, rules_hint=1) FPane1(nb=3pages=artist, hidebb=1)
NBpart3 = (tabpos="top") PluginLyrics(shadow=none,HideToolbar=1) QueueList(hideif=empty,songtree=1,cols="albumminipic titleaa length")
MBlist = LSortItem PlayItem QueueItem
HBSongTree = 3Pref(size=menu) _SimpleSearch 3Sort 3Filter 3Queue 3Pos -Total(size=small) -ResetFilter -MBlist
VBSongTree = HBSongTree _SongTree
VPcenter        = _VBSongTree
VolumeScroll = VBControls

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Request for help on layout (newbie)
« Reply #1 on: March 09, 2011, 15:01:05 »
I hope this works:

Code: [Select]
[laiteConzAishi]

Author = "Satoshi Hayazaki/laite"
Type=G

Category = gmb-art

Default = Window(size=80%x80%,sticky=0)

VolumeScroll = VBControls

VBfirst = 5Filler5 _HPall 2Filler6

    HPall = VBall VPpanelyr

        VPpanelyr = HPFilters NBpart3

            NBpart3 = (tabpos="top") \
                PluginLyrics(shadow=none,HideToolbar=1) \
                QueueList(hideif=empty,songtree=1,cols="albumminipic titleaa length")

            HPFilters = \
                FPane0(nb=1,pages=genre, hidebb=1) \
                HPFilter1

                HPFilter1 = \
                    FPane2(nb=2,pages=album, hidebb=1, rules_hint=1) \
                    FPane1(nb=3,pages=artist, hidebb=1)

        VBall = VBControls _VPcenter

            VBControls = HBStatus HBProgress

                HBStatus = \
                    4Filler1 \
                    HBTitle(xalign=.5, yalign=1) \
                    -Stars(yalign=0.5)

                    HBTitle = Title_by(expand_max=300,minsize=0,markup="<b>%t</b> by <b>%a</b> in <i>%l</i> (%y)",tip=_"Title: %t (Track No. %n)",yalign=0.5)

                HBProgress = \
                    Prev \
                    Play \
                    Next \
                    10Filler7 \
                    VolumeIcon \
                    Time(markup=%s,initsize="-XX:XX") \
                    _Scale LabelTime(markup='%m ')

            VPcenter = HBSongTree _SongTree

                HBSongTree = 3Pref(size=menu) \
                    _SimpleSearch \
                    3Sort \
                    3Filter \
                    3Queue \
                    3Pos \
                    -Total(size=small) \
                    -ResetFilter \
                    -MBlist

                    MBlist = LSortItem \
                        PlayItem \
                        QueueItem

laite

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Gmusicbrowser-plugins by laite
Re: Request for help on layout (newbie)
« Reply #2 on: March 09, 2011, 16:38:38 »
I hope this works:

Worked perfectly, thank you!

Satoshi

  • Jr. Member
  • **
  • Posts: 44
    • View Profile
Re: Request for help on layout (newbie)
« Reply #3 on: March 09, 2011, 20:25:44 »
I'm really glad my layout was useful to you.

laite

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Gmusicbrowser-plugins by laite
Re: Request for help on layout (newbie)
« Reply #4 on: March 09, 2011, 21:20:36 »
I'm really glad my layout was useful to you.

Thanks for you, here is my abomination:  ;D

One more question, though. As you can see I'd like to have "now playing album"'s cover centered at the right panel, but at the moment I had to 'cheat' by calculating panels width and use padding accordingly. Is there some way to always make cover appear at center of songTree? And same for text, currently I have to manually set width (710 pixels in picture) and use align=0.5, but that doesn't notice if I decide to change panels' size. Not that I have any need for that right now, but you never know... :)

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re:Request for help on layout (newbie)
« Reply #5 on: March 10, 2011, 00:51:46 »
Here is an example of squentin:
Code: [Select]
{Group cover_center}
head= pic:h + title:h
vcollapse=head
title: text(y=pic:h, markup='<b><big>'.pesc($title).'</big></b>',pad=2, x= $_w/2 - title:w/2)
pic: aapic(picsize=picsize,ypad=2, x= $_w/2 - pic:w/2)
picsize : OptionNumber(default=100,min=20,max=1000,step=10)

laite

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Gmusicbrowser-plugins by laite
Re:Request for help on layout (newbie)
« Reply #6 on: March 10, 2011, 10:26:20 »
Here is an example of squentin:

Once again: Thank you! *nod*