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
0874201f
Commit
0874201f
authored
Dec 19, 2011
by
zh99998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观战基本稳定
parent
482b469c
Changes
5
Hide 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
def
run
$game
.
phase
=
phase
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
super
end
...
...
lib/main.rb
View file @
0874201f
#encoding: UTF-8
=begin
alias gbk_puts puts
def puts(*args)
gbk_puts(*(args.collect{|item|item.encode "GBK", :invalid => :replace, :undef => :replace}))
...
...
@@ -8,7 +8,7 @@ end
def p(*args)
print(args.collect{|item|item.inspect.encode "GBK", :invalid => :replace, :undef => :replace}.join("\n")+"\n") rescue print(args.join("\n")+"\n")
end
=end
def
filesize_inspect
(
size
)
case
size
when
0
...
1024
...
...
lib/scene_watch.rb
View file @
0874201f
#encoding: UTF-8
#==============================================================================
# ■ Scene_
Title
# ■ Scene_
Watch
#------------------------------------------------------------------------------
#
title
#
观战
#==============================================================================
require_relative
'scene_duel'
class
Scene_Watch
<
Scene_Duel
def
create_action_window
end
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
lib/window_cardinfo.rb
View file @
0874201f
...
...
@@ -44,5 +44,7 @@ class Window_CardInfo < Window
end
@lore_start
=
0
@lore_pos
=
[
0
,
234
]
@font
.
draw_blended_utf8
(
@contents
,
@card
.
inspect
,
0
,
300
,
0xFF
,
0xFF
,
0x66
)
end
end
lib/window_roomchat.rb
View file @
0874201f
...
...
@@ -5,7 +5,7 @@ class Window_RoomChat < Window
WLH
=
16
require_relative
'widget_scrollbar'
Player_Color
=
[
0
,
0
,
0xFF
]
Opponent_Color
=
[
0
x66
,
0x66
,
0
]
Opponent_Color
=
[
0
,
0x66
,
0
]
def
initialize
(
x
,
y
,
width
,
height
)
super
(
x
,
y
,
width
,
height
-
WLH
)
@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