Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
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
wyykak
ygopro
Commits
1adbe5ba
Commit
1adbe5ba
authored
May 15, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into another
parents
b9d211ca
bbdc8d3b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
41 deletions
+35
-41
.travis.yml
.travis.yml
+2
-3
appveyor.yml
appveyor.yml
+2
-3
gframe/drawing.cpp
gframe/drawing.cpp
+20
-22
gframe/duelclient.cpp
gframe/duelclient.cpp
+7
-9
gframe/premake4.lua
gframe/premake4.lua
+2
-2
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
.travis.yml
View file @
1adbe5ba
...
...
@@ -86,9 +86,8 @@ before_deploy:
7z a -mx9 -xr!.git* KoishiPro-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip ygopro.app;
fi
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://code.mycard.moe/nanahira/ygopro-images/-/archive/master/ygopro-images-master.zip
-
7z x -y ygopro-images-master.zip > /dev/null
-
mv -f ygopro-images-master pics
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://cdn01.moecube.com/images/ygopro-images-zh-CN.zip
-
7z x -y -opics ygopro-images-zh-CN.zip > /dev/null
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/moecube/ygopro-starter-pack/archive/master.zip
-
7z x -y ygopro-starter-pack-master.zip > /dev/null
...
...
appveyor.yml
View file @
1adbe5ba
...
...
@@ -59,9 +59,8 @@ after_build:
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/purerosefallen/windbot/releases/download/latest/WindBot.7z ; exit 0"
-
7z x -y WindBot.7z
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://code.mycard.moe/nanahira/ygopro-images/-/archive/master/ygopro-images-master.zip ; exit 0"
-
7z x -y ygopro-images-master.zip
-
mv -f ygopro-images-master pics
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://cdn01.moecube.com/images/ygopro-images-zh-CN.zip ; exit 0"
-
7z x -y -opics ygopro-images-zh-CN.zip
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/purerosefallen/update-koishipro/archive/master.zip ; exit 0"
-
7z x -y update-koishipro-master.zip
...
...
gframe/drawing.cpp
View file @
1adbe5ba
...
...
@@ -496,28 +496,26 @@ void Game::DrawMisc() {
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
im
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vActivate
,
4
,
matManager
.
iRectangle
,
2
);
}
if
(
dField
.
chains
.
size
()
>
1
)
{
for
(
size_t
i
=
0
;
i
<
dField
.
chains
.
size
();
++
i
)
{
if
(
dField
.
chains
[
i
].
solved
)
break
;
matManager
.
mTRTexture
.
setTexture
(
0
,
imageManager
.
tChain
);
matManager
.
mTRTexture
.
AmbientColor
=
0xffffff00
;
ic
.
setRotationRadians
(
act_rot
);
ic
.
setTranslation
(
dField
.
chains
[
i
].
chain_pos
);
driver
->
setMaterial
(
matManager
.
mTRTexture
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
ic
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vSymbol
,
4
,
matManager
.
iRectangle
,
2
);
it
.
setScale
(
0.6
f
);
it
.
setTranslation
(
dField
.
chains
[
i
].
chain_pos
);
matManager
.
mTRTexture
.
setTexture
(
0
,
imageManager
.
tNumber
);
matManager
.
vChainNum
[
0
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
),
0.2421875
f
*
(
i
/
5
));
matManager
.
vChainNum
[
1
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
+
1
),
0.2421875
f
*
(
i
/
5
));
matManager
.
vChainNum
[
2
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
),
0.2421875
f
*
(
i
/
5
+
1
));
matManager
.
vChainNum
[
3
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
+
1
),
0.2421875
f
*
(
i
/
5
+
1
));
driver
->
setMaterial
(
matManager
.
mTRTexture
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
it
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vChainNum
,
4
,
matManager
.
iRectangle
,
2
);
}
for
(
size_t
i
=
0
;
i
<
dField
.
chains
.
size
();
++
i
)
{
if
(
dField
.
chains
[
i
].
solved
)
break
;
matManager
.
mTRTexture
.
setTexture
(
0
,
imageManager
.
tChain
);
matManager
.
mTRTexture
.
AmbientColor
=
0xffffff00
;
ic
.
setRotationRadians
(
act_rot
);
ic
.
setTranslation
(
dField
.
chains
[
i
].
chain_pos
);
driver
->
setMaterial
(
matManager
.
mTRTexture
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
ic
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vSymbol
,
4
,
matManager
.
iRectangle
,
2
);
it
.
setScale
(
0.6
f
);
it
.
setTranslation
(
dField
.
chains
[
i
].
chain_pos
);
matManager
.
mTRTexture
.
setTexture
(
0
,
imageManager
.
tNumber
);
matManager
.
vChainNum
[
0
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
),
0.2421875
f
*
(
i
/
5
));
matManager
.
vChainNum
[
1
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
+
1
),
0.2421875
f
*
(
i
/
5
));
matManager
.
vChainNum
[
2
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
),
0.2421875
f
*
(
i
/
5
+
1
));
matManager
.
vChainNum
[
3
].
TCoords
=
vector2df
(
0.19375
f
*
(
i
%
5
+
1
),
0.2421875
f
*
(
i
/
5
+
1
));
driver
->
setMaterial
(
matManager
.
mTRTexture
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
it
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vChainNum
,
4
,
matManager
.
iRectangle
,
2
);
}
//finish button
if
(
btnCancelOrFinish
->
isVisible
()
&&
dField
.
select_ready
)
...
...
gframe/duelclient.cpp
View file @
1adbe5ba
...
...
@@ -3185,15 +3185,13 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
WaitFrameSignal
(
11
);
}
}
if
(
mainGame
->
dField
.
chains
.
size
()
>
1
)
{
if
(
mainGame
->
dField
.
last_chain
)
mainGame
->
WaitFrameSignal
(
11
);
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
mainGame
->
dField
.
chains
[
ct
-
1
].
solved
=
false
;
mainGame
->
WaitFrameSignal
(
3
);
mainGame
->
dField
.
chains
[
ct
-
1
].
solved
=
true
;
mainGame
->
WaitFrameSignal
(
3
);
}
if
(
mainGame
->
dField
.
last_chain
)
mainGame
->
WaitFrameSignal
(
11
);
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
mainGame
->
dField
.
chains
[
ct
-
1
].
solved
=
false
;
mainGame
->
WaitFrameSignal
(
3
);
mainGame
->
dField
.
chains
[
ct
-
1
].
solved
=
true
;
mainGame
->
WaitFrameSignal
(
3
);
}
mainGame
->
dField
.
last_chain
=
false
;
return
true
;
...
...
gframe/premake4.lua
View file @
1adbe5ba
...
...
@@ -50,10 +50,10 @@ project "ygopro"
configuration
"not windows"
includedirs
{
"/usr/include/freetype2"
}
excludes
{
"COSOperator.*"
}
links
{
"
lua5.3-c++"
,
"
event_pthreads"
,
"GL"
,
"dl"
,
"pthread"
}
links
{
"event_pthreads"
,
"GL"
,
"dl"
,
"pthread"
}
configuration
"linux"
includedirs
{
"../irrlicht_linux/include"
}
links
{
"X11"
,
"Xxf86vm"
}
links
{
"
lua5.3-c++"
,
"
X11"
,
"Xxf86vm"
}
if
USE_IRRKLANG
then
links
{
"IrrKlang"
}
linkoptions
{
"-Wl,-rpath=./"
}
...
...
ocgcore
@
5844a137
Subproject commit
a636af1e4e078d6380303a63b013900b0816fdf7
Subproject commit
5844a1379953abb9a6071194180109dc30705e21
script
@
4c7d5cd6
Subproject commit
216c4754fb203fe2f598fee02ace05e54f7cea55
Subproject commit
4c7d5cd6825c6dc2ccba5fa3a9481de2d1b5fa6b
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