diff options
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/res/chat/strike.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | plugins/Scriver/res/resource.rc | 2 | ||||
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 17 | ||||
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 11 | ||||
-rw-r--r-- | plugins/Scriver/src/resource.h | 1 |
5 files changed, 21 insertions, 10 deletions
diff --git a/plugins/Scriver/res/chat/strike.ico b/plugins/Scriver/res/chat/strike.ico Binary files differnew file mode 100644 index 0000000000..6cd770f384 --- /dev/null +++ b/plugins/Scriver/res/chat/strike.ico diff --git a/plugins/Scriver/res/resource.rc b/plugins/Scriver/res/resource.rc index 487a396b6e..eaff37e35c 100644 --- a/plugins/Scriver/res/resource.rc +++ b/plugins/Scriver/res/resource.rc @@ -456,6 +456,8 @@ IDI_BBOLD ICON "chat/bold.ico" IDI_BITALICS ICON "chat/italic.ico"
+IDI_STRIKEOUT ICON "chat/strike.ico"
+
IDI_JOIN ICON "chat/join.ico"
IDI_TOPIC ICON "chat/topic.ico"
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index a6e7023f36..aa9966bcbe 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -52,14 +52,15 @@ static IconItem iconList2[] = { LPGEN("Bold"), "bold", IDI_BBOLD }, // 4
{ LPGEN("Italics"), "italics", IDI_BITALICS }, // 5
{ LPGEN("Underlined"), "underline", IDI_BUNDERLINE }, // 6
- { LPGEN("Smiley button"), "smiley", IDI_SMILEY }, // 7
- { LPGEN("Room history"), "history", IDI_HISTORY }, // 8
- { LPGEN("Room settings"), "settings", IDI_TOPICBUT }, // 9
- { LPGEN("Event filter disabled"), "filter", IDI_FILTER }, // 10
- { LPGEN("Event filter enabled"), "filter2", IDI_FILTER2 }, // 11
- { LPGEN("Hide nick list"), "nicklist", IDI_NICKLIST }, // 12
- { LPGEN("Show nick list"), "nicklist2", IDI_NICKLIST2 }, // 13
- { LPGEN("Icon overlay"), "overlay", IDI_OVERLAY }, // 14
+ { LPGEN("Strike through"), "strikeout", IDI_STRIKEOUT }, // 7
+ { LPGEN("Smiley button"), "smiley", IDI_SMILEY }, // 8
+ { LPGEN("Room history"), "history", IDI_HISTORY }, // 9
+ { LPGEN("Room settings"), "settings", IDI_TOPICBUT }, // 10
+ { LPGEN("Event filter disabled"), "filter", IDI_FILTER }, // 11
+ { LPGEN("Event filter enabled"), "filter2", IDI_FILTER2 }, // 12
+ { LPGEN("Hide nick list"), "nicklist", IDI_NICKLIST }, // 13
+ { LPGEN("Show nick list"), "nicklist2", IDI_NICKLIST2 }, // 14
+ { LPGEN("Icon overlay"), "overlay", IDI_OVERLAY }, // 15
};
static IconItem iconList3[] =
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 7414955646..ee34ee0b91 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -417,15 +417,22 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.pwszTooltip = LPGENW("Make the text underlined (Ctrl+U)");
g_plugin.addButton(&bbd);
- bbd.dwButtonID = IDC_SRMM_COLOR;
+ bbd.dwButtonID = IDC_SRMM_STRIKEOUT;
bbd.dwDefPos = 25;
+ bbd.hIcon = g_plugin.getIconHandle(IDI_STRIKEOUT);
+ bbd.pwszText = LPGENW("&Strike-through ");
+ bbd.pwszTooltip = LPGENW("Make the text strike-through");
+ g_plugin.addButton(&bbd);
+
+ bbd.dwButtonID = IDC_SRMM_COLOR;
+ bbd.dwDefPos = 30;
bbd.hIcon = g_plugin.getIconHandle(IDI_COLOR);
bbd.pwszText = LPGENW("&Color");
bbd.pwszTooltip = LPGENW("Select a foreground color for the text (Ctrl+K)");
g_plugin.addButton(&bbd);
bbd.dwButtonID = IDC_SRMM_BKGCOLOR;
- bbd.dwDefPos = 30;
+ bbd.dwDefPos = 35;
bbd.hIcon = g_plugin.getIconHandle(IDI_BKGCOLOR);
bbd.pwszText = LPGENW("&Background color");
bbd.pwszTooltip = LPGENW("Select a background color for the text (Ctrl+L)");
diff --git a/plugins/Scriver/src/resource.h b/plugins/Scriver/src/resource.h index 9fc3b2e7dc..7b8c990c7f 100644 --- a/plugins/Scriver/src/resource.h +++ b/plugins/Scriver/src/resource.h @@ -43,6 +43,7 @@ #define IDI_BUNDERLINE 420
#define IDI_BBOLD 421
#define IDI_BITALICS 422
+#define IDI_STRIKEOUT 423
#define IDI_TOPICBUT 424
#define IDI_BKGCOLOR 425
#define IDI_CHANMGR 426
|