Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenweijian
hilo-user
Commits
f3b584cd
Commit
f3b584cd
authored
Jun 05, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cp特权描述 // todo 翻译
parent
75d3afc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
level.go
_const/enum/cp_e/level.go
+11
-0
space.go
cv/cp_cv/space.go
+13
-11
No files found.
_const/enum/cp_e/level.go
View file @
f3b584cd
...
@@ -49,6 +49,17 @@ var (
...
@@ -49,6 +49,17 @@ var (
CpPrivilegeActiveProfile
:
0
,
CpPrivilegeActiveProfile
:
0
,
CpPrivilegeMicEffect
:
0
,
CpPrivilegeMicEffect
:
0
,
}
}
// cp特权描述 // todo 翻译
CpPrivilegeDescMsgId
=
map
[
CpPrivilege
]
uint
{
CpPrivilegeSpace
:
0
,
CpPrivilegeBanner
:
0
,
CpPrivilegeMedal
:
0
,
CpPrivilegeCert
:
0
,
CpPrivilegeRoomEffect
:
0
,
CpPrivilegeHeadwear
:
0
,
CpPrivilegeActiveProfile
:
0
,
CpPrivilegeMicEffect
:
0
,
}
// cp特权icon // todo ui
// cp特权icon // todo ui
CpPrivilegeIcon
=
map
[
CpPrivilege
]
string
{
CpPrivilegeIcon
=
map
[
CpPrivilege
]
string
{
CpPrivilegeSpace
:
"icon_p_1.png"
,
CpPrivilegeSpace
:
"icon_p_1.png"
,
...
...
cv/cp_cv/space.go
View file @
f3b584cd
...
@@ -37,9 +37,11 @@ type CvResLevel struct {
...
@@ -37,9 +37,11 @@ type CvResLevel struct {
// 特权信息
// 特权信息
type
CvPrivilege
struct
{
type
CvPrivilege
struct
{
Type
cp_e
.
CpPrivilege
`json:"type"`
// 特权id 1:空间 2:横幅 3:等级勋章 4:证书 5:进场特效 6:头像头饰 7:动态资料卡 8:麦位特效
Type
cp_e
.
CpPrivilege
`json:"type"`
// 特权id 1:空间 2:横幅 3:等级勋章 4:证书 5:进场特效 6:头像头饰 7:动态资料卡 8:麦位特效
NameMsgId
uint
`json:"-"`
// 名称-翻译id
NameMsgId
uint
`json:"-"`
// 名称-翻译id
Name
string
`json:"name"`
// 名称
Name
string
`json:"name"`
// 名称
DescMsgId
uint
`json:"-"`
// 描述-翻译id
Desc
string
`json:"desc"`
Icon
string
`json:"icon"`
// 图标
Icon
string
`json:"icon"`
// 图标
CanSwitch
bool
`json:"canSwitch"`
// 能否开关
CanSwitch
bool
`json:"canSwitch"`
// 能否开关
UserSwitch
bool
`json:"userSwitch"`
// 用户开关
UserSwitch
bool
`json:"userSwitch"`
// 用户开关
...
@@ -63,14 +65,14 @@ var CvResLevelList = []CvResLevel{
...
@@ -63,14 +65,14 @@ var CvResLevelList = []CvResLevel{
}
}
var
(
var
(
CvPrivilege1
=
CvPrivilege
{
cp_e
.
CpPrivilegeSpace
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeSpace
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeSpace
],
false
,
false
}
CvPrivilege1
=
CvPrivilege
{
cp_e
.
CpPrivilegeSpace
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeSpace
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeSpace
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeSpace
],
false
,
false
}
CvPrivilege2
=
CvPrivilege
{
cp_e
.
CpPrivilegeBanner
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeBanner
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeBanner
],
false
,
false
}
CvPrivilege2
=
CvPrivilege
{
cp_e
.
CpPrivilegeBanner
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeBanner
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeBanner
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeBanner
],
false
,
false
}
CvPrivilege3
=
CvPrivilege
{
cp_e
.
CpPrivilegeMedal
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeMedal
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeMedal
],
false
,
false
}
CvPrivilege3
=
CvPrivilege
{
cp_e
.
CpPrivilegeMedal
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeMedal
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeMedal
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeMedal
],
false
,
false
}
CvPrivilege4
=
CvPrivilege
{
cp_e
.
CpPrivilegeCert
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeCert
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeCert
],
false
,
false
}
CvPrivilege4
=
CvPrivilege
{
cp_e
.
CpPrivilegeCert
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeCert
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeCert
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeCert
],
false
,
false
}
CvPrivilege5
=
CvPrivilege
{
cp_e
.
CpPrivilegeRoomEffect
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeRoomEffect
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeRoomEffect
],
true
,
false
}
CvPrivilege5
=
CvPrivilege
{
cp_e
.
CpPrivilegeRoomEffect
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeRoomEffect
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeRoomEffect
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeRoomEffect
],
true
,
false
}
CvPrivilege6
=
CvPrivilege
{
cp_e
.
CpPrivilegeHeadwear
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeHeadwear
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeHeadwear
],
false
,
false
}
CvPrivilege6
=
CvPrivilege
{
cp_e
.
CpPrivilegeHeadwear
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeHeadwear
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeHeadwear
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeHeadwear
],
false
,
false
}
CvPrivilege7
=
CvPrivilege
{
cp_e
.
CpPrivilegeActiveProfile
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeActiveProfile
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeActiveProfile
],
true
,
false
}
CvPrivilege7
=
CvPrivilege
{
cp_e
.
CpPrivilegeActiveProfile
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeActiveProfile
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeActiveProfile
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeActiveProfile
],
true
,
false
}
CvPrivilege8
=
CvPrivilege
{
cp_e
.
CpPrivilegeMicEffect
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeMicEffect
],
""
,
cp_e
.
CpPrivilegeIcon
[
cp_e
.
CpPrivilegeMicEffect
],
false
,
false
}
CvPrivilege8
=
CvPrivilege
{
cp_e
.
CpPrivilegeMicEffect
,
cp_e
.
CpPrivilegeNameMsgId
[
cp_e
.
CpPrivilegeMicEffect
],
""
,
cp_e
.
CpPrivilege
DescMsgId
[
cp_e
.
CpPrivilegeMicEffect
],
""
,
cp_e
.
CpPrivilege
Icon
[
cp_e
.
CpPrivilegeMicEffect
],
false
,
false
}
)
)
var
CpLevelPrivilegeList
=
map
[
cp_e
.
CpLevel
][]
CvPrivilege
{
var
CpLevelPrivilegeList
=
map
[
cp_e
.
CpLevel
][]
CvPrivilege
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment