Scaleability with Image-Class

Discuss GUI programming with the MUI Royale plugin here
Post Reply
GMKai
Posts: 61
Joined: Mon Feb 15, 2010 11:58 am

Scaleability with Image-Class

Post by GMKai » Mon Oct 30, 2017 3:26 pm

Hello,
my GUI gets blocked regarding resizeability when including these 2 lines:

Code: Select all

<image id="immatchreporthome" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
<image id="immatchreportaway" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
                        
These images are meant to replace simple "text"-elements.
Do I have to mix up with the "freeV/H"-tags to get my colgroup resizeable again?

Code: Select all

<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
                        <text id="txmatchreporthome"/>
                        <text id="txmatchreportaway"/>
                        <text>Referee</text>
                        <text id="txmatchreportreferee"/>
                        <text>Weather</text>
                        <text id="txmatchreportweather"/>
                        <text id="txmatchreportstadium"/>
                        <text id="txmatchreportvisitor"/>
                        <!--<image id="immatchreporthome" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
                        <image id="immatchreportaway" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
                        -->
</colgroup>

GMKai
Posts: 61
Joined: Mon Feb 15, 2010 11:58 am

Re: Scaleability with Image-Class

Post by GMKai » Mon Oct 30, 2017 4:26 pm

Hm, when adding these images to another project that one does not get broken.
Leaving these 2 lines from the current project breaks it - any idea what to look at?

User avatar
airsoftsoftwair
Posts: 2506
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Scaleability with Image-Class

Post by airsoftsoftwair » Tue Oct 31, 2017 6:58 pm

AFAIR Image.FreeVert and Image.FreeHoriz are only for MUI's special vector graphics format but I'm not sure. Ask over on http://muidev.de for more clarification. Image gadgets are non-resizable so you need to pad them with <rectangle>, e.g. like this:

Code: Select all

<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
        <text id="txmatchreporthome"/>
        <text id="txmatchreportaway"/>
        <text>Referee</text>
        <text id="txmatchreportreferee"/>
        <text>Weather</text>
        <text id="txmatchreportweather"/>
        <text id="txmatchreportstadium"/>
        <text id="txmatchreportvisitor"/>
        <hgroup>
                <image id="immatchreporthome" source="BRUSH: 50"/>
                <rectangle/>
        </hgroup>
        <hgroup>        
                <image id="immatchreportaway" source="BRUSH: 50"/>
                <rectangle/>
        </hgroup>        
</colgroup>
This should solve your problem.

GMKai
Posts: 61
Joined: Mon Feb 15, 2010 11:58 am

Re: Scaleability with Image-Class

Post by GMKai » Wed Nov 01, 2017 1:09 pm

Thank you, nesting the <image> with an <hgroup> did the trick,

and with custom brushes I see no difference when setting der Vert-attributes...

...so: case closed :)

Post Reply