Jump to content

[FM2015] [Help] Adding the "Go on holiday" button in the Header ?


drswit

Recommended Posts

I wanted to place the Go on holiday button in the header. I did it, but there's no event when i select an option in the popup button ("Choose..." should load the date.xml file) and nothing happens when i click on the Go on holiday button. Obviously, i did it wrong and would want to know if you can help ? Thanks in advance :)

What i did :

00.png

The code i took from go on holiday.xml and put in client object browser.xml :

		<widget class="popup_button" alignment="left,centre_y" auto_size="vertical" id="rtdm" fixed="true" select_event="chdt" column="2" row="1" column_span="3">
		<translation id="text" translation_id="247282" type="use" value="Choose date" />
		<list id="items">
			<record id="rtnw">
				<translation id="name" translation_id="247283" type="use" value="Next week" />
			</record>
			<record id="rtnm">
				<translation id="name" translation_id="247284" type="use" value="Next month" />
			</record>
			<record id="rtna">
				<translation id="name" translation_id="247285" type="use" value="Next match" />
			</record>
			<record id="rtps">
				<translation id="name" translation_id="257236" type="use" value="Next squad selection[COMMENT: go on holiday dialog; indicating when the manager will return from holiday]" />
			</record>

			<record id="chdt">
				<translation id="name" translation_id="242438" type="use" value="Choose..." />
			</record>
		</list>
	</widget>

		<widget class="icon_button_blue" id="ok" auto_size="all" icon="icons/16px/tick">
	<translation id="text" translation_id="343772" type="use" value="Go On Holiday[COMMENT: button text to send the user on holiday]" />
</widget>

Link to post
Share on other sites

If i take the example of the Instant Result button, it looks like this :

    <!--instant match button-->
     <widget class="button" id="INST" size="10" appearance="buttons/custom/instant/button" width="150" font="bold" colour="white" alignment="centre">
       <translation id="text" translation_id="339740" type="use" value="Instant Result[COMMENT: text for a button that will generate an instant result for the upcoming match rather than having to go through and play it]" />
       <record id="click_event" event_id="INST" event_target="glob" />

       <attachment class="test_global_attachment" get_property="sect" mode="1" set_property="hidn">
         <list id="value">
           <integer value="phtc" />
           <integer value="PhcP" />
           <integer value="PhcS" />
           <integer value="PhcN" />
           <integer value="PhcC" />
           <integer value="PhcF" />
           <integer value="patc" />
           <integer value="PacP" />
           <integer value="PacS" />
           <integer value="PacN" />
           <integer value="PacC" />
           <integer value="PacF" />
         </list>
       </attachment>
     </widget>

This line in particular :

<record id="click_event" event_id="INST" event_target="glob" />
Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...