Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
b9c786fa
Commit
b9c786fa
authored
Mar 30, 2018
by
fallenstardust
Committed by
并蒂霓虹
Mar 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复tag观战聊天问题
parent
8a494fdc
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
32 deletions
+24
-32
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+0
-10
Classes/gframe/single_duel.cpp
Classes/gframe/single_duel.cpp
+4
-11
Classes/gframe/single_mode.cpp
Classes/gframe/single_mode.cpp
+1
-6
Classes/gframe/tag_duel.cpp
Classes/gframe/tag_duel.cpp
+3
-2
mobile/assets/changelog.html
mobile/assets/changelog.html
+8
-2
mobile/assets/serverlist.xml
mobile/assets/serverlist.xml
+7
-0
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/res/drawable/ic_launcher3.png
mobile/src/main/res/drawable/ic_launcher3.png
+0
-0
No files found.
Classes/gframe/event_handler.cpp
View file @
b9c786fa
...
...
@@ -950,16 +950,6 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
const
wchar_t
*
input
=
mainGame
->
ebChatInput
->
getText
();
if
(
input
[
0
])
{
unsigned
short
msgbuf
[
256
];
if
(
mainGame
->
dInfo
.
isStarted
)
{
if
(
mainGame
->
dInfo
.
player_type
<
7
)
{
if
(
mainGame
->
dInfo
.
isTag
&&
(
mainGame
->
dInfo
.
player_type
%
2
))
mainGame
->
AddChatMsg
((
wchar_t
*
)
input
,
2
);
else
mainGame
->
AddChatMsg
((
wchar_t
*
)
input
,
0
);
}
else
mainGame
->
AddChatMsg
((
wchar_t
*
)
input
,
10
);
}
else
mainGame
->
AddChatMsg
((
wchar_t
*
)
input
,
7
);
int
len
=
BufferIO
::
CopyWStr
(
input
,
msgbuf
,
256
);
DuelClient
::
SendBufferToServer
(
CTOS_CHAT
,
msgbuf
,
(
len
+
1
)
*
sizeof
(
short
));
mainGame
->
ebChatInput
->
setText
(
L""
);
...
...
Classes/gframe/single_duel.cpp
View file @
b9c786fa
...
...
@@ -27,17 +27,10 @@ void SingleDuel::Chat(DuelPlayer* dp, void* pdata, int len) {
scc
.
player
=
dp
->
type
;
unsigned
short
*
msg
=
(
unsigned
short
*
)
pdata
;
int
msglen
=
BufferIO
::
CopyWStr
(
msg
,
scc
.
msg
,
256
);
if
(
dp
->
type
>
1
)
{
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_CHAT
,
&
scc
,
4
+
msglen
*
2
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
for
(
auto
pit
=
observers
.
begin
();
pit
!=
observers
.
end
();
++
pit
)
if
((
*
pit
)
!=
dp
)
NetServer
::
ReSendToPlayer
(
*
pit
);
}
else
{
NetServer
::
SendBufferToPlayer
(
players
[
1
-
dp
->
type
],
STOC_CHAT
,
&
scc
,
4
+
msglen
*
2
);
for
(
auto
pit
=
observers
.
begin
();
pit
!=
observers
.
end
();
++
pit
)
NetServer
::
ReSendToPlayer
(
*
pit
);
}
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_CHAT
,
&
scc
,
4
+
msglen
*
2
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
for
(
auto
pit
=
observers
.
begin
();
pit
!=
observers
.
end
();
++
pit
)
NetServer
::
ReSendToPlayer
(
*
pit
);
}
void
SingleDuel
::
JoinGame
(
DuelPlayer
*
dp
,
void
*
pdata
,
bool
is_creater
)
{
if
(
!
is_creater
)
{
...
...
Classes/gframe/single_mode.cpp
View file @
b9c786fa
...
...
@@ -95,9 +95,6 @@ int SingleMode::SinglePlayThread(void* param) {
mainGame
->
dInfo
.
isSingleMode
=
true
;
mainGame
->
device
->
setEventReceiver
(
&
mainGame
->
dField
);
mainGame
->
gMutex
.
Unlock
();
#ifdef _IRR_ANDROID_PLATFORM_
android
::
toggleOverlayView
(
mainGame
->
appMain
,
true
);
#endif
char
engineBuffer
[
0x1000
];
is_closing
=
false
;
is_continuing
=
true
;
...
...
@@ -137,6 +134,7 @@ int SingleMode::SinglePlayThread(void* param) {
wchar_t
timetext
[
80
];
mbstowcs
(
timetext
,
timebuf
,
size
);
mainGame
->
ebRSName
->
setText
(
timetext
);
mainGame
->
wReplaySave
->
setText
(
dataManager
.
GetSysString
(
1340
));
mainGame
->
PopupElement
(
mainGame
->
wReplaySave
);
mainGame
->
gMutex
.
Unlock
();
mainGame
->
replaySignal
.
Reset
();
...
...
@@ -144,9 +142,6 @@ int SingleMode::SinglePlayThread(void* param) {
if
(
mainGame
->
actionParam
)
last_replay
.
SaveReplay
(
mainGame
->
ebRSName
->
getText
());
end_duel
(
pduel
);
#ifdef _IRR_ANDROID_PLATFORM_
android
::
toggleOverlayView
(
mainGame
->
appMain
,
false
);
#endif
if
(
!
is_closing
)
{
mainGame
->
gMutex
.
Lock
();
mainGame
->
dInfo
.
isStarted
=
false
;
...
...
Classes/gframe/tag_duel.cpp
View file @
b9c786fa
...
...
@@ -24,8 +24,9 @@ void TagDuel::Chat(DuelPlayer* dp, void* pdata, int len) {
unsigned
short
*
msg
=
(
unsigned
short
*
)
pdata
;
int
msglen
=
BufferIO
::
CopyWStr
(
msg
,
scc
.
msg
,
256
);
for
(
int
i
=
0
;
i
<
4
;
++
i
)
if
(
players
[
i
]
!=
dp
)
NetServer
::
SendBufferToPlayer
(
players
[
i
],
STOC_CHAT
,
&
scc
,
4
+
msglen
*
2
);
NetServer
::
SendBufferToPlayer
(
players
[
i
],
STOC_CHAT
,
&
scc
,
4
+
msglen
*
2
);
for
(
auto
pit
=
observers
.
begin
();
pit
!=
observers
.
end
();
++
pit
)
NetServer
::
ReSendToPlayer
(
*
pit
);
}
void
TagDuel
::
JoinGame
(
DuelPlayer
*
dp
,
void
*
pdata
,
bool
is_creater
)
{
if
(
!
is_creater
)
{
...
...
mobile/assets/changelog.html
View file @
b9c786fa
...
...
@@ -21,8 +21,14 @@
<pre>
更新:
1.更新ygo内核;
2.新卡ST18+18SP+VJ
3.升级lua为5.3
2.新卡ST18+18SP+VJ;
3.升级lua为5.3;
优化:
1.优化英、韩文界面;
2.新增更新比较快的正式卡服;
修复:
1.补充缺失的部分场地底盘和token图;
2.四人决斗中观战聊天不可见的问题;
</pre>
<ul>
<li
style=
"color:#ffffff"
>
3.1.6
</li>
...
...
mobile/assets/serverlist.xml
View file @
b9c786fa
...
...
@@ -9,6 +9,13 @@
<port>
17225
</port>
<keep>
true
</keep>
</server>
<server>
<player-name>
Knight of Hanoi
</player-name>
<name>
Koishi 중국서버
</name>
<ip>
koishi.ygopro.cn
</ip>
<port>
7210
</port>
<keep>
true
</keep>
</server>
<server>
<player-name>
Knight of Hanoi
</player-name>
<name>
YGOPRO 중국서버
</name>
...
...
mobile/build.gradle
View file @
b9c786fa
...
...
@@ -9,7 +9,7 @@ android {
applicationId
"cn.garymb.ygomobile.KO"
minSdkVersion
16
targetSdkVersion
22
versionCode
3107
02
versionCode
3107
331
versionName
"KO3.1.7"
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
...
...
mobile/src/main/res/drawable/ic_launcher3.png
View replaced file @
8a494fdc
View file @
b9c786fa
132 KB
|
W:
|
H:
119 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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