From b3ec7328b698959fb048127f64393d752a7c0704 Mon Sep 17 00:00:00 2001 From: AstralSkies Date: Sun, 14 Apr 2024 20:32:42 +0100 Subject: [PATCH 1/2] 'Spy' admin level to enum - Added 'Spy' before 'Light Guide'. --- EOLib/Domain/Character/AdminLevel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EOLib/Domain/Character/AdminLevel.cs b/EOLib/Domain/Character/AdminLevel.cs index 44b86d9d1..4575be0e5 100644 --- a/EOLib/Domain/Character/AdminLevel.cs +++ b/EOLib/Domain/Character/AdminLevel.cs @@ -3,6 +3,7 @@ namespace EOLib.Domain.Character public enum AdminLevel { Player, + Spy, Guide, Guardian, GM, From 05445ee0d6cd496686d93014fa246dfe0bf85b0c Mon Sep 17 00:00:00 2001 From: AstralSkies Date: Sun, 14 Apr 2024 20:34:59 +0100 Subject: [PATCH 2/2] Add AdminLevel.Spy and assign correct graphic in CreateAdminGraphic - Included AdminLevel.Spy with specified graphic dimensions. - Confirmed accurate graphic assignment for new admin level. --- EndlessClient/UIControls/CharacterInfoPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EndlessClient/UIControls/CharacterInfoPanel.cs b/EndlessClient/UIControls/CharacterInfoPanel.cs index e7e33b8f7..9fe8f1875 100644 --- a/EndlessClient/UIControls/CharacterInfoPanel.cs +++ b/EndlessClient/UIControls/CharacterInfoPanel.cs @@ -208,8 +208,9 @@ private ISpriteSheet CreateAdminGraphic(AdminLevel adminLevel) { case AdminLevel.Player: return new EmptySpriteSheet(); - case AdminLevel.Guide: + case AdminLevel.Spy: return new SpriteSheet(adminGraphic, new Rectangle(252, 39, 17, 17)); + case AdminLevel.Guide: case AdminLevel.Guardian: case AdminLevel.GM: case AdminLevel.HGM: