# Mercenary Panel Exited
Grammar — Player player exits the Mercenary Panel
Flags —Native
|Event
This event fires when a player closes the mercenary panel.
# Arguments
int
— Player
Returns — void
native void TriggerAddEventMercenaryPanelExit(
trigger t,
int player,
);
# Related
Category: Story / Mercenary Panel
- Mercenary Panel Exited —
void
— TriggerAddEventMercenaryPanelExit - Mercenary Panel Purchase —
void
— TriggerAddEventMercenaryPanelPurchase - Mercenary Panel Selection Changed —
void
— TriggerAddEventMercenaryPanelSelectionChanged - Create Mercenary —
void
— MercenaryCreate - Last Created Mercenary —
int
<preset::Mercenary> — MercenaryLastCreated - Destroy Mercenary —
void
— MercenaryDestroy - Set Mercenary Title Text —
void
— MercenarySetTitleText - Set Mercenary Unit Text —
void
— MercenarySetUnitText - Set Mercenary CostText —
void
— MercenarySetCostText - Set Mercenary Description Text —
void
— MercenarySetDescriptionText - Set Mercenary Special Text —
void
— MercenarySetSpecialText - Set Mercenary Availability Text —
void
— MercenarySetAvailabilityText - Set Mercenary Cost —
void
— MercenarySetCost - Set Mercenary State —
void
— MercenarySetState - Set Mercenary Portrait Image —
void
— MercenarySetImageFilePath - Set Mercenary Portrait Model —
void
— MercenarySetModelLink - Set Mercenary Scene —
void
— MercenarySetScenePath - Set Mercenary Player Group —
void
— MercenarySetPlayerGroup - Set Mercenary Recently Purchased —
void
— MercenarySetRecentlyPurchased - Mercenary Is Recently Purchased —
bool
— MercenaryIsRecentlyPurchased - Purchase Mercenary —
void
— MercenaryPurchase - Set Selected Mercenary —
void
— MercenarySetSelected - Enable/Disable Mercenary Panel Close Button —
void
— MercenaryPanelSetCloseButtonEnabled - Enable/Disable Mercenary Panel Dismiss Button —
void
— MercenaryPanelSetDismissButtonEnabled - Selected Mercenary —
int
<preset::Mercenary> — MercenaryGetSelected
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:12297
void libCamp_gt_TS_MercUIExit_Init () {
libCamp_gt_TS_MercUIExit = TriggerCreate("libCamp_gt_TS_MercUIExit_Func");
TriggerAddEventMercenaryPanelExit(libCamp_gt_TS_MercUIExit, c_playerAny);
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:13790
void libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked_Init () {
libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked = TriggerCreate("libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked_Func");
TriggerAddEventMercenaryPanelExit(libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked, c_playerAny);
}