-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
982c611
commit 4ba181c
Showing
17 changed files
with
357 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HintServiceMeow.Config | ||
{ | ||
public class PlayerDisplayConfig | ||
{ | ||
[Description("The minimum time between each updates for player displays. 0.5 is experimental value.")] | ||
public TimeSpan MinUpdateInterval = TimeSpan.FromMilliseconds(500); | ||
|
||
[Description("The minimum time wait before each update, you can shorten it if you're confident with your server's performance, count in miliseconds")] | ||
public float MinTimeDelayBeforeUpdate = 50f; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HintServiceMeow.Config | ||
{ | ||
public class PlayerUIConfig | ||
{ | ||
[Description("Enable or disable common hints. Changing this option might cause error if other plugins are using CommonHints")] | ||
public bool EnableCommonHints { get; set; } = true; | ||
|
||
[Description("Enable or disable player effects. Changing this option might cause error if other plugins are using Effects")] | ||
public bool EnableEffects { get; set; } = true; | ||
|
||
[Description("Enable or disable playerUITemplate")] | ||
public bool EnableUITemplates { get; set; } = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HintServiceMeow.Config | ||
{ | ||
public class GeneralHumanTemplateConfig | ||
{ | ||
public string TopBar { get; set; } = "TPS:{TPS} | {PlayerName}"; | ||
public string BottomBar { get; set; } = "{PlayerNickname}|<color={RoleColor}>{Role}</color>|{AmmoInfo}|{ArmorInfo}|<color=#7CB342>Meow</color>"; | ||
} | ||
|
||
public class SCPTemplateConfig | ||
{ | ||
public string TopBar { get; set; } = "TPS:{TPS} | {PlayerName}"; | ||
public string BottomBar { get; set; } = "{PlayerNickname}|<color={RoleColor}>{Role}</color>|剩余{TeammateCount}队友|<color=#7CB342>Meow</color>"; | ||
} | ||
|
||
public class CustomHumanTemplateConfig | ||
{ | ||
public string TopBar { get; set; } = "TPS:{TPS} | {PlayerName}"; | ||
public string BottomBar { get; set; } = "{PlayerNickname}|<color={RoleColor}>{Role}</color>|{AmmoInfo}|{ArmorInfo}|<color=#7CB342>Meow</color>"; | ||
} | ||
|
||
public class CustomSCPTemplateConfig | ||
{ | ||
public string TopBar { get; set; } = "TPS:{TPS} | {PlayerName}"; | ||
public string BottomBar { get; set; } = "{PlayerNickname}|<color=#EC2222>{Role}</color>|剩余{TeammateCount}队友|{AmmoInfo}|{ArmorInfo}|<color=#7CB342>Meow</color>"; | ||
} | ||
|
||
public class SpectatorTemplateConfig | ||
{ | ||
[Description("RespawnTimer: Time interval between each hint")] | ||
public int HintDisplayInterval { get; set; } = 10; | ||
|
||
[Description("RespawnTimer: A list of hints you want to display")] | ||
public List<string> Hints { get; private set; } = new List<string>() { "Some hints", "Some other hints" }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HintServiceMeow.Config | ||
{ | ||
|
||
public class PlayerUIToolsConfig | ||
{ | ||
[Description("Message template when the player has no armor")] | ||
public string NoArmor { get; set; } = "没有装甲"; | ||
|
||
[Description("Message template when the player has no ammo")] | ||
public string NoAmmo { get; set; } = "没有备弹"; | ||
|
||
[Description("Message template when the player has 1 type of ammo")] | ||
public string AmmoHint1 { get; set; } = "{Ammo}共{NumOfAmmo}发"; | ||
|
||
[Description("Message template when the player has multiple types of ammo")] | ||
public string AmmoHint2 { get; set; } = "各种备弹共{NumOfAmmo}发"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using Exiled.API.Enums; | ||
using Exiled.API.Interfaces; | ||
using HintServiceMeow.UITemplates; | ||
using PlayerRoles; | ||
using Respawning; | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
|
||
namespace HintServiceMeow.Config | ||
{ | ||
public class PluginConfig:IConfig | ||
{ | ||
public static PluginConfig instance; | ||
|
||
public bool IsEnabled { get; set; } = true; | ||
public bool Debug { get; set; } = false; | ||
|
||
[Description("Configs for PlayerDisplay. Changing these configs might leads to errors")] | ||
public PlayerDisplayConfig PlayerDisplayConfig { get; set; } = new PlayerDisplayConfig(); | ||
|
||
|
||
[Description("The config for general names")] | ||
public GeneralConfig GeneralConfig { get; set; } = new GeneralConfig(); | ||
|
||
[Description("All of the following configs are used for PlayerUI")] | ||
public bool EnablePlayerUI { get; set; } = true; | ||
|
||
[Description("The config for PlayerUI")] | ||
public PlayerUIConfig PlayerUIConfig { get; set; } = new PlayerUIConfig(); | ||
|
||
[Description("The config for PlayerUITools, will affect multiple templates")] | ||
public PlayerUIToolsConfig PlayerUIToolsConfig { get; private set; } = new PlayerUIToolsConfig(); | ||
|
||
[Description("The config for general human tempalte")] | ||
public GeneralHumanTemplateConfig GeneralHumanTemplateConfig { get; private set; } = new GeneralHumanTemplateConfig(); | ||
|
||
[Description("The config for scp tempalte")] | ||
public SCPTemplateConfig ScpTemplateConfig { get; private set; } = new SCPTemplateConfig(); | ||
|
||
[Description("The config for custom human tempalte")] | ||
public CustomHumanTemplateConfig CustomHumanTemplate { get; private set; } = new CustomHumanTemplateConfig(); | ||
|
||
[Description("The config for custom scp tempalte")] | ||
public CustomSCPTemplateConfig CustomSCPTemplate { get; private set; } = new CustomSCPTemplateConfig(); | ||
|
||
[Description("The config for spectator tempalte")] | ||
public SpectatorTemplateConfig SpectatorTemplateConfig { get; private set; } = new SpectatorTemplateConfig(); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.