depends on
Configuration
{
"Default Gather": 1.0,
"Panel Settings": {
"Dock": "lefttop",
"Width": 0.055,
"Order": 0,
"BackgroundColor": "#FFF2DF08"
},
"Panel Layout": {
"Image": {
"Url": "https://i.postimg.cc/nzzPfwDL/gV9P0cK.png",
"Enabled": true,
"Color": "#FFFFFFFF",
"Order": 0,
"Width": 0.33,
"Padding": {
"Left": 0.05,
"Right": 0.0,
"Top": 0.2,
"Bottom": 0.05
}
},
"Text": {
"Text": "{0:0.00}x",
"FontSize": 14,
"TextAnchor": "MiddleCenter",
"Enabled": true,
"Color": "#FFFFFFFF",
"Order": 1,
"Width": 0.67,
"Padding": {
"Left": 0.05,
"Right": 0.05,
"Top": 0.05,
"Bottom": 0.05
}
}
}
}
Gather Rate
The gather rate can be set by a plugin or in the config. If no plugin is being used it will use the default gather rate in the config for everyone.
Developer API
Global Gather Rate
If your plugin sets a global gather rate you can implement the hook below in your plugin to return what the current gather rate is.
//Return the global gather for all player
private float GetGlobalGather()
To update the gather panel for every player you can call the following hook on GatherPanel
//Will update gather panel globally for all players
MagicGatherPanel.Call("OnGlobalGatherUpdated");
Player Gather Rate
If your plugin sets a player gather rate you can implement the hook below in your plugin to return what the players current gather rate is.
//Returns the current gather for the player
private float GetGatherForPlayer(Baseplayer player)
To update the gather panel for a specific player you can call the following hook on GatherPanel
//Will update gather panel globally for all players
MagicGatherPanel.Call("OnPlayerGatherUpdated" player);
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.