Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Merge requests
!230
Ree/games fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ree/games fixes
ree/games-fixes
into
master
Overview
0
Commits
3
Pipelines
1
Changes
1
Merged
Rick Parrish
requested to merge
ree/games-fixes
into
master
2 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
A few more tweaks to the Games page:
If the menubar has been enabled in the settings, then show it, and hide the Connect button instead.
If the user has already selected a screen size >= 35 rows, then don't resize to 80x35 for minesweeper
Shrink the font if the new 35 row client is too tall for the browser window
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
12316116
3 commits,
2 years ago
1 file
+
13
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
webv4/pages/003-games.xjs
+
13
−
2
Options
@@ -25,7 +25,11 @@
?>
<?
xjs
if
(
settings
.
ftelnet_menubar
)
{
?>
<style>
.fTelnetConnectButton
{
display
:
none
;
}
</style>
<?
xjs
}
else
{
?>
<style>
.fTelnetStatusBar
{
display
:
none
;
}
</style>
<?
xjs
}
?>
<a
name=
"fTelnet"
></a>
<div
id=
"fTelnetContainer"
class=
"fTelnetContainer"
style=
"margin-bottom:1em;"
></div>
@@ -86,8 +90,15 @@
$
(
a
).
text
(
xx
.
n
);
$
(
a
).
click
(
function
(
evt
)
{
if
(
xx
.
c
.
toLowerCase
()
===
'
msweeper
'
)
{
// Resize client to support a level 5 game of minesweeper
fTelnet
.
Crt
.
SetScreenSize
(
80
,
35
);
// Resize client to support a level 5 game of minesweeper, if necessary
if
(
fTelnet
.
Crt
.
ScreenRows
<
35
)
{
// Switch to 80x35, which fits a full level 5.0 game
fTelnet
.
Crt
.
SetScreenSize
(
80
,
35
);
// Call SetFont, which will switch to a smaller font if the new 35 row
// client is too tall for the browser window
fTelnet
.
Crt
.
SetFont
(
fTelnet
.
Crt
.
Font
.
Name
);
}
}
launchXtrn
(
xx
.
c
);
});
Loading