summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-19 18:50:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-19 18:50:14 +0300
commitf50885f33f7d1e129d719f06a43cc73518e0ffb1 (patch)
treec9eb6db791011b7ffb45a70f95d1f28d0d3395ad /plugins/NewStory/src/main.cpp
parent58f9f9dea0865f900fa0c1e6e2ef8ffc18ecef74 (diff)
NewStory: custom colors
Diffstat (limited to 'plugins/NewStory/src/main.cpp')
-rw-r--r--plugins/NewStory/src/main.cpp23
1 files changed, 20 insertions, 3 deletions
diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp
index d8c3ec7624..0cd647fd3e 100644
--- a/plugins/NewStory/src/main.cpp
+++ b/plugins/NewStory/src/main.cpp
@@ -26,6 +26,12 @@ CMOption<bool> g_bOptHppCompat(MODULENAME, "HppCompat", false);
CMOption<bool> g_bShowType(MODULENAME, "ShowType", true);
CMOption<bool> g_bShowDirection(MODULENAME, "ShowDirection", true);
+CMOption<uint32_t> g_clCustom0(MODULENAME, "CustomColor0", -1);
+CMOption<uint32_t> g_clCustom1(MODULENAME, "CustomColor1", -1);
+CMOption<uint32_t> g_clCustom2(MODULENAME, "CustomColor2", -1);
+CMOption<uint32_t> g_clCustom3(MODULENAME, "CustomColor3", -1);
+CMOption<uint32_t> g_clCustom4(MODULENAME, "CustomColor4", -1);
+
MWindowList g_hNewstoryWindows = 0, g_hNewstoryLogs = 0;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -146,16 +152,27 @@ static int evtPreShutdown(WPARAM, LPARAM)
return 0;
}
-int CMPlugin::Load()
+void CMPlugin::LoadOptions()
{
- registerIcon(MODULETITLE, icons);
-
bShowType = g_bShowType;
bDrawEdge = g_bOptDrawEdge;
bHppCompat = g_bOptHppCompat;
bMsgGrouping = g_bOptGrouping;
bShowDirecction = g_bShowDirection;
+ clCustom[0] = g_clCustom0;
+ clCustom[1] = g_clCustom1;
+ clCustom[2] = g_clCustom2;
+ clCustom[3] = g_clCustom3;
+ clCustom[4] = g_clCustom4;
+}
+
+int CMPlugin::Load()
+{
+ registerIcon(MODULETITLE, icons);
+
+ LoadOptions();
+
m_log = RegisterSrmmLog(this, MODULETITLE, _T(MODULENAME), NewStory_Stub);
g_hNewstoryLogs = WindowList_Create();