Spaces:
Sleeping
Sleeping
fix: Star character always labeled 'HuggingClaw' in all offices
Browse filesStar (lobster cat) represents HuggingClaw across all Office spaces.
Adam and Eve appear as guest visitors, not as the main character.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
frontend/electron-standalone.html
CHANGED
|
@@ -4978,22 +4978,14 @@ function toggleBrokerPanel() {
|
|
| 4978 |
star.setVisible(true);
|
| 4979 |
star.anims.play('star_idle', true);
|
| 4980 |
|
| 4981 |
-
// Name label above Star character
|
| 4982 |
-
window._starNameLabel = game.add.text(areas.breakroom.x, areas.breakroom.y - 140, '', {
|
| 4983 |
fontFamily: 'ArkPixel, monospace',
|
| 4984 |
fontSize: '15px',
|
| 4985 |
fill: '#ffffff',
|
| 4986 |
stroke: '#000',
|
| 4987 |
strokeThickness: 3
|
| 4988 |
}).setOrigin(0.5).setDepth(25);
|
| 4989 |
-
// Update name when office state is fetched
|
| 4990 |
-
function updateStarName() {
|
| 4991 |
-
const name = (window.officeNameFromServer || '').replace(/'s Office$/i, '');
|
| 4992 |
-
if (name && window._starNameLabel) window._starNameLabel.setText(name);
|
| 4993 |
-
}
|
| 4994 |
-
updateStarName();
|
| 4995 |
-
// Re-check periodically (state fetch updates officeNameFromServer)
|
| 4996 |
-
setInterval(updateStarName, 3000);
|
| 4997 |
|
| 4998 |
// Sofa stays static when idle (no longer the main idle animation)
|
| 4999 |
sofa.anims.stop();
|
|
|
|
| 4978 |
star.setVisible(true);
|
| 4979 |
star.anims.play('star_idle', true);
|
| 4980 |
|
| 4981 |
+
// Name label above Star character — Star is always HuggingClaw
|
| 4982 |
+
window._starNameLabel = game.add.text(areas.breakroom.x, areas.breakroom.y - 140, 'HuggingClaw', {
|
| 4983 |
fontFamily: 'ArkPixel, monospace',
|
| 4984 |
fontSize: '15px',
|
| 4985 |
fill: '#ffffff',
|
| 4986 |
stroke: '#000',
|
| 4987 |
strokeThickness: 3
|
| 4988 |
}).setOrigin(0.5).setDepth(25);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4989 |
|
| 4990 |
// Sofa stays static when idle (no longer the main idle animation)
|
| 4991 |
sofa.anims.stop();
|