|
1 | | -using System; |
2 | | -using System.Collections.Generic; |
3 | | -using System.Linq; |
4 | | -using System.Text; |
5 | | -using System.Threading.Tasks; |
6 | | - |
7 | 1 | namespace RogueEssence.Menu |
8 | 2 | { |
9 | 3 | public interface ILabeled |
10 | 4 | { |
11 | 5 | public string Label { get; } |
12 | | - public bool HasLabel() |
13 | | - { |
14 | | - return !string.IsNullOrEmpty(Label); |
15 | | - } |
16 | | - |
17 | | - public bool LabelContains(string substr) |
18 | | - { |
19 | | - return HasLabel() && Label.Contains(substr); |
20 | | - } |
| 6 | + public bool HasLabel(); |
| 7 | + public bool LabelContains(string substr); |
21 | 8 | } |
22 | 9 |
|
23 | 10 | public abstract class MenuLabel |
24 | 11 | { |
25 | | - public const string MAIN = "MAIN"; |
26 | | - public const string SKILLS = "SKILLS"; |
27 | | - public const string INVENTORY = "INVENTORY"; |
28 | | - public const string INVENTORY_REPLACE = "INVENTORY_REPLACE"; |
29 | | - public const string TACTICS = "TACTICS"; |
30 | | - public const string TEAM = "TEAM"; |
31 | | - public const string TEAM_SWITCH = "TEAM_SWITCH"; |
32 | | - public const string TEAM_SENDHOME = "TEAM_SENDHOME"; |
33 | | - public const string GROUND = "GROUND"; |
34 | | - public const string GROUND_ITEM = "GROUND_ITEM"; |
35 | | - public const string GROUND_TILE = "GROUND_TILE"; |
36 | | - public const string OTHERS = "OTHERS"; |
37 | | - public const string REST = "REST"; |
38 | | - public const string SAVE = "SAVE"; |
39 | | - public const string MSG_LOG = "MSG_LOG"; |
40 | | - public const string SETTINGS = "SETTINGS"; |
41 | | - public const string KEYBOARD = "KEYBOARD"; |
42 | | - public const string GAMEPAD = "GAMEPAD"; |
| 12 | + //MENU_LABELS |
| 13 | + public const string TOP_MENU = "TOP_MENU"; |
| 14 | + public const string MAIN_MENU = "MAIN_MENU"; |
| 15 | + public const string INFO_MENU = "INFO_MENU"; |
| 16 | + public const string SKILLS_MENU = "SKILLS_MENU"; |
| 17 | + public const string INVENTORY_MENU = "INVENTORY_MENU"; |
| 18 | + public const string INVENTORY_MENU_REPLACE = "INVENTORY_MENU_REPLACE"; |
| 19 | + public const string TACTICS_MENU = "TACTICS_MENU"; |
| 20 | + public const string TEAM_MENU = "TEAM_MENU"; |
| 21 | + public const string TEAM_MENU_SWITCH = "TEAM_MENU_SWITCH"; |
| 22 | + public const string TEAM_MENU_SENDHOME = "TEAM_MENU_SENDHOME"; |
| 23 | + public const string GROUND_MENU_ITEM = "GROUND_MENU_ITEM"; |
| 24 | + public const string GROUND_MENU_TILE = "GROUND_MENU_TILE"; |
| 25 | + public const string OTHERS_MENU = "OTHERS_MENU"; |
| 26 | + public const string SETTINGS_MENU = "SETTINGS_MENU"; |
| 27 | + |
| 28 | + //USED IN MULTIPLE MENUS |
| 29 | + public const string TITLE = "TITLE"; |
| 30 | + public const string DIV = "DIV"; |
| 31 | + public const string MESSAGE = "MESSAGE"; |
| 32 | + public const string CURSOR = "CURSOR"; |
| 33 | + |
| 34 | + //TOP MENU OPTIONS |
| 35 | + public const string TOP_TITLE_SUMMARY = "TOP_TITLE_SUMMARY"; |
| 36 | + public const string TOP_RESCUE = "TOP_RESCUE"; |
| 37 | + public const string TOP_CONTINUE = "TOP_CONTINUE"; |
| 38 | + public const string TOP_NEW = "TOP_NEW"; |
| 39 | + public const string TOP_ROGUE = "TOP_ROGUE"; |
| 40 | + public const string TOP_RECORD = "TOP_RECORD"; |
| 41 | + public const string TOP_OPTIONS = "TOP_OPTIONS"; |
| 42 | + public const string TOP_QUEST = "TOP_QUEST"; |
| 43 | + public const string TOP_QUEST_EXIT = "TOP_QUEST_EXIT"; |
| 44 | + public const string TOP_MODS = "TOP_MODS"; |
| 45 | + public const string TOP_QUIT = "TOP_QUIT"; |
| 46 | + |
| 47 | + //MAIN MENU OPTIONS |
| 48 | + public const string MAIN_SKILLS = "MAIN_SKILLS"; |
| 49 | + public const string MAIN_INVENTORY = "MAIN_INVENTORY"; |
| 50 | + public const string MAIN_TACTICS = "MAIN_TACTICS"; |
| 51 | + public const string MAIN_TEAM = "MAIN_TEAM"; |
| 52 | + public const string MAIN_GROUND = "MAIN_GROUND"; |
| 53 | + public const string MAIN_OTHERS = "MAIN_OTHERS"; |
| 54 | + public const string MAIN_REST = "MAIN_REST"; |
| 55 | + public const string MAIN_SAVE = "MAIN_SAVE"; |
| 56 | + |
| 57 | + //OTHERS MENU OPTIONS |
| 58 | + public const string OTH_MSG_LOG = "OTH_MSG_LOG"; |
| 59 | + public const string OTH_SETTINGS = "OTH_SETTINGS"; |
| 60 | + public const string OTH_KEYBOARD = "OTH_KEYBOARD"; |
| 61 | + public const string OTH_GAMEPAD = "OTH_GAMEPAD"; |
43 | 62 | } |
44 | 63 | } |
0 commit comments