Displays if the airdrop event is active

Supported Games
GameServerKingsGameServerKings
depends on

Displays if the airdrop event is active and hanges the color of the Airplane icon when an Airdrop is active. It will not toggle for PlaneCrash or Airstrike plugins.

Configuration

{
  "Active Color": "#00FF00FF",
  "Inactive Color": "#FFFFFF1A",
  "Update Rate (Seconds)": 5.0,
  "Panel Settings": {
    "Dock": "center",
    "Width": 0.02,
    "Order": 0,
    "BackgroundColor": "#FFF2DF08"
  },
  "Panel Layout": {
    "Image": {
      "Url": "https://i.postimg.cc/D0jShLfB/dble6vf.png",
      "Enabled": true,
      "Color": "#FFFFFFFF",
      "Order": 0,
      "Width": 1.0,
      "Padding": {
        "Left": 0.05,
        "Right": 0.05,
        "Top": 0.05,
        "Bottom": 0.05
      }
    }
  }
}

API Hook

This hooks is to be used by other plugins that modify a cargo plane and don't want the airdrop panel to toggle.

//Name - name of the panel (ex. MagicAirdropPanel)
//plane - plane that caused the show
//return true to allow the airdrop panel to go active for this CargoPlane
//return false to not allow the airdrop panel to go active for this CargoPlane
object MagicPanelCanShow(string name, CargoPlane plane)
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.