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
44f163ae
Commit
44f163ae
authored
Jun 13, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cb12d793
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
2 deletions
+18
-2
gframe/event_handler.cpp
gframe/event_handler.cpp
+11
-0
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+1
-1
ocgcore/libdebug.cpp
ocgcore/libdebug.cpp
+3
-0
ocgcore/ocgapi.cpp
ocgcore/ocgapi.cpp
+1
-0
script/c13474291.lua
script/c13474291.lua
+1
-0
system.conf
system.conf
+1
-1
No files found.
gframe/event_handler.cpp
View file @
44f163ae
...
...
@@ -411,6 +411,13 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
wCmdMenu
->
setVisible
(
false
);
selectable_cards
.
clear
();
switch
(
command_location
)
{
case
LOCATION_DECK
:
{
for
(
int
i
=
deck
[
hovered_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
selectable_cards
.
push_back
(
deck
[
command_controler
][
i
]);
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
1000
),
deck
[
command_controler
].
size
());
mainGame
->
wCardSelect
->
setText
(
formatBuffer
);
break
;
}
case
LOCATION_MZONE
:
{
ClientCard
*
pcard
=
mzone
[
command_controler
][
command_sequence
];
for
(
int
i
=
0
;
i
<
pcard
->
overlayed
.
size
();
++
i
)
...
...
@@ -924,8 +931,12 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
switch
(
hovered_location
)
{
case
LOCATION_DECK
:
{
int
command_flag
=
0
;
if
(
deck
[
hovered_controler
].
size
()
==
0
)
break
;
for
(
int
i
=
0
;
i
<
deck
[
hovered_controler
].
size
();
++
i
)
command_flag
|=
deck
[
hovered_controler
][
i
]
->
cmdFlag
;
if
(
mainGame
->
dInfo
.
isSingleMode
)
command_flag
|=
COMMAND_LIST
;
list_command
=
1
;
ShowMenu
(
command_flag
,
x
,
y
);
break
;
...
...
ocgcore/interpreter.cpp
View file @
44f163ae
...
...
@@ -603,7 +603,7 @@ int32 interpreter::load_script(char* script_name) {
}
int32
interpreter
::
load_card_script
(
uint32
code
)
{
char
class_name
[
20
];
char
script_name
[
20
];
char
script_name
[
64
];
sprintf
(
class_name
,
"c%d"
,
code
);
lua_getglobal
(
current_state
,
class_name
);
//if script is not loaded, create and load it
...
...
ocgcore/libdebug.cpp
View file @
44f163ae
...
...
@@ -80,6 +80,7 @@ int32 scriptlib::debug_reload_field_begin(lua_State *L) {
uint32
flag
=
lua_tointeger
(
L
,
1
);
pduel
->
clear
();
pduel
->
game_field
->
core
.
duel_options
=
flag
;
return
0
;
}
int32
scriptlib
::
debug_reload_field_end
(
lua_State
*
L
)
{
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
...
...
@@ -104,6 +105,7 @@ int32 scriptlib::debug_set_ai_name(lua_State *L) {
pduel
->
bufferp
+=
len
;
pduel
->
bufferlen
+=
len
;
pduel
->
write_buffer8
(
0
);
return
0
;
}
int32
scriptlib
::
debug_show_hint
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
...
...
@@ -119,4 +121,5 @@ int32 scriptlib::debug_show_hint(lua_State *L) {
pduel
->
bufferp
+=
len
;
pduel
->
bufferlen
+=
len
;
pduel
->
write_buffer8
(
0
);
return
0
;
}
ocgcore/ocgapi.cpp
View file @
44f163ae
...
...
@@ -316,6 +316,7 @@ extern "C" DECL_DLLEXPORT int32 query_field_info(ptr pduel, byte* buf) {
*
buf
++
=
ptduel
->
game_field
->
player
[
playerid
].
list_remove
.
size
();
*
buf
++
=
ptduel
->
game_field
->
player
[
playerid
].
list_extra
.
size
();
}
return
0
;
}
extern
"C"
DECL_DLLEXPORT
void
set_responsei
(
ptr
pduel
,
int32
value
)
{
((
duel
*
)
pduel
)
->
set_responsei
(
value
);
...
...
script/c13474291.lua
View file @
44f163ae
...
...
@@ -26,6 +26,7 @@ function c13474291.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
13474291
,
0
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
c13474291
.
cttg
)
...
...
system.conf
View file @
44f163ae
...
...
@@ -9,5 +9,5 @@ lastdeck = sample
textfont
=
c
:/
windows
/
fonts
/
simsun
.
ttc
14
numfont
=
c
:/
windows
/
fonts
/
arialbd
.
ttf
serverport
=
7911
lastip
=
1
92
.
168
.
3
.
235
lastip
=
1
19
.
140
.
142
.
231
lastport
=
7911
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