Fix GameTooltip blocking issue and translate Found string

This commit is contained in:
Joan
2026-02-06 11:23:32 +01:00
parent 173d6c9117
commit 539377e63d
17 changed files with 700 additions and 222 deletions

View File

@@ -792,6 +792,8 @@ html {
line-height: 1;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
display: block;
/* Ensure consistent vertical centering regardless of cost */
margin-bottom: 0;
}
.compass-cost {
@@ -801,7 +803,12 @@ html {
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
display: block;
line-height: 1;
margin-top: 0.25rem;
/* Use absolute positioning to prevent layout shifts */
position: absolute;
bottom: 8px;
left: 0;
right: 0;
margin: 0;
}
.compass-btn:hover:not(:disabled) {
@@ -855,6 +862,81 @@ html {
}
}
.compass-center {
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.compass-center-btn {
width: 100%;
height: 100%;
border-radius: 50%;
border: 2px solid var(--game-color-primary);
background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, rgba(20, 20, 20, 0.8) 100%);
color: #fff;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.2s;
box-shadow: 0 0 15px rgba(225, 29, 72, 0.2);
padding: 0.25rem;
z-index: 2;
}
.compass-center-btn:hover:not(:disabled) {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
background: radial-gradient(circle, rgba(225, 29, 72, 0.3) 0%, rgba(30, 30, 30, 0.9) 100%);
}
.compass-center-btn:active:not(:disabled) {
transform: scale(0.95);
}
.compass-center-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
filter: grayscale(100%);
}
.center-btn-label {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
line-height: 1.1;
text-align: center;
}
.center-btn-icon {
font-size: 1.5rem;
margin-bottom: 2px;
}
/* Header Cooldown State */
.movement-controls h3.cooldown-active {
color: var(--game-color-warning);
animation: pulse-text 2s infinite;
}
@keyframes pulse-text {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
/* Cooldown indicator */
.cooldown-indicator {
text-align: center;
@@ -1008,6 +1090,7 @@ body.no-scroll {
}
.interact-btn {
width: 100%;
padding: 0.5rem 1rem;
border: none;
background: rgba(255, 193, 7, 0.3);
@@ -1896,6 +1979,12 @@ body.no-scroll {
margin: auto;
}
/* Remove .large variation to enforce uniformity */
.equipment-slot.large {
min-width: 0;
grid-column: auto;
}
.equipment-slot {
background: rgba(0, 0, 0, 0.5);
border: 2px solid rgba(255, 255, 255, 0.2);
@@ -1908,9 +1997,9 @@ body.no-scroll {
/* Changed from center to space-between */
gap: 0.25rem;
/* Fixed dimensions for consistent sizing */
min-height: 100px;
min-width: 80px;
max-width: 100%;
height: 100px;
width: 100%;
box-sizing: border-box;
transition: all 0.2s;
cursor: pointer;
overflow: visible;
@@ -1942,10 +2031,6 @@ body.no-scroll {
}
.equipment-slot.large {
min-width: 150px;
}
.equipment-slot.empty {
border-color: rgba(255, 255, 255, 0.1);
background: rgba(0, 0, 0, 0.3);
@@ -4265,4 +4350,152 @@ body.no-scroll {
border-color: #9ca3af;
box-shadow: 0 0 15px rgba(75, 85, 99, 0.3);
transform: translateY(-2px);
}
/* Pickup Action Group (Split Button) */
.pickup-actions-group {
display: flex;
align-items: stretch;
position: relative;
border-radius: 6px;
overflow: visible;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pickup-main-btn {
padding: 0.4rem 0.75rem;
background: linear-gradient(135deg, #48bb78, #38a169);
color: white;
border: none;
border-radius: 6px 0 0 6px;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
display: flex;
align-items: center;
gap: 0.4rem;
}
.pickup-main-btn:hover {
background: linear-gradient(135deg, #38a169, #2f855a);
}
.pickup-toggle-btn {
padding: 0 0.4rem;
background: linear-gradient(135deg, #48bb78, #38a169);
border: none;
border-left: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0 6px 6px 0;
color: white;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
}
.pickup-toggle-btn:hover {
background: linear-gradient(135deg, #38a169, #2f855a);
}
.pickup-dropdown {
position: absolute;
bottom: 100%;
right: 0;
background: var(--game-bg-panel);
border: 1px solid var(--game-border-color);
border-radius: 6px;
display: flex;
flex-direction: column;
min-width: 120px;
overflow: hidden;
z-index: 100;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
animation: fadeIn 0.1s ease-out;
margin-bottom: 4px;
}
.pickup-option {
padding: 0.6rem 1rem;
background: transparent;
border: none;
color: var(--game-text-primary);
text-align: left;
cursor: pointer;
font-size: 0.9rem;
transition: background 0.2s;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pickup-option:last-child {
border-bottom: none;
}
.pickup-option:hover {
background: rgba(72, 187, 120, 0.2);
color: #48bb78;
}
/* Single button variant (no split) */
.pickup-btn-single {
padding: 0.4rem 1rem;
background: linear-gradient(135deg, #48bb78, #38a169);
color: white;
border: none;
border-radius: 6px;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s;
}
.pickup-btn-single:hover {
background: linear-gradient(135deg, #38a169, #2f855a);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(56, 161, 105, 0.3);
}
/* Pickup Action Group (Row of Buttons) */
.pickup-actions-group {
display: flex;
gap: 2px;
background: rgba(0, 0, 0, 0.2);
padding: 2px;
border-radius: 6px;
border: 1px solid rgba(72, 187, 120, 0.4);
/* Green border */
align-items: center;
}
.action-btn.pickup {
background: transparent;
color: #48bb78;
/* Green text */
border: none;
padding: 0.3rem 0.6rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.action-btn.pickup:hover {
background: rgba(72, 187, 120, 0.2);
transform: translateY(-1px);
}
.action-btn.pickup.single {
/* Special styling if we want the single button to look distinct,
but keeping it consistent with group for now */
border: 1px solid rgba(72, 187, 120, 0.4);
background: rgba(72, 187, 120, 0.1);
}
.action-btn.pickup.single:hover {
background: rgba(72, 187, 120, 0.2);
}