definition review and comments

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

definition review and comments

Post by GMKai »

Can some of you experts hav a look and comment on the following?
When using this definition i get a running app, which currently is not resizeable(again...)...
For review purpose I will add some screenshots later...
Thanks for any comment...

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app" base="HSMGAME" menustrip="menu">
	<menustrip id="menu">
		<menu title="HollywoodSoccerManager">
			<item id="mn_about" notify="selected" shortcut="?">About...</item>
			<item id="mn_aboutmui" notify="selected">About MUI...</item>
			<item id="mn_aboutmuiroyale" notify="selected">About MUI Royale...</item>
			<item/>
			<item id="mn_quit" notify="selected" shortcut="Q">Quit</item>
		</menu>
		<menu title="Settings">
			<item id="mn_muisettings" notify="selected" shortcut="S">MUI...</item>
		</menu>
	</menustrip>
	<window title="HSM-Game" id="win" muiid="HSMW" notify="closerequest" userightborderscroller="false" usebottomborderscroller="false">
		<vgroup frame="group" background="groupback">
			<vgroup id="pgr" title="HSM-Menu" pagemode="true" frame="group" background="groupback">
				<vgroup id="MainMenu" title="Main	Menu" frame="group" frametitle="MainMenu" background="groupback" samesize="true">
					<hgroup title="loadgame" frame="group" frametitle="LoadGame" background="groupback">
						<button id="btloadgame" notify="pressed" frame="button">\33A[2]_LoadGame</button>
						<rectangle/>
					</hgroup>
					<hgroup title="newgame" frame="group" frametitle="NewGame" background="groupback">
						<button id="btsetdataset" notify="pressed" frame="button">\33A[6]_Dataset</button>
						<button id="btsetmanagername" notify="pressed" frame="button">\33A[5]_Managername</button>
						<button id="btsetclub" notify="pressed" frame="button">\33A[7]_Club</button>
						<button id="btsetlanguage" notify="pressed" frame="button">\33A[18]_Language</button>
						<rectangle/>
					</hgroup>
					<hgroup title="startgame" frame="group" frametitle="Start" background="groupback">
						<button id="btstartgame" disabled="true" notify="pressed" frame="button">\33A[3]_StartGame</button>
						<button id="btclearselection" notify="pressed" frame="button">\33A[19]_ClearSelection</button>
						<rectangle/>
					</hgroup>
				</vgroup>
				<vgroup id="InGameMenu" pagemode="true" samesize="true" frame="group" background="groupback">
					<vgroup title="overview" frame="group" background="groupback">
						<hgroup frame="group" background="groupback">
							<button id="btstadium" notify="pressed" frame="button">\33A[31]stadium</button>
							<button id="btcommercial" notify="pressed" frame="button">\33A[4]commercial</button>
							<button id="btfinance" notify="pressed" frame="button">\33A[8]finance</button>
							<button id="btteam" notify="pressed" frame="button">\33A[7]team</button>
							<button id="bttransfer" notify="pressed" frame="button">\33A[28]transfer</button>
							<button id="btcoach" notify="pressed" frame="button">\33A[26]coach</button>
							<button id="btdisk" notify="pressed" frame="button">\33A[25]disk</button>
							<rectangle/>
						</hgroup>
						<hgroup frame="group" background="groupback">
							<button id="btstats" notify="pressed" frame="button">\33A[22]stats</button>
							<button id="btkickoff" notify="pressed" frame="button">\33A[32]kickoff</button>
							<rectangle/>
						</hgroup>
						<hgroup frame="group" background="groupback">
							<text id="txmaininfo" cyclechain="1"/>
							<rectangle/>
						</hgroup>
					</vgroup>
					<vgroup frametitle="Stadium" frame="group" background="groupback">
						<text id="txstadiumname"/>
						<colgroup columns="6" frame="group" background="groupback" cyclechain="1">
							<text>Block</text>
							<text>Size</text>
							<text>Condition</text>
							<text>State</text>
							<text/>
							<text/>
							<text>Pitch</text>
							<text/>
							<text id="txstadiumpitchcondition"/>
							<text/>
							<button id="btstadiumpitch" notify="pressed" frame="button">\33A[21]Repair</button>
							<text/>
							<text>BlockA</text>
							<text id="txstadiumBlockASize"/>
							<text id="txstadiumBlockACondition"/>
							<text id="txstadiumBlockAState"/>
							<button id="btstadiumrepairA" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendA" notify="pressed" frame="button">\33A[21]Extend</button>
							<text>BlockB</text>
							<text id="txstadiumBlockBSize"/>
							<text id="txstadiumBlockBCondition"/>
							<text id="txstadiumBlockBState"/>
							<button id="btstadiumrepairB" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendB" notify="pressed" frame="button">\33A[21]Extend</button>
							<text>BlockC</text>
							<text id="txstadiumBlockCSize"/>
							<text id="txstadiumBlockCCondition"/>
							<text id="txstadiumBlockCState"/>
							<button id="btstadiumrepairC" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendC" notify="pressed" frame="button">\33A[21]Extend</button>
							<text>BlockD</text>
							<text id="txstadiumBlockDSize"/>
							<text id="txstadiumBlockDCondition"/>
							<text id="txstadiumBlockDState"/>
							<button id="btstadiumrepairD" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendD" notify="pressed" frame="button">\33A[21]Extend</button>
						</colgroup>
						<rectangle/>
						<vgroup frametitle="pricing" frame="group" background="groupback" cyclechain="1">
							<colgroup columns="2" frame="group" background="groupback">
								<text>Price</text>
								<text/>
								<String id="ststadiumprice" maxlen="3" accept="0123456789" cyclechain="1"/>
								<button id="btstadiumprice" notify="pressed" frame="button">\33A[8]New Price</button>
							</colgroup>
							<rectangle/>
						</vgroup>
						<vgroup id="stadiumconstruction" frametitle="construction" frame="group" background="groupback">
							<hgroup>
								<text id="txstadiumconstruction"/>
								<text id="txstadiumconstructionblock"/>
							</hgroup>
							<vgroup id="grstadiumextend">
								<text id="txstadiumnewsize">Size</text>
								<String id="ststadiumnewsize" maxlen="6" accept="0123456789" cyclechain="1"/>
							</vgroup>
							<vgroup id="grstadiumrepair">
								<text id="txstadiumnewcond">Condition</text>
								<String id="ststadiumnewcond" maxlen="4" accept="0123456789" cyclechain="1"/>
							</vgroup>
							<text>Cost</text>
							<text id="txstadiumconstructioncost"/>
							<button id="btstadiumcalcoffer" notify="pressed" frame="button">\33A[36]Calculate Offer</button>
							<button id="btstadiumacceptoffer" notify="pressed" frame="button">\33A[23]Accept Offer</button>
							<rectangle/>
						</vgroup>
						<button id="btgotomain1" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Commercial" frame="group" background="groupback">
						<hgroup>
							<vgroup>
								<button id="btcommercialshirt" notify="pressed" frame="button">\33A[20]Shirt</button>
								<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
									<text>Name</text>
									<text id="txcommercialshirtName"/>
									<text>Sum</text>
									<text id="txcommercialshirtSum"/>
									<text>Runtime</text>
									<text id="txcommercialshirtRuntime"/>
								</colgroup>
								<rectangle/>
							</vgroup>
							<vgroup>
								<button id="btcommercialtv" notify="pressed" frame="button">\33A[34]TV</button>
								<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
									<text>Name</text>
									<text id="txcommercialtvName"/>
									<text>Sum</text>
									<text id="txcommercialtvSum"/>
									<text>Runtime</text>
									<text id="txcommercialtvRuntime"/>
								</colgroup>
								<rectangle/>
							</vgroup>
							<vgroup>
								<button id="btcommercialribbon" notify="pressed" frame="button">\33A[4]Ribbon</button>
								<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
									<text>Name</text>
									<text id="txcommercialribbonName"/>
									<text>Sum</text>
									<text id="txcommercialribbonSum"/>
									<text>Runtime</text>
									<text id="txcommercialribbonRuntime"/>
								</colgroup>
								<rectangle/>
							</vgroup>
						</hgroup>
						<vgroup id="commercialoffer" frame="group" background="groupback" frametitle="New Commercial Partner">
							<listview id="commercialofferlist" MultiSelect="None" frame="InputList" notify="active" cyclechain="1">
								<column title="ID" hidden="true"/>
								<column title="Name"/>
								<column title="Sum"/>
								<column title="Runtime"/>
							</listview>
							<button id="btcommercialaccept" notify="pressed" frame="button">\33A[23]Accept Partner</button>
							<rectangle/>
						</vgroup>
						<button id="btgotomain2" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Finance" frame="group" background="groupback" samesize="false">
						<colgroup columns="2" vertweight="100" frame="group" background="groupback" cyclechain="1">
							<text>Overview</text>
							<text id="txfinoverview"/>
							<text>General Income</text>
							<text id="txfinincome"/>
							<text>Commercial</text>
							<text id="txfincommercial"/>
							<text>----</text>
							<text/>
							<text>General Expenses</text>
							<text id="txfinexpenses"/>
							<text>Player</text>
							<text id="txfinplayerexpenses"/>
							<text>Other</text>
							<text id="txfinother"/>
							<text>----</text>
							<text/>
							<text>Current Total</text>
							<text id="txfintotal"/>
						</colgroup>
						<vgroup id="financecreditoverview" title="CreditOverview" frame="group" frametitle="CreditOverview" background="groupback" vertweight="300">
							<listview id="financecreditlist" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
								<column title="ID" hidden="true"/>
								<column title="Sum"/>
								<column title="Rate"/>
								<column title="Interest rate"/>
								<column title="Runtime"/>
							</listview>
							<hgroup frame="group" background="groupback">
								<button id="btfinancecreditpayback" disabled="true" notify="pressed" frame="button">\33A[8]Refund</button>
								<button id="btfinancecreditprolongate" disabled="true" notify="pressed" frame="button">\33A[8]Prolong</button>
								<rectangle/>
							</hgroup>
						</vgroup>
						<rectangle/>
						<vgroup id="financecreditoffer" title="Credit" frame="group" background="groupback" frametitle="New Credit">
							<colgroup columns="2" frame="group" background="groupback">
								<text>Creditsum</text>
								<String id="stfinancecreditsum" maxlen="8" accept="0123456789" cyclechain="1"/>
								<text>Creditruntime</text>
								<cycle id="cycreditruntime" cyclechain="1">
									<item>12</item>
									<item>24</item>
									<item>36</item>
									<item>48</item>
								</cycle>
							</colgroup>
							<button id="btfinancecredit" notify="pressed" frame="button">\33A[11]Offer Credit</button>
						</vgroup>
						<button id="btgotomain3" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Team" frame="group" background="groupback" samesize="false">
						<vgroup frame="group" background="groupback" samesize="true">
							<button id="btteamcontract" notify="pressed" frame="button">\33A[33]Contract</button>
							<button id="btteamlineup" notify="pressed" frame="button">\33A[7]Lineup</button>
							<button id="btteamtraining" notify="pressed" frame="button">\33A[35]Training</button>
							<rectangle/>
						</vgroup>
						<vgroup frame="group" background="groupback" >
							<vgroup id="pgrteam" pagemode="true" frame="group" background="groupback">
								<vgroup id="grteamcontract" frametitle="contract" frame="group" background="groupback">
									<listview id="teamcontractlist" input="true" frame="InputList" notify="active" cyclechain="1">
										<column title="ID" hidden="true"/>
										<column title="Name"/>
										<column title="Stamina"/>
										<column title="Technic"/>
										<column title="Runtime"/>
										<column title="Wage"/>
									</listview>
									<hgroup frame="group" background="groupback">
										<cycle id="cyplayernewruntime" cyclechain="1">
											<item>12</item>
											<item>24</item>
											<item>36</item>
											<item>48</item>
										</cycle>
										<button id="btteamcontractplayeroffer" notify="pressed" frame="button">\33A[23]Extend</button>
										<button id="btteamcontractplayerfire" notify="pressed" frame="button">\33A[19]Fire</button>
										<button id="btteamcontractplayersell" notify="pressed" frame="button">\33A[8]Sell</button>
										<button id="btteamcontractplayerlend" notify="pressed" frame="button">\33A[8]Lend</button>
										<rectangle/>
									</hgroup>
								</vgroup>
								<vgroup id="grteamlineup" frametitle="lineup" frame="group" background="groupback">
									<hgroup frame="group" background="groupback">
										<vgroup frametitle="formation" frame="group" background="groupback">
											<cycle id="cyteamlineupformation" cyclechain="1">
												<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[27]Set</button>
											<rectangle/>
										</vgroup>
										<colgroup id="grteam442" hide="true" columns="5" frame="group" background="groupback">
											<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" frame="group" background="groupback">
											<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" frame="group" background="groupback">
											<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" frame="group" background="groupback">
											<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>
									<rectangle/>
									<vgroup id="grplayers" frametitle="players" frame="group" background="groupback" cyclechain="1">
										<hgroup>
											<text>1</text>
											<cycle id="cyteamlineup1" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>2</text>
											<cycle id="cyteamlineup2" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>3</text>
											<cycle id="cyteamlineup3" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>4</text>
											<cycle id="cyteamlineup4" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>5</text>
											<cycle id="cyteamlineup5" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>6</text>
											<cycle id="cyteamlineup6" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>7</text>
											<cycle id="cyteamlineup7" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>8</text>
											<cycle id="cyteamlineup8" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>9</text>
											<cycle id="cyteamlineup9" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>10</text>
											<cycle id="cyteamlineup10" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>11</text>
											<cycle id="cyteamlineup11" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>12</text>
											<cycle id="cyteamlineup12" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>13</text>
											<cycle id="cyteamlineup13" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>14</text>
											<cycle id="cyteamlineup14" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>15</text>
											<cycle id="cyteamlineup15" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<hgroup>
											<text>16</text>
											<cycle id="cyteamlineup16" cyclechain="1">
												<item>PlayerName</item>
											</cycle>
										</hgroup>
										<rectangle/>
										<vgroup>
											<text>Strength:</text>
											<text id="txteamselectedplayerstrength"/>
											<button id="btteamselectedplayerset" notify="pressed" frame="button">\33A[27]Set Players</button>
											<rectangle/>
										</vgroup>
									</vgroup>
								</vgroup>
								<vgroup id="grteamtraining" frametitle="training" frame="group" background="groupback">
									<text>Intensity</text>
									<slider id="sltrainingintense" min="0" max="100" cyclechain="1"/>
									<colgroup columns="2" frame="group" background="groupback">
										<text>Points</text>
										<text id="txteamtrainingpoints" cyclechain="1"/>
										<text>Condition</text>
										<String id="stteamtrainingpointscondition" maxlen="3" accept="0123456789" cyclechain="1"/>
										<text>Technic</text>
										<String id="stteamtrainingpointstechnic" maxlen="3" accept="0123456789" cyclechain="1"/>
										<text>Special</text>
										<rectangle/>
										<cycle id="cyteamtrainingspecial" cyclechain="1">
											<item>assist</item>
											<item>dribbling</item>
											<item>scoring</item>
											<item>speed</item>
											<item>passing</item>
											<item>shoot</item>
											<item>dueling</item>
											<item>heading</item>
										</cycle>
										<rectangle/>
									</colgroup>
									<button id="btteamtrainingset" notify="pressed" frame="button" cyclechain="1">\33A[27]Set</button>
									<rectangle/>
								</vgroup>
							</vgroup>
							<button id="btgotomain4" notify="pressed" frame="button">\33A[9]main</button>
							<rectangle/>
						</vgroup>
					</vgroup>
					<vgroup frametitle="Transfer" frame="group" background="groupback" samesize="false">
						<button id="bttransferfreeagent" notify="pressed" frame="button">\33A[15]FreeAgent</button>
						<button id="bttransferbuy" notify="pressed" frame="button">\33A[16]Buy</button>
						<button id="bttransferoffer" notify="pressed" frame="button">\33A[17]Offer</button>
						<button id="bttransferlend" notify="pressed" frame="button">\33A[14]Lend</button>
						<rectangle/>
						<vgroup id="vgrtransfer" pagemode="true" frame="group" background="groupback" vertweight="300">
							<vgroup id="grtransferFreeAgent" frame="group" background="groupback" frametitle="FreeAgent">
								<listview id="transferfreeagentlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<button id="bttransferfreeagentSign" notify="pressed" frame="button">\33A[23]Sign</button>
								<rectangle/>
							</vgroup>
							<vgroup id="grtransferBuy" frame="group" background="groupback" frametitle="Buy">
								<listview id="transferbuylist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<colgroup columns="2" frame="group" background="groupback" frametitle="Offering">
									<text>Sum</text>
									<String id="sttransferoffersum" accept="0123456789" cyclechain="1"/>
									<text>Wage</text>
									<String id="sttransferofferwage" accept="0123456789" cyclechain="1"/>
									<text>Runtime</text>
									<cycle id="cytransferofferruntime" cyclechain="1">
										<item>12</item>
										<item>24</item>
										<item>36</item>
										<item>48</item>
									</cycle>
									<button id="bttransferbuySign" notify="pressed" frame="button">\33A[23]Place order</button>
									<rectangle/>
								</colgroup>
								<rectangle/>
								<vgroup frame="group" background="groupback" frametitle="Pending Orders">
									<listview id="transferbuylistpending" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
										<column title="ID" hidden="true"/>
										<column title="Position"/>
										<column title="Name"/>
										<column title="Sum"/>
										<column title="Wage"/>
									</listview>
									<colgroup columns="2" frame="group" background="groupback">
										<button id="bttransferbuySignRecall" notify="pressed" frame="button">\33A[19]Recall order</button>
										<text>Sum</text>
										<text id="txtransferbuysum" cyclechain="1"/>
										<text>Wage</text>
										<text id="txtransferbuywage" cyclechain="1"/>
										<text>Total available</text>
										<text id="txtransferbuytotal" cyclechain="1"/>
                                        <text/>
									</colgroup>
									<rectangle/>
								</vgroup>
								<rectangle/>
							</vgroup>
							<vgroup id="grtransferOffer" frame="group" background="groupback" frametitle="Offer">
								<listview id="transferofferlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="on Transfer"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<hgroup frame="group" background="groupback">
									<button id="bttransferOfferPlayer" notify="pressed" frame="button">\33A[8]Offer</button>
									<button id="bttransferOfferPlayerView" notify="pressed" frame="button">\33A[13]View offer</button>
									<button id="bttransferOfferPlayerOff" notify="pressed" frame="button">\33A[19]Put Off market</button>
									<rectangle/>
								</hgroup>
								<vgroup id="transfercluboffer" frame="group" background="groupback">
									<listview id="transferclubofferlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
										<column title="playerID" hidden="true"/>
										<column title="ClubID" hidden="true"/>
										<column title="Club"/>
										<column title="Sum"/>
										<column title="Wage"/>
										<column title="Runtime" hidden="true"/>
									</listview>
									<button id="bttransferclubofferacceptoffer" notify="pressed" frame="button">\33A[23]Accept Offer</button>
									<button id="bttransfercluboffermore" notify="pressed" frame="button">\33A[8]Ask for More</button>
									<button id="bttransferclubofferrejectoffer" notify="pressed" frame="button">\33A[19]Reject Offer</button>
									<rectangle/>
								</vgroup>
							</vgroup>
							<vgroup id="grtransferLend" frame="group" background="groupback" frametitle="Lend">
								<listview id="transferlendlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="on Transfer"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<hgroup frame="group" background="groupback">
									<button id="bttransferLendPlayer" notify="pressed" frame="button">\33A[8]Offer Lend</button>
									<button id="bttransferLendPlayerOff" notify="pressed" frame="button">\33A[19]Put Off market</button>
									<rectangle/>
								</hgroup>
								<listview id="transferlendlistOthers" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<button id="bttransferLendPlayerOthers" notify="pressed" frame="button">\33A[23]Sign Lend</button>
								<rectangle/>
							</vgroup>
						</vgroup>
						<vgroup frame="group" background="groupback">
							<button id="btgotomain5" notify="pressed" frame="button">\33A[9]main</button>
							<rectangle/>
						</vgroup>
					</vgroup>
					<vgroup frametitle="Disk" frame="group" background="groupback" samesize="false">
						<button id="btsave" notify="pressed" frame="button">\33A[2]Save</button>
						<button id="btload" notify="pressed" frame="button">\33A[6]Load</button>
						<button id="btend" notify="pressed" frame="button">\33A[29]End</button>
						<button id="btgotomain6" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Coach" frame="group" background="groupback" samesize="false">
						<vgroup id="currentcoach" disabled="false" frame="group" frametitle="Coach">
							<colgroup columns="2" frame="group" background="groupback">
								<text>Name</text>
								<text id="txcoachname"/>
								<text>Type</text>
								<text id="txcoachtype"/>
								<text>Competence</text>
								<text id="txcoachcompetence"/>
								<text>Tactic</text>
								<text id="txcoachtactic"/>
								<text>Wage</text>
								<text id="txcoachwage"/>
							</colgroup>
							<rectangle/>
						</vgroup>
						<button id="btcoachfire" notify="pressed" frame="button">\33A[19]fire</button>
						<rectangle/>
						<vgroup id="freecoach" disabled="false" frame="group" background="groupback" frametitle="Coachlist">
							<vgroup frame="group">
								<cycle id="coachfilter" cyclechain="1">
									<item>All</item>
									<item>Type</item>
									<item>Tactic</item>
								</cycle>
								<rectangle/>
								<hgroup id="freecoachtype" disabled="false" frame="group" background="groupback">
									<checkmark id="btcoachcty1" selected="true" cyclechain="1"/>
									<text>Tactic</text>
									<checkmark id="btcoachcty2" selected="true" cyclechain="1"/>
									<text>Stamina</text>
									<checkmark id="btcoachcty3" selected="true" cyclechain="1"/>
									<text>Motivation</text>
									<checkmark id="btcoachcty4" selected="true" cyclechain="1"/>
									<text>General</text>
								</hgroup>
								<hgroup id="freecoachtactic" disabled="false" frame="group" background="groupback">
									<checkmark id="btcoachcta1" selected="true" cyclechain="1"/>
									<text>4-4-2</text>
									<checkmark id="btcoachcta2" selected="true" cyclechain="1"/>
									<text>3-5-2</text>
									<checkmark id="btcoachcta3" selected="true" cyclechain="1"/>
									<text>4-3-3</text>
									<checkmark id="btcoachcta4" selected="true" cyclechain="1"/>
									<text>5-3-2</text>
								</hgroup>
							</vgroup>
							<button id="btfiltercoach" notify="pressed" frame="button">\33A[30]Filter</button>
							<rectangle/>
							<listview id="freecoachlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
								<column title="ID" hidden="true"/>
								<column title="Name"/>
								<column title="Type"/>
								<column title="Competence"/>
								<column title="Tactic"/>
							</listview>
							<hgroup>
								<button id="btcoachview" notify="pressed" frame="button">\33A[13]view</button>
								<button id="btcoachhire" notify="pressed" frame="button">\33A[23]hire</button>
								<rectangle/>
							</hgroup>
						</vgroup>
						<button id="btgotomain8" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Stats" frame="group" background="groupback" samesize="false">
						<vgroup>
							<button id="btstatsaverage" notify="pressed" frame="button">\33A[22]stats</button>
							<button id="btstatsleague" notify="pressed" frame="button">\33A[22]league</button>
							<button id="btgotomain9" notify="pressed" frame="button">\33A[9]main</button>
							<rectangle/>
						</vgroup>
						<vgroup id="pgrstats" pagemode="true" frame="group" background="groupback" samesize="false" vertweight="300">
							<vgroup title="grstatsaverage" id="grstatsaverage" frame="group" background="groupback" samesize="false">
								<cycle id="cystats" cyclechain="1">
									<item>Average</item>
									<item>Tops</item>
								</cycle>
								<button id="btstatsdisplay" notify="pressed" frame="button">\33A[13]display</button>
								<listview id="statslist" input="false" autovisible="true" MultiSelect="None" frame="ReadList" notify="active" cyclechain="1">
									<column title="Key"/>
									<column title="Value"/>
								</listview>
								<rectangle/>
							</vgroup>
							<vgroup title="grstatsleague" id="grstatsleague" frame="group" background="groupback" samesize="false">
								<hgroup id="statscygr" frame="group" background="groupback" samesize="true">
									<cycle id="cystatsnation" notify="active" cyclechain="1">
										<item>Default</item>
									</cycle>
									<cycle id="cystatsleague" notify="active" cyclechain="1">
										<item>Default</item>
									</cycle>
									<cycle id="cystatsmatchday" notify="active" cyclechain="1">
										<item>Default</item>
									</cycle>
									<button id="btstatsdisplaymatchday" notify="pressed" frame="button">\33A[13]display</button>
									<rectangle/>
								</hgroup>
								<listview id="statsmatchday" input="false" autovisible="true" MultiSelect="None" frame="ReadList" cyclechain="1">
									<column title="Home"/>
									<column title="Away"/>
									<column title="Result"/>
								</listview>
								<listview id="statsmatchdaytable" input="false" autovisible="true" MultiSelect="None" frame="ReadList" cyclechain="1">
									<column title=""/>
									<column title="Club"/>
									<column title="Pts"/>
									<column title="GD"/>
								</listview>
								<rectangle/>
							</vgroup>
						</vgroup>
					</vgroup>
					<!--
					<vgroup frametitle="matchday" frame="group" background="groupback">
						<colgroup columns="2" frame="group" background="groupback">
							<text id="txmatchdayhome"/>
							<text id="txmatchdayaway"/>
							<text id="txmatchdayhomescore"/>
							<text id="txmatchdayawayscore"/>
						</colgroup>
						<rectangle/>
						<vgroup>
							<gauge id="gaugematchtime" max="90" horiz="true"/>
							<scale/>
						</vgroup>
						<button id="btmatchdaypause" notify="pressed" frame="button">\33A[4]Pause</button>
						<rectangle/>
					</vgroup>
					-->
				</vgroup>
				<vgroup id="ClubSelection" frame="group" frametitle="ClubSelection" background="groupback" samesize="true">
					<hgroup>
						<button id="btshowclubdetails" notify="pressed" frame="button">\33A[13]ShowClubDetails</button>
						<button id="btclearclubselection" notify="pressed" frame="button">\33A[19]ClearSelection</button>
						<button id="btgotomain7" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</hgroup>
					<text id="txclubname"/>
					<hgroup>
						<vgroup id="listofleagues" disabled="false" frame="group" frametitle="Leaguelist">
							<listview id="leaguelist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
								<column title="ID"/>
								<column title="Name"/>
								<column title="Nation"/>
							</listview>
						</vgroup>
						<vgroup id="listofclubs" disabled="false" frame="group" frametitle="Clublist">
							<listview id="clublist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;doubleclick" cyclechain="1">
								<column title="ID"/>
								<column title="Name"/>
								<column title="League"/>
								<column title="Account"/>
								<column title="Stadium"/>
							</listview>
						</vgroup>
					</hgroup>
					<rectangle/>
				</vgroup>
				<vgroup id="PlayerSelection" frame="group" frametitle="PlayerSelection" background="groupback">
					<hgroup frame="group" background="groupback">
						<listview id="playerlistcleanall" autovisible="true" MultiSelect="Default" input="true" frame="InputList" notify="active" cyclechain="1">
							<column title="ID" hidden="true"/>
							<column title="Position"/>
							<column title="Name"/>
							<column title="Age"/>
							<column title="Wage"/>
							<column title="Stamina"/>
							<column title="Technic"/>
						</listview>
						<listview id="playerlistcleanselected" autovisible="true" MultiSelect="Default" input="true" frame="InputList" notify="active" cyclechain="1">
							<column title="ID" hidden="true"/>
							<column title="Position"/>
							<column title="Name"/>
							<column title="Age"/>
							<column title="Wage"/>
							<column title="Stamina"/>
							<column title="Technic"/>
						</listview>
					</hgroup>
					<hgroup frame="group" background="groupback">
						<button id="btplayerselectFire" notify="pressed" frame="button">\33A[19]Fire</button>
						<button id="btplayerselectKeep" notify="pressed" frame="button">\33A[24]Keep</button>
						<rectangle/>
					</hgroup>
					<hgroup frame="group" background="groupback">
						<button id="btplayerselectSet" notify="pressed" frame="button">\33A[27]Confirm</button>
						<rectangle/>
					</hgroup>
				</vgroup>
			</vgroup>
		</vgroup>
	</window>
</application>
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: definition review and comments

Post by airsoftsoftwair »

Please prepare a single archive that contains everything and allows me to run the script out of the box. Then I might be able to help you :)
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: definition review and comments

Post by GMKai »

https://www.dropbox.com/s/ofkcbok67ty63 ... e.lha?dl=0
Here you find the archive of the current game.
I have prepared a Function p_demo()
to load and manipulate a given datafile.
Feel free to navigate around and try out the currently available functions.
On top of the archive you need to install AISS
http://www.masonicons.de/
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: definition review and comments

Post by airsoftsoftwair »

I have it up and running now. The window is horizontally sizeable but not vertically. Is that the problem?
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: definition review and comments

Post by GMKai »

Yes,
that is the major problem.
Another point would be some sort of comment on the user-experience.

Is the arangement of options good enough?

Any hints on how to improve the given menus?
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: definition review and comments

Post by airsoftsoftwair »

I'm afraid I don't see what is blocking vertical resize but it's a hell of a lot XML code. I'm afraid you'll have to go through this and disable all the major vgroups one by one to find out which one is blocking vertical resize. Then it should be possible to fix it...

As a general advice, I wouldn't stuff everything into a single window but just open child windows when the user clicks a button in the main menu. Also, there are way too many frames for my taste :)
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: definition review and comments

Post by GMKai »

please check this:

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app" base="HSMGAME" menustrip="menu">
<menustrip id="menu">
		<menu title="HollywoodSoccerManager">
			<item id="mn_about" notify="selected" shortcut="?">About...</item>
			<item id="mn_aboutmui" notify="selected">About MUI...</item>
			<item id="mn_aboutmuiroyale" notify="selected">About MUI Royale...</item>
			<item/>
			<item id="mn_quit" notify="selected" shortcut="Q">Quit</item>
		</menu>
		<menu title="Settings">
			<item id="mn_muisettings" notify="selected" shortcut="S">MUI...</item>
		</menu>
	</menustrip>	
	<window title="HSM-Game" id="win" muiid="HSMW" notify="closerequest" userightborderscroller="false" usebottomborderscroller="false">
		<vgroup frame="group" background="groupback">
			<vgroup id="pgr" title="HSM-Menu" pagemode="true" frame="group" background="groupback">
				<vgroup id="MainMenu" title="Main	Menu" frame="group" frametitle="MainMenu" background="groupback" samesize="true">
					<hgroup title="loadgame" frame="group" frametitle="LoadGame" background="groupback">
						<button id="btloadgame" notify="pressed" frame="button">\33A[2]_LoadGame</button>
						<rectangle/>
					</hgroup>
					<hgroup title="newgame" frame="group" frametitle="NewGame" background="groupback">
						<button id="btsetdataset" notify="pressed" frame="button">\33A[6]_Dataset</button>
						<button id="btsetmanagername" notify="pressed" frame="button">\33A[5]_Managername</button>
						<button id="btsetclub" notify="pressed" frame="button">\33A[7]_Club</button>
						<button id="btsetlanguage" notify="pressed" frame="button">\33A[18]_Language</button>
						<rectangle/>
					</hgroup>
					<hgroup title="startgame" frame="group" frametitle="Start" background="groupback">
						<button id="btstartgame" disabled="true" notify="pressed" frame="button">\33A[3]_StartGame</button>
						<button id="btclearselection" notify="pressed" frame="button">\33A[19]_ClearSelection</button>
						<rectangle/>
					</hgroup>
				</vgroup>
			</vgroup>
		</vgroup>
	</window>
</application>
even this short sample is not fully resizeable. can anyone point to the fault?
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: definition review and comments

Post by GMKai »

ok fixed it with adding
<rectangle/>
under the last <hgroup>

but what was the blocking element, that did not have any <rectangle/> padded around?
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: definition review and comments

Post by airsoftsoftwair »

That's actually quite obvious. You only have buttons in your hgroups and buttons are not vertically resizeable, only horizontally. Thus, if you want your window to be vertically resizable, you have to add a dummy rectangle object in the vgroup so that there is an object which is vertically resizable inside the vgroup. Otherwise vertical resize will be blocked because the vgroup doesn't have any element in it which is resizable.

Btw, the <rectangle> objects inside your hgroups aren't really needed because buttons are horizontally resizable anyway.
Post Reply