Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
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
syntax_j
mycard
Commits
82f8b9d2
Commit
82f8b9d2
authored
Nov 20, 2011
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正几个require_relative的bug
parent
b55bdf98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
lib/main.rb
lib/main.rb
+2
-2
lib/window_chat.rb
lib/window_chat.rb
+1
-1
lib/window_field.rb
lib/window_field.rb
+3
-5
No files found.
lib/main.rb
View file @
82f8b9d2
#encoding: UTF-8
#encoding: UTF-8
=begin
alias
gbk_puts
puts
alias
gbk_puts
puts
def
puts
(
*
args
)
def
puts
(
*
args
)
gbk_puts
(
*
(
args
.
collect
{
|
item
|
item
.
encode
"GBK"
,
:invalid
=>
:replace
,
:undef
=>
:replace
}))
gbk_puts
(
*
(
args
.
collect
{
|
item
|
item
.
encode
"GBK"
,
:invalid
=>
:replace
,
:undef
=>
:replace
}))
...
@@ -8,7 +8,7 @@ end
...
@@ -8,7 +8,7 @@ end
def
p
(
*
args
)
def
p
(
*
args
)
print
(
args
.
collect
{
|
item
|
item
.
inspect
.
encode
"GBK"
,
:invalid
=>
:replace
,
:undef
=>
:replace
}.
join
(
"
\n
"
)
+
"
\n
"
)
rescue
print
(
args
.
join
(
"
\n
"
)
+
"
\n
"
)
print
(
args
.
collect
{
|
item
|
item
.
inspect
.
encode
"GBK"
,
:invalid
=>
:replace
,
:undef
=>
:replace
}.
join
(
"
\n
"
)
+
"
\n
"
)
rescue
print
(
args
.
join
(
"
\n
"
)
+
"
\n
"
)
end
end
=end
def
filesize_inspect
(
size
)
def
filesize_inspect
(
size
)
case
size
case
size
when
0
...
1024
when
0
...
1024
...
...
lib/window_chat.rb
View file @
82f8b9d2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#==============================================================================
#==============================================================================
class
Window_Chat
<
Window
class
Window_Chat
<
Window
require
'widget_scrollbar'
require
_relative
'widget_scrollbar'
User_Color
=
[
0
,
0
,
0xFF
]
User_Color
=
[
0
,
0
,
0xFF
]
Text_Color
=
[
0
,
0
,
0
]
Text_Color
=
[
0
,
0
,
0
]
def
initialize
(
x
,
y
,
width
,
height
)
def
initialize
(
x
,
y
,
width
,
height
)
...
...
lib/window_field.rb
View file @
82f8b9d2
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
#==============================================================================
#==============================================================================
class
Window_Field
<
Window
class
Window_Field
<
Window
require
'card'
require
_relative
'card'
require
'window_action'
require
_relative
'window_action'
require
'window_cardinfo'
require
_relative
'window_cardinfo'
Field_Pos
=
[[
56
,
0
],
#场地魔法
Field_Pos
=
[[
56
,
0
],
#场地魔法
[
140
,
84
],
[
234
,
84
],
[
328
,
84
],[
422
,
84
],
[
516
,
84
],
#后场
[
140
,
84
],
[
234
,
84
],
[
328
,
84
],[
422
,
84
],
[
516
,
84
],
#后场
[
140
,
0
],
[
234
,
0
],
[
328
,
0
],[
422
,
0
],
[
516
,
0
]]
#前场
[
140
,
0
],
[
234
,
0
],
[
328
,
0
],[
422
,
0
],
[
516
,
0
]]
#前场
...
@@ -31,8 +31,6 @@ class Window_Field < Window
...
@@ -31,8 +31,6 @@ class Window_Field < Window
refresh
refresh
end
end
def
refresh
def
refresh
p
$scene
.
player_field
.
field
[
0
]
rescue
nil
p
$scene
.
opponent_field
.
field
[
0
]
rescue
nil
$scene
.
fieldback_window
.
card
=
$scene
.
player_field
.
field
[
0
]
||
$scene
.
opponent_field
.
field
[
0
]
rescue
nil
$scene
.
fieldback_window
.
card
=
$scene
.
player_field
.
field
[
0
]
||
$scene
.
opponent_field
.
field
[
0
]
rescue
nil
@items
.
clear
@items
.
clear
@cards
.
clear
@cards
.
clear
...
...
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