# Set Resource Trading Major Step

Grammar — Set the Major Step for resourceType|Resource to amount|Amount
FlagsNative | Action

The major step is the amount incremented by clicking the arrows in the Team Resource Panel with the control key held down

# Arguments

  • int<preset::ResourceType> — Resource Type
  • int — Amount

Returns — void

native void UISetResourceTradingMajorStep(
	int inResourceType,
	int inAmount,
);

Category: UI / Resource Trading

# Examples

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:1007


    UISetResourceTradeCountdownTime(0);
    UISetResourceTradingMajorStep(c_resourceTypeTerrazine, 200);
    UISetResourceTradingMajorStep(c_resourceTypeCustom, 100);
    return true;

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:1008

    UISetResourceTradeCountdownTime(0);
    UISetResourceTradingMajorStep(c_resourceTypeTerrazine, 200);
    UISetResourceTradingMajorStep(c_resourceTypeCustom, 100);
    return true;
}