Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
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
Nemo Ma
phpdts
Commits
9d3d5dec
Commit
9d3d5dec
authored
Feb 13, 2023
by
hisuinohoshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bgmplayer on PHP5.6
但是还有必要吗……?
parent
a49a09c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
+12
-17
gamedata/cache/style_20190718.css
gamedata/cache/style_20190718.css
+4
-4
include/game.func.php
include/game.func.php
+8
-13
No files found.
gamedata/cache/style_20190718.css
View file @
9d3d5dec
...
...
@@ -28,10 +28,10 @@ input {cursor: crosshair;}
.mapspanred
{
color
:
#f00
;
position
:
relative
;
font-size
:
9pt
;
line-height
:
16px
}
.mapspanlime
{
color
:
#0f0
;
position
:
relative
;
font-size
:
9pt
;
line-height
:
16px
}
.mapspanyellow
{
color
:
#ff0
;
position
:
relative
;
font-size
:
9pt
;
line-height
:
16px
}
.minimapspanclan
{
color
:
#00ffff
;
position
:
relative
;
font
:
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanred
{
color
:
#f00
;
position
:
relative
;
font
:
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanlime
{
color
:
#0f0
;
position
:
relative
;
font
:
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanyellow
{
color
:
#ff0
;
position
:
relative
;
font
:
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanclan
{
color
:
#00ffff
;
position
:
relative
;
font
:
bold
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanred
{
color
:
#f00
;
position
:
relative
;
font
:
bold
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanlime
{
color
:
#0f0
;
position
:
relative
;
font
:
bold
7pt
"微软雅黑"
;
line-height
:
14px
}
.minimapspanyellow
{
color
:
#ff0
;
position
:
relative
;
font
:
bold
7pt
"微软雅黑"
;
line-height
:
14px
}
.b1
span
{
position
:
relative
;}
.b2
span
{
position
:
relative
;}
...
...
include/game.func.php
View file @
9d3d5dec
...
...
@@ -541,7 +541,7 @@ function init_bgm($force_update=0)
# 生成播放器与播放队列 太野蛮了……嘻嘻……
if
(
!
empty
(
$bgmlink
)
&&
!
empty
(
$bgmtype
))
{
$bgmplayer
=
<<<EOT
$bgmplayer
=
<<<EOT
<audio id="gamebgm" autoplay controls onplay="$('gamebgm').volume=$volume_r;" onplaying="$('gamebgm').volume=$volume_r;">
<source id="gbgm" src="$bgmlink" type="$bgmtype">
</audio>
...
...
@@ -555,11 +555,9 @@ function init_bgm($force_update=0)
EOT;
foreach
(
$bgmarr
as
$bgmid2
=>
$bgms
)
{
$bgmplayer
.=
<<<EOT
<div id="bnm{$bgmid2}">{$bgms['name']}</div>
<div id="bgm{$bgmid2}">{$bgms['url']}</div>
<div id="bt{$bgmid2}">{$bgms['type']}</div>
EOT;
$bgmplayer
.=
"<div id=
\"
bnm
{
$bgmid2
}
\"
>
{
$bgms
[
'name'
]
}
</div>
<div id=
\"
bgm
{
$bgmid2
}
\"
>
{
$bgms
[
'url'
]
}
</div>
<div id=
\"
bt
{
$bgmid2
}
\"
>
{
$bgms
[
'type'
]
}
</div>"
;
}
}
return
$bgmplayer
;
...
...
@@ -572,8 +570,8 @@ EOT;
function
init_mapdata
(){
global
$pls
,
$plsinfo
,
$xyinfo
,
$hack
,
$arealist
,
$areanum
,
$areaadd
;
global
$mapcontent
;
$mpp
=
Array
();
$mapvcoordinate
=
Array
(
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
);
for
(
$i
=
0
;
$i
<
count
(
$plsinfo
);
$i
++
)
{
...
...
@@ -587,9 +585,8 @@ function init_mapdata(){
$position
=
explode
(
'-'
,
$xyinfo
[
$i
]);
$mpp
[
$position
[
0
]][
$position
[
1
]]
=
$i
;
}
$mapcontent
=
<<<EOT
<TABLE border="1" cellspacing="0" cellpadding="0" background="map/neomap.jpg" style="padding-left: 5px; float:left;background-size:478px 418px;position:relative;background-repeat:no-repeat;background-position:right bottom;">
EOT;
$mapcontent
=
'<TABLE border="1" cellspacing="0" cellpadding="0" background="map/neomap.jpg" style="padding-left: 5px; float:left;background-size:478px 418px;position:relative;background-repeat:no-repeat;background-position:right bottom;">'
;
$mapcontent
.=
'<TR align="center"><TD colspan="11" height="24" class=b1 align=center>战场地图</TD></TR>'
;
$mapcontent
.=
'<TR align="center">
<TD width="42" height="36" class=map align=center><div class=nttx>坐标</div></TD>'
;
...
...
@@ -603,9 +600,7 @@ EOT;
for
(
$j
=
1
;
$j
<=
10
;
$j
++
){
if
(
isset
(
$mpp
[
$mapvcoordinate
[
$i
]][
$j
]))
{
$mapcontent
.=
<<<EOT
<td width="42" height="36" class="map2" align=middle><a onclick="closeDialog($('terminal'));$('mode').value='command';$('command').value='move';$('moveto').value='{$mpp[$mapvcoordinate[$i]][$j]}';postCmd('gamecmd','command.php');this.disabled=true;"><span class="{$plscolor[$mpp[$mapvcoordinate[$i]][$j]]}">{$plsinfo[$mpp[$mapvcoordinate[$i]][$j]]}</span></a></td>
EOT;
$mapcontent
.=
"<td width=
\"
42
\"
height=
\"
36
\"
class=
\"
map2
\"
align=
\"
middle
\"
><a onclick=
\"
closeDialog($('terminal'));$('mode').value='command';$('command').value='move';$('moveto').value='
{
$mpp
[
$mapvcoordinate
[
$i
]][
$j
]
}
';postCmd('gamecmd','command.php');this.disabled=true;
\"
><span class=
\"
{
$plscolor
[
$mpp
[
$mapvcoordinate
[
$i
]][
$j
]]
}
\"
>
{
$plsinfo
[
$mpp
[
$mapvcoordinate
[
$i
]][
$j
]]
}
</span></a></td>"
;
}
else
{
$mapcontent
.=
'<td width="42" height="36" class="map2" align=middle><IMG src="map/blank.gif" width="42" height="36" border=0></td>'
;
}
...
...
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