This commit is contained in:
2026-04-26 01:45:26 +03:00
parent 8fd711f5a1
commit b577c95f7c
4 changed files with 47 additions and 35 deletions

View File

@@ -77,7 +77,7 @@ window.updateClientStatus = function(online) {
el.className = 'conn-badge offline';
}
// Enable/disable the Send button
const btn = document.querySelector('#command-form-wrap .btn-gold');
const btn = document.getElementById('btn-send');
if (btn) {
btn.disabled = !online;
btn.title = online ? '' : 'Script is offline — cannot send commands';

View File

@@ -12,7 +12,7 @@ window.onCmdTypeChange = function() {
};
// Building emoji icons for the visual grid
const BUILDING_ICONS = {
window.BUILDING_ICONS = {
main: '🏛️', storage: '🏚️', farm: '🌾', academy: '📜',
temple: '⛩️', barracks: '⚔️', docks: '⚓', market: '🛒',
hide: '🕳️', lumber: '🪵', stoner: '🪨', ironer: '⛏️', wall: '🧱'
@@ -35,7 +35,7 @@ window.openBuildingModal = function() {
grid.innerHTML = Object.entries(window.BUILDING_NAMES_GR).map(([key, nameGr]) => {
const level = bLevels[key] !== undefined ? bLevels[key] : '?';
const data = bData[key];
const icon = BUILDING_ICONS[key] || '🏗️';
const icon = window.BUILDING_ICONS[key] || '🏗️';
const isSelected = key === window.selectedBuildingId;
if (!data) {