Иконка ресурса

FREE AdminToggle : 3.1.16 3.1.16

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
using Newtonsoft.Json;
using Oxide.Core;
using Oxide.Game.Rust.Cui;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Runtime.CompilerServices;
using UnityEngine;
using System.Globalization;
using System.Threading.Tasks;
/*
 *              _           _    _______                _       __      ______  
 *     /\      | |         (_)  |__   __|              | |      \ \    / /___ \ 
 *    /  \   __| |_ __ ___  _ _ __ | | ___   __ _  __ _| | ___   \ \  / /  __) |
 *   / /\ \ / _` | '_ ` _ \| | '_ \| |/ _ \ / _` |/ _` | |/ _ \   \ \/ /  |__ < 
 *  / ____ \ (_| | | | | | | | | | | | (_) | (_| | (_| | |  __/    \  /   ___) |
 * /_/    \_\__,_|_| |_| |_|_|_| |_|_|\___/ \__, |\__, |_|\___|     \/   |____/ 
 *                                           __/ | __/ |                        
 *                                          |___/ |___/                                            
*/
/* LICENCE
 *  SOFTWARE LICENCE AGREEMENT OF AdminToggle
 *      The following Software License Agreement constitutes a legally binding agreement between You, (the "Buyer") and https://steamcommunity.com/id/InfinityNet/ (the "Vendor").*      This Software License Agreement by https://steamcommunity.com/id/InfinityNet/ (the "Vendor") grants the right to use AdminToggle (the "Software") respecting the license limitations and restrictions below.*      By acquiring a copy of AdminToggle (the "Software"), You, the original licensee is legally bound to the license (the "License") Disclaimers, Limitations and Restrictions.Failing to comply with any of the terms of this Software license Agreement (the "License"), the license ("License") shall be terminated.On termination of the license ("License"), You are legally obliged to stop all use of AdminToggle (the "Software") immediately.*      Please read this Software License Agreement (the "License") thoroughly before acquiring a copy of AdminToggle (the "Software").*
 *  GRANT OF LICENCE
 *      This agreement (the "License") by https://steamcommunity.com/id/InfinityNet/ (the "Vendor") grants the Licensee exclusive, non-transferable, personal-use of the license (the "License") to use this AdminToggle (the "Software").*
 *  LICENSE DISCLAIMERS, LIMITATIONS AND RESTRICTIONS
 *      AdminToggle (the "Software") is provided "AS IS" from https://steamcommunity.com/id/InfinityNet/ (the "Vendor") without any warranties of any kind.*      AdminToggle (the "Software") may not be modified, changed, adapted, reverse-engineered, de-compiled, Reproduced, Distributed, Resold, Published or shared without the authority of the https://steamcommunity.com/id/InfinityNet/ (the "Vendor")
 *      AdminToggle (the "Software") license (the "License") is restricted to a maximum of 5 installations per license (the "License").The Licensee may only install AdminToggle (the "Software") on computer installations owned or leased by the Licensee.*/
/*VERSION 3.1.16
 * Fixed FPF
        player.inventory.AllItems() -> player.inventory.GetAllItems()
        player.MountObject() -> player.SetMounted()
 */
/*VERSION 3.1.15
 * Imported XLIB the dll file (So its no longer required)
 * Broke HttpClient ??? Error while compiling: AdminToggle.cs(3663,23): error CS0584: Internal compiler error: Assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is a missing assembly and does not support the requested operation.*/
/*VERSION 3.1.14
 * DLL recompiled
 */
/*VERSION 3.1.13
 * DLL recompiled
 */
/*VERSION 3.1.12
 * DLL recompiled
 */
/*VERSION 3.1.11
 * DLL recompiled
 */
/*VERSION 3.1.10
 * Fixed CUI Error
 */
/*VERSION 3.1.9
 * DLL recompiled
 */
/*VERSION 3.1.8
 * Minor changes
 * DLL recompiled
 */
/*VERSION 3.1.7
 * Rust broke XLIB.PLAYER.Location.Utility.UnMountChair & MountChair
 */
/*VERSION 3.1.6
 * Updated OnActiveItemChanged, CanEquipItem to not remove weapons when switching to player
 * Add system to check if player is switching between admin & player LevelHelper.IsSwitching
 * Fixed incorrect third party plugin loading
 * Fixed functionally of RevertOnTrigger
 * Fixed OnUserPermissionRevoked HardUnload
 * Changed XLIB Inventory management to save item names (DLL Updated)
 */
/*VERSION 3.1.5
 * Minor changes
 * DLL recompiled
 */
/* VERSION 3.1.4
 * Added option to lock admin outfit
 * Added option to customize all interface elements
 * Fixed hook that could spam create items
 * Improved minor changes & Third-Party Plugins updates
 * Improved oxide group toggling simplified
 */
/* VERSION 3.1.3
 * Removed unnecessary hooks
 */
/* VERSION 3.1.2
 * Added detection of permission revoked while admin mode active then gets untoggled
 * Added many new limited actions (Oxide Hooks) & Improved
 * Added option to specify whenever a plugin should be On or Off
 * Added option to specify auth level for modes onAdmin
 * Changed option to toggle multiple onAdmin, onPlayer
 * Improved Blocking of commands & Plugins
 * Improved Third-Party Plugins Hooks
 * Improved HandleCommands method 
 */
/* VERSION 3.0.1
 *  Added support for config manager plugin addon
*/
/* VERSION 3.0.0
 *  Release - Complete rewrite
*/
namespace Oxide.Plugins {
    [Info("AdminToggle", "InfinityNet/Xray", "3.1.16")]
    [Description("Allows admins with permission to toggle between player & admin mode")]
    public class AdminToggle : RustPlugin {
        private const DebugType DEBUG = DebugType.Disabled;
        private const string constPluginName = "admintoggle";
        private const string SignatureColor = "#faaf19";
        private const string CooldownDelay = "1";
        /*Toggle Cooldown Secs*/
        private const int FileLineLength = 4;
        /*eg 1000 = 4*/
        private const string PanicCommand = "at.fix";
        private static AdminToggle Instance {
            get;
            set;
        }
        [PluginReference]
        private readonly Core.Plugins.Plugin Vanish, AdminRadar, Backpacks, Godmode;
#region Localization
        private class LangMessages {
            internal const string StopFlying = "%Please% Stop flying while toggling as it might cause a server violation";
            internal const string PleaseWait = "%Please% Wait %" + CooldownDelay + "% second to allow the server to update";
            internal const string NoPerm = "%You% Do not have permission to use %{mode.permission}% mode";
            internal const string PermRevoked = "Permission to use %{mode.permission}% mode has been %revoked%";
            internal const string NoPermGenetic = "%You% Are not assigned to %any% admin modes!";
            internal const string NoPermTargetMode = "%You% Do not have permission to use %{mode.permission}% mode";
            internal const string NoReason = "%You% Are missing a reason to toggle %{mode.permission}% mode";
            internal const string NoBuilding = "%Placing% buildings, deployables is %obstructed%";
            internal const string NoCrafting = "%Crafting% of items is %obstructed%";
            internal const string NoDropItems = "%You% Are obstructed from %dropping% items";
            internal const string RestrictedMode = "%{mode.permission}% Mode is restricted to specfic ids & You're not included";
            internal const string RestrictedModeFailed = "%{mode.permission}% Mode is restricted to specfic ids & The restricted ids list couldn't be specified";
            internal const string ToggleDowned = "%You% Cannot toggle modes while being downed!";
            internal const string ToggleCrawling = "%You% Cannot toggle modes while crawling!";
            internal const string ToggleDead = "%You% Cannot toggle modes while being dead!";
            internal const string ToggleModeNotFound = "Couldn't find any mode by %{arg}%";
            internal const string NoDamageStructures = "%You% Are obstructed from dealing damage to structures!";
            internal const string NoHurtPlayers = "%You% Are obstructed from hurting players!";
            internal const string NoLootPlayers = "%You% Are obstructed from looting players!";
            internal const string NoLootEntities = "%You% Are obstructed from looting or interacting with entities!";
            internal const string NoUseWeapons = "%You% Are obstructed from interacting any weapons!";
            internal const string ViolationBannable = "%You% Triggered a bannable violation: %{violation.name}%";
            internal const string ViolationRegular = "%You% Triggered a violation: %{violation.name}%";
            internal const string RestrictedCommand = "%You% Are obstructed from using the command: %{command.name}%";
            internal const string NoPluginUsage = "%You% Are obstructed from using the plugin: %{plugin.name}%";
            internal const string PluginNoInstalled = "%{plugin.name}% Isn't installed";
            internal const string PlayerNotFound = "Couldn't find any player by %{arg}%";
            internal const string TooManyArgs = "%You% May only have %{arg}% Identifiers";
            internal const string InvalidArgs = "%You% Must provide a %identifier%";
        }
#endregion Localization
#region Configuration
        private static ConfigData _configuration {
            get;
            set;
        }
        = new ConfigData();
        public class ConfigData {
            public Modes[] MODES {
                get;
                set;
            }
            = {
                new Modes()
            }
            ;
            public class Modes {
                [JsonProperty(PropertyName = "Permission")]
                public string Permission {
                    get;
                    set;
                }
                = "master";
                [JsonProperty(PropertyName = "Priority")]
                public int Priority {
                    get;
                    set;
                }
                = 999;
                [JsonProperty(PropertyName = "Master Level CAREFUL! (Enabling this does the following #Overrides priority, mode & permission system! #Allows to set/get modes for yourself or others! #Overrides limitations by current or lower modes")]
                public bool IsMaster {
                    get;
                    set;
                }
                = false;
                [JsonProperty(PropertyName = "Toggle Commands")]
                public string[] Commands {
                    get;
                    set;
                }
                = {
                    "admin", "mode"
                }
                ;
                [JsonProperty(PropertyName = "Restrict Mode To Specfic SteamIds (Leave blank to disable)")]
                public object[] SpecficIds {
                    get;
                    set;
                }
                = {
                }
                ;
                [JsonProperty(PropertyName = "Settings")]
                public Settings SETTINGS {
                    get;
                    set;
                }
                = new Settings();
                public class Settings {
                    [JsonProperty(PropertyName = "On Admin")]
                    public OnAdminData OnAdmin {
                        get;
                        set;
                    }
                    = new OnAdminData();
                    public class OnAdminData {
                        [JsonProperty(PropertyName = "Require Reason")]
                        public bool RequireReason {
                            get;
                            set;
                        }
                        = false;
                        [JsonProperty(PropertyName = "Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands")]
                        public string[] AutoRunCommands {
                            get;
                            set;
                        }
                        = new string[] {
                        }
                        ;
                        [JsonProperty(PropertyName = "Toggle Groups To Grant (Leave blank to disable)")]
                        public string[] ToggleGroups {
                            get;
                            set;
                        }
                        = new string[] {
                        }
                        ;
                        [JsonProperty(PropertyName = "Specified Auth Level (1 = moderators, 2 = owners) Must either be 1 or 2 cannot be below or above")]
                        public int AuthLevel {
                            get;
                            set;
                        }
                        = 2;
                        [JsonProperty(PropertyName = "Keep Separate Inventories")]
                        public bool SeparateInventories {
                            get;
                            set;
                        }
                        = true;
                        [JsonProperty(PropertyName = "Teleport Back Upon Exiting")]
                        public bool TeleportBack {
                            get;
                            set;
                        }
                        = false;
                        [JsonProperty(PropertyName = "Revert On Disconnect, Restart, Reload")]
                        public bool RevertOnTrigger {
                            get;
                            set;
                        }
                        = false;
                        [JsonProperty(PropertyName = "Ignore Server Violations (Bans, Kicks Etc) (Recommended to keep true)")]
                        public bool IgnoreViolations {
                            get;
                            set;
                        }
                        = true;
                        [JsonProperty(PropertyName = "Blocked Commands")]
                        public string[] BlockedCommands {
                            get;
                            set;
                        }
                        = new string[] {
                        }
                        ;
                        [JsonProperty(PropertyName = "Name Prefix Changes your name to a set prefix (Leave blank to disable)")]
                        public string Name {
                            get;
                            set;
                        }
                        = "";
                        [JsonProperty(PropertyName = "Admin Outfit")]
                        public AdminOutfitData AdminOutfit {
                            get;
                            set;
                        }
                        = new AdminOutfitData();
                        public class AdminOutfitData {
                            [JsonProperty(PropertyName = "Enabled")]
                            public bool Enabled {
                                get;
                                set;
                            }
                            = false;
                            [JsonProperty(PropertyName = "Lock Outfit")]
                            public bool Locked {
                                get;
                                set;
                            }
                            = false;
                            [JsonProperty(PropertyName = "Settings")]
                            public AdminOutfitSettingsData Settings {
                                get;
                                set;
                            }
                            = new AdminOutfitSettingsData();
                            public class AdminOutfitSettingsData {
                                [JsonProperty("(Shortnam::SkinID)")]
                                public string[] Outfit {
                                    get;
                                    set;
                                }
                                = new string[] {
                                    "hoodie::1234567890", "pants::1234567890", "shoes.boots::1234567890"
                                }
                                ;
                            }
                        }
                        [JsonProperty(PropertyName = "Notifications")]
                        public NotificationData Notification {
                            get;
                            set;
                        }
                        = new NotificationData();
                        public class NotificationData {
                            [JsonProperty(PropertyName = "Global Chat")]
                            public NotificationGlobalChatData GlobalChat {
                                get;
                                set;
                            }
                            = new NotificationGlobalChatData();
                            public class NotificationGlobalChatData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public GlobalChatSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new GlobalChatSettingsData();
                                public class GlobalChatSettingsData {
                                    [JsonProperty(PropertyName = "Chat Icon (SteamID64)")]
                                    public ulong ChatIcon {
                                        get;
                                        set;
                                    }
                                    = 0;
                                    [JsonProperty(PropertyName = "Text Message Special Color (HEX) Example %message%")]
                                    public string MessageSpecialColor {
                                        get;
                                        set;
                                    }
                                    = SignatureColor;
                                    [JsonProperty(PropertyName = "Text Message")]
                                    public string Message {
                                        get;
                                        set;
                                    }
                                    = "%{player.name}% Activated %{mode.permission}% Mode";
                                }
                            }
                            [JsonProperty(PropertyName = "Self Chat")]
                            public NotificationSelfChatData SelfChat {
                                get;
                                set;
                            }
                            = new NotificationSelfChatData();
                            public class NotificationSelfChatData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = true;
                                [JsonProperty(PropertyName = "Settings")]
                                public SelfChatSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new SelfChatSettingsData();
                                public class SelfChatSettingsData {
                                    [JsonProperty(PropertyName = "Chat Icon (SteamID64)")]
                                    public ulong ChatIcon {
                                        get;
                                        set;
                                    }
                                    = 0;
                                    [JsonProperty(PropertyName = "Text Message Special Color (HEX) Example %message%")]
                                    public string MessageSpecialColor {
                                        get;
                                        set;
                                    }
                                    = SignatureColor;
                                    [JsonProperty(PropertyName = "Text Message")]
                                    public string Message {
                                        get;
                                        set;
                                    }
                                    = "%You% Activated %{mode.permission}% Mode";
                                }
                            }
                            [JsonProperty(PropertyName = "Self Popup")]
                            public NotificationSelfPopupData SelfPopup {
                                get;
                                set;
                            }
                            = new NotificationSelfPopupData();
                            public class NotificationSelfPopupData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public SelfPopupSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new SelfPopupSettingsData();
                                public class SelfPopupSettingsData {
                                    [JsonProperty(PropertyName = "Text Message Special Color (HEX) Example %message%")]
                                    public string MessageSpecialColor {
                                        get;
                                        set;
                                    }
                                    = SignatureColor;
                                    [JsonProperty(PropertyName = "Text Message")]
                                    public string Message {
                                        get;
                                        set;
                                    }
                                    = "%You% Activated %{mode.permission}% Mode";
                                }
                            }
                            [JsonProperty(PropertyName = "Self Sound")]
                            public NotificationSelfSoundData SelfSound {
                                get;
                                set;
                            }
                            = new NotificationSelfSoundData();
                            public class NotificationSelfSoundData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public SelfSoundSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new SelfSoundSettingsData();
                                public class SelfSoundSettingsData {
                                    [JsonProperty(PropertyName = "Sound (Prefab)")]
                                    public string Sound {
                                        get;
                                        set;
                                    }
                                    = "assets/prefabs/misc/easter/painted eggs/effects/eggpickup.prefab";
                                }
                            }
                            [JsonProperty(PropertyName = "Discord")]
                            public NotificationDiscordData Discord {
                                get;
                                set;
                            }
                            = new NotificationDiscordData();
                            public class NotificationDiscordData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public DiscordSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new DiscordSettingsData();
                                public class DiscordSettingsData {
                                    [JsonProperty(PropertyName = "Webhook")]
                                    public string Webhook {
                                        get;
                                        set;
                                    }
                                    = "https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks";
                                    [JsonProperty(PropertyName = "Embed Color")]
                                    public long WebhookColor {
                                        get;
                                        set;
                                    }
                                    = 3315400;
                                }
                            }
                        }
                        [JsonProperty(PropertyName = "Interface")]
                        public InterfaceData Interface {
                            get;
                            set;
                        }
                        = new InterfaceData();
                        public class InterfaceData {
                            [JsonProperty(PropertyName = "Button")]
                            public ButtonData Button {
                                get;
                                set;
                            }
                            = new ButtonData();
                            public class ButtonData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public ButtonSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new ButtonSettingsData();
                                public class ButtonSettingsData {
                                    [JsonProperty(PropertyName = "Opacity (0.0 to 1.0)")]
                                    public double Opacity {
                                        get;
                                        set;
                                    }
                                    = 0.64;
                                    [JsonProperty(PropertyName = "Active Color (HEX)")]
                                    public string ActiveColor {
                                        get;
                                        set;
                                    }
                                    = "#008000";
                                    [JsonProperty(PropertyName = "Inactive Color (HEX)")]
                                    public string InactiveColor {
                                        get;
                                        set;
                                    }
                                    = "#800000";
                                    [JsonProperty(PropertyName = "Active Text")]
                                    public string ActiveText {
                                        get;
                                        set;
                                    }
                                    = "Activated";
                                    [JsonProperty(PropertyName = "Inactive Text")]
                                    public string InactiveText {
                                        get;
                                        set;
                                    }
                                    = "Disabled";
                                    [JsonProperty(PropertyName = "Active Text Color (HEX)")]
                                    public string ActiveTextColor {
                                        get;
                                        set;
                                    }
                                    = "#ffffff";
                                    [JsonProperty(PropertyName = "Inactive Text Color (HEX)")]
                                    public string InactiveTextColor {
                                        get;
                                        set;
                                    }
                                    = "#ffffff";
                                    [JsonProperty(PropertyName = "Design (Advanced)")]
                                    public ButtonDesignData Design {
                                        get;
                                        set;
                                    }
                                    = new ButtonDesignData();
                                    public class ButtonDesignData {
                                        [JsonProperty(PropertyName = "Anchor")]
                                        public ButtonDesignAnchorData Anchor {
                                            get;
                                            set;
                                        }
                                        = new ButtonDesignAnchorData();
                                        public class ButtonDesignAnchorData {
                                            [JsonProperty(PropertyName = "Min Width (0.0 - 1.0)")]
                                            public double Min_Width {
                                                get;
                                                set;
                                            }
                                            = 0.5;
                                            [JsonProperty(PropertyName = "Min Height (0.0 - 1.0)")]
                                            public double Min_Height {
                                                get;
                                                set;
                                            }
                                            = 0.0;
                                            [JsonProperty(PropertyName = "Max Width (0.0 - 1.0)")]
                                            public double Max_Width {
                                                get;
                                                set;
                                            }
                                            = 0.5;
                                            [JsonProperty(PropertyName = "Max Height (0.0 - 1.0)")]
                                            public double Max_Height {
                                                get;
                                                set;
                                            }
                                            = 0.0;
                                        }
                                        [JsonProperty(PropertyName = "Offset")]
                                        public ButtonDesignOffsetData Offset {
                                            get;
                                            set;
                                        }
                                        = new ButtonDesignOffsetData();
                                        public class ButtonDesignOffsetData {
                                            [JsonProperty(PropertyName = "Min Width (pixels)")]
                                            public int Min_Width {
                                                get;
                                                set;
                                            }
                                            = 0;
                                            [JsonProperty(PropertyName = "Min Height (pixels)")]
                                            public int Min_Height {
                                                get;
                                                set;
                                            }
                                            = 0;
                                            [JsonProperty(PropertyName = "Max Width (pixels)")]
                                            public int Max_Width {
                                                get;
                                                set;
                                            }
                                            = 60;
                                            [JsonProperty(PropertyName = "Max Height (pixels)")]
                                            public int Max_Height {
                                                get;
                                                set;
                                            }
                                            = 60;
                                            [JsonProperty(PropertyName = "Offset Points (Relative To Offset)")]
                                            public ButtonDesignOffsetPointsData Points {
                                                get;
                                                set;
                                            }
                                            = new ButtonDesignOffsetPointsData();
                                            public class ButtonDesignOffsetPointsData {
                                                [JsonProperty(PropertyName = "Top (pixels)")]
                                                public int Top {
                                                    get;
                                                    set;
                                                }
                                                = 0;
                                                [JsonProperty(PropertyName = "Bottom (pixels)")]
                                                public int Bottom {
                                                    get;
                                                    set;
                                                }
                                                = 18;
                                                [JsonProperty(PropertyName = "Left (pixels)")]
                                                public int Left {
                                                    get;
                                                    set;
                                                }
                                                = 0;
                                                [JsonProperty(PropertyName = "Right (pixels)")]
                                                public int Right {
                                                    get;
                                                    set;
                                                }
                                                = 263;
                                            }
                                        }
                                    }
                                }
                            }
                            [JsonProperty(PropertyName = "Panel")]
                            public PanelData Panel {
                                get;
                                set;
                            }
                            = new PanelData();
                            public class PanelData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public PanelSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new PanelSettingsData();
                                public class PanelSettingsData {
                                    [JsonProperty(PropertyName = "Text")]
                                    public string ActiveText {
                                        get;
                                        set;
                                    }
                                    = "A D M I N   M O D E      A C T I V A T E D";
                                    [JsonProperty(PropertyName = "Text Color (HEX)")]
                                    public string ActiveTextColor {
                                        get;
                                        set;
                                    }
                                    = "#ffffff";
                                    [JsonProperty(PropertyName = "Pulse Duration ")]
                                    public float PulseSpeed {
                                        get;
                                        set;
                                    }
                                    = 1.0f;
                                    [JsonProperty(PropertyName = "Design (Advanced)")]
                                    public PanelDesignData Design {
                                        get;
                                        set;
                                    }
                                    = new PanelDesignData();
                                    public class PanelDesignData {
                                        [JsonProperty(PropertyName = "Anchor")]
                                        public PanelDesignAnchorData Anchor {
                                            get;
                                            set;
                                        }
                                        = new PanelDesignAnchorData();
                                        public class PanelDesignAnchorData {
                                            [JsonProperty(PropertyName = "Min Width (0.0 - 1.0)")]
                                            public double Min_Width {
                                                get;
                                                set;
                                            }
                                            = 0.5;
                                            [JsonProperty(PropertyName = "Min Height (0.0 - 1.0)")]
                                            public double Min_Height {
                                                get;
                                                set;
                                            }
                                            = 0.0;
                                            [JsonProperty(PropertyName = "Max Width (0.0 - 1.0)")]
                                            public double Max_Width {
                                                get;
                                                set;
                                            }
                                            = 0.5;
                                            [JsonProperty(PropertyName = "Max Height (0.0 - 1.0)")]
                                            public double Max_Height {
                                                get;
                                                set;
                                            }
                                            = 0.0;
                                        }
                                        [JsonProperty(PropertyName = "Offset")]
                                        public PanelDesignOffsetData Offset {
                                            get;
                                            set;
                                        }
                                        = new PanelDesignOffsetData();
                                        public class PanelDesignOffsetData {
                                            [JsonProperty(PropertyName = "Min Width (pixels)")]
                                            public int Min_Width {
                                                get;
                                                set;
                                            }
                                            = 0;
                                            [JsonProperty(PropertyName = "Min Height (pixels)")]
                                            public int Min_Height {
                                                get;
                                                set;
                                            }
                                            = 0;
                                            [JsonProperty(PropertyName = "Max Width (pixels)")]
                                            public int Max_Width {
                                                get;
                                                set;
                                            }
                                            = 380;
                                            [JsonProperty(PropertyName = "Max Height (pixels)")]
                                            public int Max_Height {
                                                get;
                                                set;
                                            }
                                            = 20;
                                            [JsonProperty(PropertyName = "Offset Points (Relative To Offset)")]
                                            public PanelDesignOffsetPointsData Points {
                                                get;
                                                set;
                                            }
                                            = new PanelDesignOffsetPointsData();
                                            public class PanelDesignOffsetPointsData {
                                                [JsonProperty(PropertyName = "Top (pixels)")]
                                                public int Top {
                                                    get;
                                                    set;
                                                }
                                                = 0;
                                                [JsonProperty(PropertyName = "Bottom (pixels)")]
                                                public int Bottom {
                                                    get;
                                                    set;
                                                }
                                                = 82;
                                                [JsonProperty(PropertyName = "Left (pixels)")]
                                                public int Left {
                                                    get;
                                                    set;
                                                }
                                                = 0;
                                                [JsonProperty(PropertyName = "Right (pixels)")]
                                                public int Right {
                                                    get;
                                                    set;
                                                }
                                                = 200;
                                            }
                                        }
                                    }
                                }
                            }
                            [JsonProperty(PropertyName = "Menu")]
                            public MenuData Menu {
                                get;
                                set;
                            }
                            = new MenuData();
                            public class MenuData {
                                [JsonProperty(PropertyName = "Enabled")]
                                public bool Enabled {
                                    get;
                                    set;
                                }
                                = false;
                                [JsonProperty(PropertyName = "Settings")]
                                public MenuSettingsData Settings {
                                    get;
                                    set;
                                }
                                = new MenuSettingsData();
                                public class MenuSettingsData {
                                    [JsonProperty(PropertyName = "Opacity (0.0 to 1.0)")]
                                    public double Opacity {
                                        get;
                                        set;
                                    }
                                    = 0.64;
                                    [JsonProperty(PropertyName = "Not Found Color (HEX)")]
                                    public string NotFoundColor {
                                        get;
                                        set;
                                    }
                                    = "#000000";
                                    [JsonProperty(PropertyName = "Active Color (HEX)")]
                                    public string ActiveColor {
                                        get;
                                        set;
                                    }
                                    = "#008000";
                                    [JsonProperty(PropertyName = "Inactive Color (HEX)")]
                                    public string InactiveColor {
                                        get;
                                        set;
                                    }
                                    = "#800000";
                                    [JsonProperty(PropertyName = "Text Color (HEX)")]
                                    public string 
// ... [Code preview truncated due to length. Full source in attached file] ...

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху