Skip to content

Commit 54b4aab

Browse files
committed
Added the neccesary features for Play-Only-Mode
Signed-off-by: Justin Charles <charlesjustin2124@gmail.com>
1 parent bbc7918 commit 54b4aab

File tree

2 files changed

+69
-6
lines changed

2 files changed

+69
-6
lines changed

css/play-only-mode.css

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,79 @@
118118
}
119119

120120
@media (max-width: 768px), (max-height: 600px) {
121-
/* Enable the auxiliary button */
122121
.play-only #toggleAuxBtn {
123122
pointer-events: auto !important;
124123
opacity: 1 !important;
125124
}
126125

127-
/* Hide the full auxiliary toolbar */
128-
.play-only #aux-toolbar {
129-
display: none !important;
126+
.play-only #enableHorizScrollIcon {
127+
display: none !important;
128+
visibility: hidden !important;
129+
height: 0 !important;
130+
width: 0 !important;
131+
pointer-events: none !important;
132+
overflow: hidden !important;
133+
}
134+
135+
.play-only #mergeWithCurrentIcon {
136+
display: none !important;
137+
visibility: hidden !important;
138+
height: 0 !important;
139+
width: 0 !important;
140+
pointer-events: none !important;
141+
overflow: hidden !important;
142+
}
143+
144+
.play-only #wrapTurtle {
145+
display: none !important;
146+
visibility: hidden !important;
147+
height: 0 !important;
148+
width: 0 !important;
149+
pointer-events: none !important;
150+
overflow: hidden !important;
151+
}
152+
153+
.play-only #chooseKeyIcon {
154+
display: none !important;
155+
visibility: hidden !important;
156+
height: 0 !important;
157+
width: 0 !important;
158+
pointer-events: none !important;
159+
overflow: hidden !important;
130160
}
161+
162+
.play-only #advancedMode {
163+
display: none !important;
164+
visibility: hidden !important;
165+
height: 0 !important;
166+
width: 0 !important;
167+
pointer-events: none !important;
168+
overflow: hidden !important;
169+
}
170+
171+
.play-only [id="activity.textMsg"] {
172+
position: fixed !important;
173+
top: 50% !important;
174+
left: 50% !important;
175+
transform: translate(-50%, -50%) !important;
176+
max-width: 80% !important;
177+
padding: 12px 18px !important;
178+
background: rgba(33, 150, 243, 0.95) !important;
179+
color: #fff !important;
180+
text-align: center !important;
181+
border-radius: 8px !important;
182+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
183+
font-size: 16px !important;
184+
z-index: 10000 !important;
185+
pointer-events: none !important;
186+
display: flex !important;
187+
justify-content: center !important;
188+
align-items: center !important;
189+
}
190+
191+
131192
}
132193

133-
/* Make the container background invisible without affecting child elements */
134194
.play-only #buttoncontainerBOTTOM {
135195
background: transparent !important;
136196
border: none !important;
@@ -140,7 +200,6 @@
140200
box-shadow: none !important;
141201
}
142202

143-
/* Ensure the Home button remains visible */
144203
.play-only #Home\ \[HOME\] {
145204
display: flex !important;
146205
position: fixed !important;

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,10 @@
953953
if (isSmallScreen) {
954954
// Enable play-only mode
955955
body.classList.add("play-only");
956+
if (typeof activity !== "undefined" && activity._setScroller) {
957+
activity._setScroller();
958+
}
959+
956960
showPersistentNotification();
957961

958962
if (buttonContainer) {

0 commit comments

Comments
 (0)