Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
苍蓝
rd-ygopro
Commits
a517571c
Commit
a517571c
authored
Sep 11, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fh' into sound
parents
7ce71f11
94b5e588
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
9 deletions
+28
-9
gframe/deck_con.cpp
gframe/deck_con.cpp
+13
-2
gframe/deck_con.h
gframe/deck_con.h
+1
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-0
gframe/game.cpp
gframe/game.cpp
+3
-3
gframe/game.h
gframe/game.h
+3
-0
strings.conf
strings.conf
+7
-4
No files found.
gframe/deck_con.cpp
View file @
a517571c
...
@@ -220,6 +220,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -220,6 +220,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
if
(
mainGame
->
chkCategory
[
i
]
->
isChecked
())
if
(
mainGame
->
chkCategory
[
i
]
->
isChecked
())
filter_effect
|=
filter
;
filter_effect
|=
filter
;
mainGame
->
HideElement
(
mainGame
->
wCategories
);
mainGame
->
HideElement
(
mainGame
->
wCategories
);
InstantSearch
();
break
;
break
;
}
}
case
BUTTON_SIDE_OK
:
{
case
BUTTON_SIDE_OK
:
{
...
@@ -312,6 +313,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -312,6 +313,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
if
(
mainGame
->
btnMark
[
7
]
->
isPressed
())
if
(
mainGame
->
btnMark
[
7
]
->
isPressed
())
filter_marks
|=
0004
;
filter_marks
|=
0004
;
mainGame
->
HideElement
(
mainGame
->
wLinkMarks
);
mainGame
->
HideElement
(
mainGame
->
wLinkMarks
);
InstantSearch
();
break
;
break
;
}
}
}
}
...
@@ -332,8 +334,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -332,8 +334,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
case
irr
:
:
gui
::
EGET_EDITBOX_CHANGED
:
{
case
irr
:
:
gui
::
EGET_EDITBOX_CHANGED
:
{
switch
(
id
)
{
switch
(
id
)
{
case
EDITBOX_KEYWORD
:
{
case
EDITBOX_KEYWORD
:
{
if
(
mainGame
->
gameConf
.
auto_search_limit
>=
0
&&
(
wcslen
(
mainGame
->
ebCardName
->
getText
())
>=
mainGame
->
gameConf
.
auto_search_limit
))
InstantSearch
();
StartFilter
();
break
;
break
;
}
}
}
}
...
@@ -451,6 +452,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -451,6 +452,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
break
;
break
;
}
}
}
}
InstantSearch
();
break
;
break
;
}
}
case
COMBOBOX_SORTTYPE
:
{
case
COMBOBOX_SORTTYPE
:
{
...
@@ -467,8 +469,13 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
...
@@ -467,8 +469,13 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame
->
ebDefense
->
setEnabled
(
true
);
mainGame
->
ebDefense
->
setEnabled
(
true
);
}
}
}
}
InstantSearch
();
break
;
break
;
}
}
case
COMBOBOX_ATTRIBUTE
:
case
COMBOBOX_RACE
:
case
COMBOBOX_LIMIT
:
InstantSearch
();
}
}
}
}
default:
break
;
default:
break
;
...
@@ -865,6 +872,10 @@ void DeckBuilder::FilterCards() {
...
@@ -865,6 +872,10 @@ void DeckBuilder::FilterCards() {
}
}
SortList
();
SortList
();
}
}
void
DeckBuilder
::
InstantSearch
()
{
if
(
mainGame
->
gameConf
.
auto_search_limit
>=
0
&&
(
wcslen
(
mainGame
->
ebCardName
->
getText
())
>=
mainGame
->
gameConf
.
auto_search_limit
))
StartFilter
();
}
void
DeckBuilder
::
ClearSearch
()
{
void
DeckBuilder
::
ClearSearch
()
{
mainGame
->
cbCardType
->
setSelected
(
0
);
mainGame
->
cbCardType
->
setSelected
(
0
);
mainGame
->
cbCardType2
->
setSelected
(
0
);
mainGame
->
cbCardType2
->
setSelected
(
0
);
...
...
gframe/deck_con.h
View file @
a517571c
...
@@ -17,6 +17,7 @@ public:
...
@@ -17,6 +17,7 @@ public:
void
FilterCards
();
void
FilterCards
();
void
StartFilter
();
void
StartFilter
();
void
ClearFilter
();
void
ClearFilter
();
void
InstantSearch
();
void
ClearSearch
();
void
ClearSearch
();
void
SortList
();
void
SortList
();
...
...
gframe/duelclient.cpp
View file @
a517571c
...
@@ -283,6 +283,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -283,6 +283,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame
->
wDeckEdit
->
setVisible
(
false
);
mainGame
->
wDeckEdit
->
setVisible
(
false
);
mainGame
->
wFilter
->
setVisible
(
false
);
mainGame
->
wFilter
->
setVisible
(
false
);
mainGame
->
wSort
->
setVisible
(
false
);
mainGame
->
wSort
->
setVisible
(
false
);
mainGame
->
stTip
->
setVisible
(
false
);
mainGame
->
btnSideOK
->
setVisible
(
true
);
mainGame
->
btnSideOK
->
setVisible
(
true
);
if
(
mainGame
->
dInfo
.
player_type
<
7
)
if
(
mainGame
->
dInfo
.
player_type
<
7
)
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
...
...
gframe/game.cpp
View file @
a517571c
...
@@ -485,7 +485,7 @@ bool Game::Initialize() {
...
@@ -485,7 +485,7 @@ bool Game::Initialize() {
cbCardType2
->
setMaxSelectionRows
(
10
);
cbCardType2
->
setMaxSelectionRows
(
10
);
cbCardType2
->
addItem
(
dataManager
.
GetSysString
(
1310
),
0
);
cbCardType2
->
addItem
(
dataManager
.
GetSysString
(
1310
),
0
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1315
),
rect
<
s32
>
(
205
,
2
+
25
/
6
,
280
,
22
+
25
/
6
),
false
,
false
,
wFilter
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1315
),
rect
<
s32
>
(
205
,
2
+
25
/
6
,
280
,
22
+
25
/
6
),
false
,
false
,
wFilter
);
cbLimit
=
env
->
addComboBox
(
rect
<
s32
>
(
260
,
25
/
6
,
390
,
20
+
25
/
6
),
wFilter
,
-
1
);
cbLimit
=
env
->
addComboBox
(
rect
<
s32
>
(
260
,
25
/
6
,
390
,
20
+
25
/
6
),
wFilter
,
COMBOBOX_LIMIT
);
cbLimit
->
setMaxSelectionRows
(
10
);
cbLimit
->
setMaxSelectionRows
(
10
);
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1310
));
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1310
));
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1316
));
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1316
));
...
@@ -496,13 +496,13 @@ bool Game::Initialize() {
...
@@ -496,13 +496,13 @@ bool Game::Initialize() {
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1242
));
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1242
));
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1243
));
cbLimit
->
addItem
(
dataManager
.
GetSysString
(
1243
));
env
->
addStaticText
(
dataManager
.
GetSysString
(
1319
),
rect
<
s32
>
(
10
,
22
+
50
/
6
,
70
,
42
+
50
/
6
),
false
,
false
,
wFilter
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1319
),
rect
<
s32
>
(
10
,
22
+
50
/
6
,
70
,
42
+
50
/
6
),
false
,
false
,
wFilter
);
cbAttribute
=
env
->
addComboBox
(
rect
<
s32
>
(
60
,
20
+
50
/
6
,
190
,
40
+
50
/
6
),
wFilter
,
-
1
);
cbAttribute
=
env
->
addComboBox
(
rect
<
s32
>
(
60
,
20
+
50
/
6
,
190
,
40
+
50
/
6
),
wFilter
,
COMBOBOX_ATTRIBUTE
);
cbAttribute
->
setMaxSelectionRows
(
10
);
cbAttribute
->
setMaxSelectionRows
(
10
);
cbAttribute
->
addItem
(
dataManager
.
GetSysString
(
1310
),
0
);
cbAttribute
->
addItem
(
dataManager
.
GetSysString
(
1310
),
0
);
for
(
int
filter
=
0x1
;
filter
!=
0x80
;
filter
<<=
1
)
for
(
int
filter
=
0x1
;
filter
!=
0x80
;
filter
<<=
1
)
cbAttribute
->
addItem
(
dataManager
.
FormatAttribute
(
filter
),
filter
);
cbAttribute
->
addItem
(
dataManager
.
FormatAttribute
(
filter
),
filter
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1321
),
rect
<
s32
>
(
10
,
42
+
75
/
6
,
70
,
62
+
75
/
6
),
false
,
false
,
wFilter
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1321
),
rect
<
s32
>
(
10
,
42
+
75
/
6
,
70
,
62
+
75
/
6
),
false
,
false
,
wFilter
);
cbRace
=
env
->
addComboBox
(
rect
<
s32
>
(
60
,
40
+
75
/
6
,
190
,
60
+
75
/
6
),
wFilter
,
-
1
);
cbRace
=
env
->
addComboBox
(
rect
<
s32
>
(
60
,
40
+
75
/
6
,
190
,
60
+
75
/
6
),
wFilter
,
COMBOBOX_RACE
);
cbRace
->
setMaxSelectionRows
(
10
);
cbRace
->
setMaxSelectionRows
(
10
);
cbRace
->
addItem
(
dataManager
.
GetSysString
(
1310
),
0
);
cbRace
->
addItem
(
dataManager
.
GetSysString
(
1310
),
0
);
for
(
int
filter
=
0x1
;
filter
!=
0x2000000
;
filter
<<=
1
)
for
(
int
filter
=
0x1
;
filter
!=
0x2000000
;
filter
<<=
1
)
...
...
gframe/game.h
View file @
a517571c
...
@@ -575,6 +575,8 @@ extern Game* mainGame;
...
@@ -575,6 +575,8 @@ extern Game* mainGame;
#define SCROLL_FILTER 315
#define SCROLL_FILTER 315
#define EDITBOX_KEYWORD 316
#define EDITBOX_KEYWORD 316
#define BUTTON_CLEAR_FILTER 317
#define BUTTON_CLEAR_FILTER 317
#define COMBOBOX_ATTRIBUTE 318
#define COMBOBOX_RACE 319
#define BUTTON_REPLAY_START 320
#define BUTTON_REPLAY_START 320
#define BUTTON_REPLAY_PAUSE 321
#define BUTTON_REPLAY_PAUSE 321
#define BUTTON_REPLAY_STEP 322
#define BUTTON_REPLAY_STEP 322
...
@@ -592,6 +594,7 @@ extern Game* mainGame;
...
@@ -592,6 +594,7 @@ extern Game* mainGame;
#define SCROLL_VOLUME 363
#define SCROLL_VOLUME 363
#define COMBOBOX_SORTTYPE 370
#define COMBOBOX_SORTTYPE 370
#define COMBOBOX_LIMIT 371
#define BUTTON_MARKS_FILTER 380
#define BUTTON_MARKS_FILTER 380
#define BUTTON_MARKERS_OK 381
#define BUTTON_MARKERS_OK 381
...
...
strings.conf
View file @
a517571c
...
@@ -587,6 +587,7 @@
...
@@ -587,6 +587,7 @@
!
setname
0
x3b
真红眼 レッドアイズ
!
setname
0
x3b
真红眼 レッドアイズ
!
setname
0
x3c
爬虫妖 レプティレス
!
setname
0
x3c
爬虫妖 レプティレス
!
setname
0
x3d
六武众 六武衆
!
setname
0
x3d
六武众 六武衆
!
setname
0
x103d
影六武众 影六武衆
!
setname
0
x3e
异虫 ワーム
!
setname
0
x3e
异虫 ワーム
!
setname
0
x3f
救世 セイヴァー
!
setname
0
x3f
救世 セイヴァー
!
setname
0
x40
被封印 封印されし
!
setname
0
x40
被封印 封印されし
...
@@ -813,8 +814,8 @@
...
@@ -813,8 +814,8 @@
#!setname 0xec 魔界 魔界
#!setname 0xec 魔界 魔界
!
setname
0
x10ec
魔界剧团 魔界劇団
!
setname
0
x10ec
魔界剧团 魔界劇団
!
setname
0
x20ec
魔界台本 魔界台本
!
setname
0
x20ec
魔界台本 魔界台本
!
setname
0
xed
地
底恐魔
Subterror
!
setname
0
xed
地
中族 サブテラー
!
setname
0
x10ed
地
底恐魔 巨魔
Subterror
Behemoth
!
setname
0
x10ed
地
中族邪界 サブテラーマリス
!
setname
0
xee
秘旋谍
SPYRAL
!
setname
0
xee
秘旋谍
SPYRAL
!
setname
0
x10ee
秘旋谍装备
SPYRAL
GEAR
!
setname
0
x10ee
秘旋谍装备
SPYRAL
GEAR
!
setname
0
x20ee
秘旋谍任务
SPYRAL
MISSION
!
setname
0
x20ee
秘旋谍任务
SPYRAL
MISSION
...
@@ -846,5 +847,7 @@
...
@@ -846,5 +847,7 @@
!
setname
0
x103
幻变骚灵 オルターガイスト
!
setname
0
x103
幻变骚灵 オルターガイスト
!
setname
0
x104
机怪虫 クローラー
!
setname
0
x104
机怪虫 クローラー
!
setname
0
x105
玄化 メタファイズ
!
setname
0
x105
玄化 メタファイズ
!
setname
0
x106
复仇死灵
Vendread
!
setname
0
x106
复仇死者 ヴェンデット
!
setname
0
x107
F
.
A
.
!
setname
0
x107
方程式运动员
F
.
A
.
!
setname
0
x108
魔弹 魔弾
!
setname
0
x109
天气 天気
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