Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
de47c60b
Commit
de47c60b
authored
Mar 25, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of ../ygopro-222DIY
parents
24bba9b9
2422327f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
2 deletions
+21
-2
gframe/deck_con.cpp
gframe/deck_con.cpp
+5
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-0
gframe/event_handler.cpp
gframe/event_handler.cpp
+4
-0
gframe/game.cpp
gframe/game.cpp
+3
-1
ocgcore/effect.h
ocgcore/effect.h
+1
-0
ocgcore/field.cpp
ocgcore/field.cpp
+1
-1
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+2
-0
system.conf
system.conf
+4
-0
No files found.
gframe/deck_con.cpp
View file @
de47c60b
...
...
@@ -637,6 +637,11 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
case
irr
:
:
EMIE_MOUSE_WHEEL
:
{
if
(
!
mainGame
->
scrFilter
->
isVisible
())
break
;
if
(
mainGame
->
env
->
hasFocus
(
mainGame
->
scrFilter
))
break
;
irr
::
gui
::
IGUIElement
*
root
=
mainGame
->
env
->
getRootGUIElement
();
if
(
root
->
getElementFromPoint
(
mouse_pos
)
!=
root
)
break
;
if
(
event
.
MouseInput
.
Wheel
<
0
)
{
if
(
mainGame
->
scrFilter
->
getPos
()
<
mainGame
->
scrFilter
->
getMax
())
mainGame
->
scrFilter
->
setPos
(
mainGame
->
scrFilter
->
getPos
()
+
1
);
...
...
gframe/duelclient.cpp
View file @
de47c60b
...
...
@@ -194,6 +194,7 @@ void DuelClient::ClientEvent(bufferevent *bev, short events, void *ctx) {
mainGame
->
btnJoinCancel
->
setEnabled
(
true
);
mainGame
->
btnStartBot
->
setEnabled
(
true
);
mainGame
->
btnBotCancel
->
setEnabled
(
true
);
mainGame
->
stTip
->
setVisible
(
false
);
mainGame
->
gMutex
.
Unlock
();
mainGame
->
closeDoneSignal
.
Reset
();
mainGame
->
closeSignal
.
Set
();
...
...
gframe/event_handler.cpp
View file @
de47c60b
...
...
@@ -1803,6 +1803,10 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
case
irr
:
:
gui
::
EGET_SCROLL_BAR_CHANGED
:
{
switch
(
id
)
{
case
SCROLL_CARDTEXT
:
{
if
(
!
mainGame
->
scrCardText
->
isVisible
())
{
return
true
;
break
;
}
u32
pos
=
mainGame
->
scrCardText
->
getPos
();
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
25
,
mainGame
->
textFont
,
mainGame
->
showingtext
,
pos
);
return
true
;
...
...
gframe/game.cpp
View file @
de47c60b
...
...
@@ -736,7 +736,7 @@ void Game::MainLoop() {
atkdy
=
(
float
)
sin
(
atkframe
);
driver
->
beginScene
(
true
,
true
,
SColor
(
0
,
0
,
0
,
0
));
gMutex
.
Lock
();
if
(
dInfo
.
isStarted
)
{
if
(
dInfo
.
isStarted
||
dInfo
.
isReplaySkiping
)
{
DrawBackImage
(
imageManager
.
tBackGround
);
DrawBackGround
();
DrawCards
();
...
...
@@ -816,6 +816,8 @@ void Game::InitStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth, u32 cH
SetStaticText
(
pControl
,
cWidth
,
font
,
text
);
if
(
font
->
getDimension
(
dataManager
.
strBuffer
).
Height
<=
cHeight
)
{
scrCardText
->
setVisible
(
false
);
if
(
env
->
hasFocus
(
scrCardText
))
env
->
removeFocus
(
scrCardText
);
return
;
}
SetStaticText
(
pControl
,
cWidth
-
25
,
font
,
text
);
...
...
ocgcore/effect.h
View file @
de47c60b
...
...
@@ -113,6 +113,7 @@ public:
#define EFFECT_ADD_LINK_MARKER_KOISHI 37564151
#define EFFECT_REMOVE_LINK_MARKER_KOISHI 37564152
#define EFFECT_CANNOT_LOSE_KOISHI 37564153
#define EFFECT_EXTRA_TOMAIN_KOISHI 37564154
//status
#define EFFECT_STATUS_AVAILABLE 0x0001
...
...
ocgcore/field.cpp
View file @
de47c60b
...
...
@@ -578,7 +578,7 @@ int32 field::get_useable_count_fromex(card* pcard, uint8 playerid, uint8 uplayer
pcard
->
current
.
location
=
LOCATION_EXTRA
;
}
int
useable_count
=
0
;
if
(
core
.
duel_rule
>=
4
)
if
(
core
.
duel_rule
>=
4
&&
!
is_player_affected_by_effect
(
playerid
,
EFFECT_EXTRA_TOMAIN_KOISHI
)
&&
!
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_TOMAIN_KOISHI
)
)
useable_count
=
get_useable_count_fromex_rule4
(
pcard
,
playerid
,
uplayer
,
zone
,
list
);
else
useable_count
=
get_useable_count_other
(
pcard
,
playerid
,
LOCATION_MZONE
,
uplayer
,
LOCATION_REASON_TOFIELD
,
zone
,
list
);
...
...
ocgcore/interpreter.cpp
View file @
de47c60b
...
...
@@ -698,6 +698,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal
(
lua_state
,
"EFFECT_REMOVE_LINK_MARKER_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_CANNOT_LOSE_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_CANNOT_LOSE_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_EXTRA_TOMAIN_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_EXTRA_TOMAIN_KOISHI"
);
//music hints
lua_pushinteger
(
lua_state
,
HINT_MUSIC
);
lua_setglobal
(
lua_state
,
"HINT_MUSIC"
);
...
...
system.conf
View file @
de47c60b
...
...
@@ -31,6 +31,10 @@ auto_search_limit = 2
ignore_deck_changes
=
0
default_ot
=
1
enable_bot_mode
=
1
window_maximized
=
0
window_width
=
1024
window_height
=
640
resize_popup_menu
=
0
enable_sound
=
1
enable_music
=
1
#Volume of sound and music, between 0 and 100
...
...
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