Jump to content

[FM22] Scouting Card Action Buttons


BuzzR
 Share

Recommended Posts

Hi.

Did anyone manage to change the pop-up "Offer trial"  into a regular button ?

 I don't know if the vanilla behavior is not bugged somehow .. 

First item out of 3 .. selecting offer trial.

spacer.png 

Now second item out of 3 .. the button is visible and stays like this but the text is default disabled. The button works.

spacer.png

The xml controlling the buttons is this one : panels\player\player scouting card actions.xml

And the relevant code

<!--Make Offer & other options button/popup button combo-->
		<container height="30">
			<layout class="arrange_horizontal_attachment" alignment="left" embed_in_frame="false" offset="0">
				<global id="gap" name="ui.split_button_row_gap" />
			</layout>
			<layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" embed_in_frame="false" />
			<layout class="fit_children_attachment" alignment="horizontal,fill" embed_in_frame="false" offset="0">
				<global id="gap" name="ui.split_button_row_gap" />
			</layout>

			<widget class="icon_button" id="mkof" auto_size="horizontal" red_replacement="green 700" blue_replacement="green 800" appearance="buttons/primary/split/left/button" icon="icons/custom/transfer deadline day/transfer status/offer made" icon_colour="fg" secondary_icon_colour="fg" colour="white" disabled_colour="faded text"  font="button">
				<attachment class="test_screen_size_attachment" alignment="horizontal" min_value="0" max_value="1700" set_property="ldis" true_value="true" false_value="false"/>
				<attachment class="test_global_attachment" mode="equal" get_property="section" value="tssc" set_property="disabled" skip_if_false="false"/>
				<translation id="text" translation_id="344655" type="use" value="Quick Pick[COMMENT - team screen team selection, contains the former Ask To Pick menu but also acts as a standalone button which picks the team, renamed for accuracy]" />
			</widget>

			<widget class="popup_button" id="ofPB" auto_size="all" icon_colour="fg" secondary_icon_colour="fg" red_replacement="green 700" blue_replacement="green 800" appearance="buttons/primary/split/right/button" disabled_colour="faded text" font="button">
				<attachment class="test_screen_size_attachment" alignment="horizontal" min_value="0" max_value="1700" set_property="ldis" true_value="true" false_value="false"/>
				<attachment class="test_global_attachment" mode="equal" get_property="section" value="tssc" set_property="disabled" skip_if_false="false"/>
			</widget>
		</container>

I've tried changing to icon_button, moving outside of the container .. nothing. 

Everything is so strange with the scouting centre / scouting cards this year.. even the comment is off topic.

The containers have strange constrains with screen size, hiding checkboxes - but there is so much space on the screen. 

Anyway.. any idea will be appreciated.

Thanks.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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