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
17be1c26
Commit
17be1c26
authored
Dec 24, 2011
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP条追加用户名显示
parent
356ba08a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
lib/window_lp.rb
lib/window_lp.rb
+6
-9
No files found.
lib/window_lp.rb
View file @
17be1c26
...
@@ -4,17 +4,21 @@ class Window_LP < Window
...
@@ -4,17 +4,21 @@ class Window_LP < Window
super
(
x
,
y
,
360
,
72
)
super
(
x
,
y
,
360
,
72
)
@player
=
player
@player
=
player
@position
=
position
@position
=
position
@font
=
TTF
.
open
(
"fonts/WenQuanYi Micro Hei.ttf"
,
2
4
)
@font
=
TTF
.
open
(
"fonts/WenQuanYi Micro Hei.ttf"
,
2
0
)
@color
=
[
255
,
255
,
255
]
@color
=
[
255
,
255
,
255
]
if
@player
if
@player
@player
.
avatar
do
|
avatar
|
@player
.
avatar
do
|
avatar
|
clear
(
position
?
0
:
@width
-
Avatar_Size
,
24
,
Avatar_Size
,
Avatar_Size
)
clear
(
position
?
0
:
@width
-
Avatar_Size
,
24
,
Avatar_Size
,
Avatar_Size
)
@contents
.
put
avatar
,
position
?
0
:
@width
-
Avatar_Size
,
24
@contents
.
put
avatar
,
position
?
0
:
@width
-
Avatar_Size
,
24
end
end
if
@position
@font
.
draw_solid_utf8
(
@contents
,
@player
.
name
,
Avatar_Size
,
24
,
*
@color
)
else
@font
.
draw_solid_utf8
(
@contents
,
@player
.
name
,
@width
-
Avatar_Size
-
96
,
24
,
*
@color
)
end
end
end
self
.
lp
=
8000
self
.
lp
=
8000
end
end
def
lp
=
(
lp
)
def
lp
=
(
lp
)
return
if
lp
==
@lp
return
if
lp
==
@lp
@lp
=
lp
@lp
=
lp
...
@@ -27,11 +31,4 @@ class Window_LP < Window
...
@@ -27,11 +31,4 @@ class Window_LP < Window
@font
.
draw_blended_utf8
(
@contents
,
@lp
.
to_s
,
@width
-
width
-
64
,
0
,
*
@color
)
@font
.
draw_blended_utf8
(
@contents
,
@lp
.
to_s
,
@width
-
width
-
64
,
0
,
*
@color
)
end
end
end
end
#def draw_item(player)
# if player == @player
#
# end
#
# end
end
end
\ No newline at end of file
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