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
xiaoye
mycard
Commits
0874201f
Commit
0874201f
authored
Dec 19, 2011
by
zh99998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观战基本稳定
parent
482b469c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
lib/action.rb
lib/action.rb
+1
-1
lib/main.rb
lib/main.rb
+2
-2
lib/scene_watch.rb
lib/scene_watch.rb
+11
-3
lib/window_cardinfo.rb
lib/window_cardinfo.rb
+2
-0
lib/window_roomchat.rb
lib/window_roomchat.rb
+1
-1
No files found.
lib/action.rb
View file @
0874201f
...
@@ -72,7 +72,7 @@ class Action
...
@@ -72,7 +72,7 @@ class Action
def
run
def
run
$game
.
phase
=
phase
$game
.
phase
=
phase
if
@from_player
and
phase
==
:EP
if
@from_player
and
phase
==
:EP
Game_Event
.
push
Game_Event
::
Action
.
new
(
TurnEnd
.
new
(
true
,
$game
.
player_field
,
$game
.
turn_player
?
turn
:
turn
.
next
))
Game_Event
.
push
Game_Event
::
Action
.
new
(
TurnEnd
.
new
(
true
,
$game
.
player_field
,
$game
.
turn_player
?
@turn
:
@
turn
.
next
))
end
end
super
super
end
end
...
...
lib/main.rb
View file @
0874201f
#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/scene_watch.rb
View file @
0874201f
#encoding: UTF-8
#==============================================================================
#==============================================================================
# ■ Scene_
Title
# ■ Scene_
Watch
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
#
title
#
观战
#==============================================================================
#==============================================================================
require_relative
'scene_duel'
require_relative
'scene_duel'
class
Scene_Watch
<
Scene_Duel
class
Scene_Watch
<
Scene_Duel
def
create_action_window
def
create_action_window
end
end
def
action
(
action
)
def
action
(
action
)
action
.
run
end
def
handle_game
(
event
)
case
event
when
Game_Event
::
Leave
Widget_Msgbox
.
new
(
"离开房间"
,
"观战结束"
)
{
$scene
=
Scene_Hall
.
new
}
else
super
end
end
end
end
end
lib/window_cardinfo.rb
View file @
0874201f
...
@@ -44,5 +44,7 @@ class Window_CardInfo < Window
...
@@ -44,5 +44,7 @@ class Window_CardInfo < Window
end
end
@lore_start
=
0
@lore_start
=
0
@lore_pos
=
[
0
,
234
]
@lore_pos
=
[
0
,
234
]
@font
.
draw_blended_utf8
(
@contents
,
@card
.
inspect
,
0
,
300
,
0xFF
,
0xFF
,
0x66
)
end
end
end
end
lib/window_roomchat.rb
View file @
0874201f
...
@@ -5,7 +5,7 @@ class Window_RoomChat < Window
...
@@ -5,7 +5,7 @@ class Window_RoomChat < Window
WLH
=
16
WLH
=
16
require_relative
'widget_scrollbar'
require_relative
'widget_scrollbar'
Player_Color
=
[
0
,
0
,
0xFF
]
Player_Color
=
[
0
,
0
,
0xFF
]
Opponent_Color
=
[
0
x66
,
0x66
,
0
]
Opponent_Color
=
[
0
,
0x66
,
0
]
def
initialize
(
x
,
y
,
width
,
height
)
def
initialize
(
x
,
y
,
width
,
height
)
super
(
x
,
y
,
width
,
height
-
WLH
)
super
(
x
,
y
,
width
,
height
-
WLH
)
@chat_input
=
Widget_InputBox
.
new
(
@x
,
@y
+
@height
,
@width
,
WLH
){
|
text
|
Action
::
Chat
.
new
(
true
,
text
).
run
}
@chat_input
=
Widget_InputBox
.
new
(
@x
,
@y
+
@height
,
@width
,
WLH
){
|
text
|
Action
::
Chat
.
new
(
true
,
text
).
run
}
...
...
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