Interdire l'accès à la sélection de groupe

Bonjour bonjour !
Existe-t-il un moyen d’interdire au joueur l’accès à l’option de sélection de groupe? Clairement, je veux que le roster existe, mais que le joueur n’ait aucun contrôle dessus. J’ai vu que la chose était possible dans les deux campagnes X1 et X2 officielles, mais je n’ai pas le niveau pour dénicher le script…
Merci à vous!

Hello Hello !
Is there a way to prevent the player from accessing the group selection option? Clearly, I want the roster to exist, but the player has no control over it. I saw that the thing was possible in the two campaigns X1 and X2 official, but I do not have the level to find the script …
Thank you!

bonjour,
copy ‘playermenu_popup.xml’ from the <install>\UI\default folder to your Campaign folder

then disable the element that allows player to open the PartySelect screen

ie, change this

<!-- Party Roster -->
<UIButton name="PM_PLIST_IMAGE" x=19 y=154 width=24 height=24 
OnLeftClick=UIButton_Input_PlayerMenuChoice("SCRIPT_SCREEN_PARTYSELECT","SCREEN_PLAYERMENU_POPUP") 
DefaultToolTip=182793 OnToolTip=UIObject_Tooltip_DisplayObject(OBJECT_X,OBJECT_Y,SCREEN_TOOLTIP_2,ALIGN_NONE,ALIGN_NONE,0,0,ALIGN_LEFT) >
    <UIFrame state=up         fill="b_partyselect.tga" />
    <UIFrame state=down       fill="b_partyselect.tga" />
    <UIFrame state=focused    fill="b_partyselect.tga" />
    <UIFrame state=hilited    fill="b_partyselect.tga" />
    <UIFrame state=hifocus    fill="b_partyselect.tga" />
    <UIFrame state=disabled   fill="b_partyselect.tga" />
</UIButton>    
<UIButton name="PLIST_TOGGLE_BUTTON" x=43 y=154 strref="182793" DefaultToolTip=182793 style="PM_TOGGLE_BUTTON"
    OnLeftClick=UIButton_Input_PlayerMenuChoice("SCRIPT_SCREEN_PARTYSELECT","SCREEN_PLAYERMENU_POPUP") >
</UIButton>

to this

<!-- Party Roster
<UIButton name="PM_PLIST_IMAGE" x=19 y=154 width=24 height=24 
OnLeftClick=UIButton_Input_PlayerMenuChoice("SCRIPT_SCREEN_PARTYSELECT","SCREEN_PLAYERMENU_POPUP") 
DefaultToolTip=182793 OnToolTip=UIObject_Tooltip_DisplayObject(OBJECT_X,OBJECT_Y,SCREEN_TOOLTIP_2,ALIGN_NONE,ALIGN_NONE,0,0,ALIGN_LEFT) >
    <UIFrame state=up         fill="b_partyselect.tga" />
    <UIFrame state=down       fill="b_partyselect.tga" />
    <UIFrame state=focused    fill="b_partyselect.tga" />
    <UIFrame state=hilited    fill="b_partyselect.tga" />
    <UIFrame state=hifocus    fill="b_partyselect.tga" />
    <UIFrame state=disabled   fill="b_partyselect.tga" />
</UIButton>    
<UIButton name="PLIST_TOGGLE_BUTTON" x=43 y=154 strref="182793" DefaultToolTip=182793 style="PM_TOGGLE_BUTTON"
    OnLeftClick=UIButton_Input_PlayerMenuChoice("SCRIPT_SCREEN_PARTYSELECT","SCREEN_PLAYERMENU_POPUP") >
</UIButton> -->
2 Likes

Excellent, it works! Thanks a lot.

2 Likes