-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathPluginSystemTime.cpp
47 lines (39 loc) · 1001 Bytes
/
PluginSystemTime.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "pch.h"
#include <wchar.h>
#include "PluginSystemTime.h"
#include "DataManager.h"
CPluginSystemTime::CPluginSystemTime()
{
}
const wchar_t* CPluginSystemTime::GetItemName() const
{
return CDataManager::Instance().StringRes(IDS_TIME);
}
const wchar_t* CPluginSystemTime::GetItemId() const
{
return L"B3tkxi5d";
}
const wchar_t* CPluginSystemTime::GetItemLableText() const
{
return CDataManager::Instance().StringRes(IDS_TIME);
}
const wchar_t* CPluginSystemTime::GetItemValueText() const
{
return CDataManager::Instance().m_cur_time.c_str();
}
const wchar_t* CPluginSystemTime::GetItemValueSampleText() const
{
if (CDataManager::Instance().m_setting_data.show_second)
return L"12:00:00";
else
return L"12:00";
}
int CPluginSystemTime::IsDrawResourceUsageGraph() const
{
return 1;
}
float CPluginSystemTime::GetResourceUsageGraphValue() const
{
float value = CDataManager::Instance().m_system_time.wSecond / 60.0f;
return value;
}