Active Sort
This plugins sorts furnaces and refineries on button click. Shows a single button that can be fully configured (color, font weight, font color, size, position). The plugin has an API, so you can disable button display, and integr…
umod.org
- Permissions
- Configuration
- Localization
- Developer API
- Preview
- Credits
Permissions
activesort.use-- grants ability to use sort button (orCanSortmethod from API)
Configuration
Code:
{
"ShowUI": true,
"ButtonPositionOffset": {
"x": 0.0,
"y": 0.0
},
"ButtonSize": {
"x": 115.0,
"y": 30.0
},
"ButtonColorHex": "#6F8344",
"ButtonCaptionColorHex": "#A5BA7A",
"ButtonCaptionFontSize": 16,
"ButtonCaptionIsBold": true
}
ShowUI-- show or hide button at allButtonPositionOffset-- offset from button default positionButtonSize-- size of the buttonButtonColorHex-- button colorButtonCaptionColorHex-- button caption colorButtonCaptionFontSize-- button caption font sizeButtonCaptionIsBold-- button caption font weight
Localization
The plugin is localized.Developer API
Code:
void SortLoot(BasePlayer player)
bool CanSort(BasePlayer player)
SortLoot-- sorts loot in users furnace (if player has furnace opened) -- the same as click to buttonCanSort-- can sort furnace, it contains all checks -- if player has loot opened, if it is a furnace or refinery and whether or not player has the permission
Preview
DEMOCredits
- Egor Blagov, the original author of this plugin
