# Show/Hide Resource
Grammar — showHide resourceType for playerGroup
Flags —Native
|Action
# Arguments
playergroup
— PlayerGroupint
<preset::ResourceType> — Resource Typebool
<preset::ShowHideOption> — Show/Hide
Returns — void
native void UISetResourceVisible(
playergroup inPlayers,
int inResource,
bool inVisible,
);
# Related
Category: UI / Game UI
- Set Screen Mode —
void
— UISetMode - Set Minimum Letterbox Height —
void
— UISetMinimumLetterboxHeight - Show/Hide Game UI —
void
— libNtve_gf_HideGameUI - Add/Remove UI Frame Type For Global Filter List —
void
— libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList - UI Frame Flag — preset —
int
- UI Frame Flag Check —
bool
— libNtve_gf_UIFrameFlagCheck - For Each UI Frame — macro
- Show/Hide UI Frame —
void
— UISetFrameVisible - Set BattleNet Button Offset —
void
— UISetBattleNetButtonOffset - Clear BattleNet Button Offset —
void
— UIClearBattleNetButtonOffset - UI Frame Is Visible —
bool
— UIFrameVisible - Show/Hide World —
void
— UISetWorldVisible - Show/Hide Achievement Panel —
void
— AchievementPanelSetVisible - Show/Hide Mouse Cursor —
void
— UISetCursorVisible - Enable/Disable Mouse Cursor Auto Hide —
void
— UISetCursorAutoHide - Enable/Disable Drag Selection —
void
— UISetDragSelectEnabled - Set Hot Key Profile —
void
— UISetHotkeyProfile - Lock Ally Color Setting —
void
— UIUnitColorStyleOverride - Unlock Ally Color Setting —
void
— UIUnitColorStyleClearOverride - Lock Flyer Helper Display —
void
— UIFlyerHelperOverride - Unlock Flyer Helper Display —
void
— UIFlyerHelperClearOverride - Lock Status Bar Display —
void
— UIStatusBarOverride - Unlock Status Bar Display —
void
— UIStatusBarClearOverride - Set Achievement Toast Style —
void
— UISetAchievementToastStyle - Set Minimap Background Color —
void
— UISetMiniMapBackGroundColor - Show/Hide Minimap Camera Field of View —
void
— UISetMiniMapCameraFoVVisible - Set Minimap Bounds —
void
— UISetMiniMapBounds - Enable/Disable Command Type —
void
— UISetCommandAllowed - Turn Ability Highlight On/Off —
void
— UISetButtonHighlighted - Turn Button Highlight On/Off —
void
— UISetButtonFaceHighlighted - Set Command Type Disabled Message —
void
— UISetCommandDisallowedMessage - Show/Hide Resource —
void
— UISetResourceVisible - Enable/Disable Selection Type —
void
— UISetSelectionTypeEnabled - Launch Nydus Link —
void
— UILaunchNydusLink - Show/Hide Message Log —
void
— UIMessageLogPanelSetVisible - Set Targeting Order —
void
— UISetTargetingOrder - Enable/Disable Hotkey —
void
— UISetHotkeyAllowed - Target Mode Updated —
void
— TriggerAddEventTargetModeUpdate - Resources Requested —
void
— TriggerAddEventResourceRequest - Resources Traded —
void
— TriggerAddEventResourceTrade - Target Mode Ability Command —
abilcmd
— EventTargetModeAbilCmd - Target Mode State —
int
<preset::TargetModeState> — EventTargetModeState - Resource Requested Amount —
int
— EventResourceRequestAmount - Resource Traded Amount —
int
— EventResourceTradeAmount - Resource Traded Recipient —
int
— EventResourceTradeRecipient
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:830
PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:831
PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:832
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:1184
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:1185
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:1186
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
DialogControlHookupStandard(c_triggerControlTypeButton, "UIContainer/ConsoleUIContainer/IdleButton");
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1314
UISetAlertTypeVisible(PlayerGroupAll(), "AttackUnitAlly_Zerg", false);
UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1315
UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:1842
}
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:1843
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeIdleWorkerButton, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map — MapScript.galaxy:830
PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map — MapScript.galaxy:831
PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map — MapScript.galaxy:832
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:1184
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:1185
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:1186
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
DialogControlHookupStandard(c_triggerControlTypeButton, "UIContainer/ConsoleUIContainer/IdleButton");
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:1314
UISetAlertTypeVisible(PlayerGroupAll(), "AttackUnitAlly_Zerg", false);
UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:1315
UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:1842
}
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:1843
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeIdleWorkerButton, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7730
libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7731
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7740
libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7741
libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:8213
UnitIssueOrder(UnitFromId(35), Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:8214
VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
PingDestroy(libHots_gf_PingStoredForUnit(gv_kERRIGAN, 1));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:7730
libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:7731
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:7740
libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:7741
libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:8213
UnitIssueOrder(UnitFromId(35), Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:8214
VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
PingDestroy(libHots_gf_PingStoredForUnit(gv_kERRIGAN, 1));