problem with un-hiding some groups

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

problem with un-hiding some groups

Post by GMKai »

Function:

Code: Select all

mui.Set("grteamcontract","hide",False)
    mui.Set("grteamlineup","hide",True)
    mui.Set("grteamtraining","hide",True) 
definition:

Code: Select all

<vgroup title="team" samesize="true" frametitle="Team" frame="group" background="groupback">
						<button id="btteamcontract" notify="pressed" frame="button">\33A[4]Contract</button>
						<button id="btteamlineup" notify="pressed" frame="button">\33A[4]Lineup</button>
						<button id="btteamtraining" notify="pressed" frame="button">\33A[4]Training</button>
						<button id="btgotomain4" notify="pressed" frame="button">\33A[9]main</button>
						<vgroup id="grteamcontract" title="contract" hide="true" samesize="true" frame="group" background="groupback">
						  <listview id="teamcontractlist" MultiSelect="Default" frame="InputList" notify="active">
	           					<column title="ID" hidden="true"/>
								<column title="Name"/>
								<column title="Strength"/>
								<column title="Runtime"/>
								<column title="Wage"/>
						  </listview>	
						  <hgroup frame="group" background="groupback">
						     <cycle id="cyplayernewruntime">
									<item>12</item>
									<item>24</item>
									<item>36</item>
									<item>48</item>
							 </cycle>
						     <button id="btteamcontractplayeroffer" notify="pressed" frame="button">\33A[4]Extend</button>
						  </hgroup>
						<rectangle/>
						</vgroup>
						<vgroup id="grteamlineup" title="lineup" hide="true" samesize="true" frame="group" background="groupback">
						  <hgroup frame="group" background="groupback">
						    <vgroup title="formation" samesize="true" frame="group" background="groupback">						
						      <cycle id="cyteamlineupformation">
									<item>4-4-2</item>
									<item>3-5-2</item>
									<item>4-3-3</item>
									<item>5-3-2</item>
						      </cycle>
						      <button id="btteamformationset" notify="pressed" frame="button">\33A[4]Set</button>
                            </vgroup>
						    <colgroup id="grteam442" hide="true" columns="5">
						      <text/><text>9</text><text/><text>11</text><text/>
						      <text>7</text><text>10</text><text>6</text><text/><text>8</text>
						      <text>2</text><text>4</text><text>5</text><text/><text>3</text>
						    </colgroup>
						    <colgroup id="grteam352" hide="true" columns="5">
						      <text/><text>9</text><text/><text>11</text><text/>						    
						      <text>7</text><text>6</text><text>10</text><text>3</text><text>8</text>
						      <text>2</text><text/><text>5</text><text/><text>4</text>
						    </colgroup>
						    <colgroup id="grteam433" hide="true" columns="5">
						      <text/><text>9</text><text>10</text><text>11</text><text/>
						      <text/><text>7</text><text>6</text> <text>8</text> <text/>
						      <text>2</text><text>4</text><text>5</text><text/><text>3</text>
						    </colgroup>
						    <colgroup id="grteam532" hide="true" columns="5">
						      <text/><text>9</text><text/><text>11</text><text/>						    
						      <text/><text>7</text><text>10</text> <text>8</text><text/>
						      <text>2</text><text>4</text><text>5</text><text>6</text><text>3</text>
						    </colgroup>
						  </hgroup>
						  <vgroup title="players" hide="true" samesize="true" frame="group" background="groupback">						
						    <rectangle/>
						  </vgroup>
						  <rectangle/>						  
						</vgroup>
						<vgroup id="grteamtraining" title="training" hide="true" samesize="true" frame="group" background="groupback">
						<rectangle/>
						</vgroup>
						<rectangle/>
					</vgroup>
Idea is to have only a single group visible at a time, but clicking the defined button only lead to a closed window...
when firing the action the program immediately stops, without any errormessage, just the window disappears...what is wrong with code/xml?
bitRocky
Posts: 120
Joined: Fri Nov 14, 2014 6:01 pm

Re: problem with un-hiding some groups

Post by bitRocky »

You should use a group with PageMode, then you could easily specify the active page.
So only one group is visible at one time.
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: problem with un-hiding some groups

Post by airsoftsoftwair »

@GMKai: Please always provide the full code and XML definition so that I can just copy & paste and run it. But make it as short as possible...
Post Reply