# Set Resource Trading Major Step
Grammar — Set the Major Step for resourceType|Resource to amount|Amount
Flags —Native
|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 Typeint
— Amount
Returns — void
native void UISetResourceTradingMajorStep(
int inResourceType,
int inAmount,
);
# Related
Category: UI / Resource Trading
- Set Resource Trade Countdown Time —
void
— UISetResourceTradeCountdownTime - Set Resource Trading Allowed —
void
— UISetResourceTradingAllowed - Set Resource Trading Minor Step —
void
— UISetResourceTradingMinorStep - Set Resource Trading Major Step —
void
— UISetResourceTradingMajorStep
# Examples
mods/warcoop/warclassic.sc2mod — base.sc2data/TriggerLibs/WarClassic.galaxy:1007
UISetResourceTradeCountdownTime(0);
UISetResourceTradingMajorStep(c_resourceTypeTerrazine, 200);
UISetResourceTradingMajorStep(c_resourceTypeCustom, 100);
return true;
mods/warcoop/warclassic.sc2mod — base.sc2data/TriggerLibs/WarClassic.galaxy:1008
UISetResourceTradeCountdownTime(0);
UISetResourceTradingMajorStep(c_resourceTypeTerrazine, 200);
UISetResourceTradingMajorStep(c_resourceTypeCustom, 100);
return true;
}