clean: Remove old debug, test, and backup files.

This commit is contained in:
Richard Standow 2025-12-28 16:12:00 +00:00
parent 093390aa6e
commit cefa6e31e1
4 changed files with 0 additions and 9563 deletions

View file

@ -1,48 +0,0 @@
## Grid Numbering Debug Checklist
Looking at your screenshot, I can see the hex grid is displaying but no numbers. Here's what to check:
### Step 1: Open the Style Panel (RIGHT sidebar)
I see the Layers panel on the LEFT in your screenshot, but you need the **Style** panel on the RIGHT.
**Click the "Style" tab** in the top-right area of the screen (next to "Options" and "Tools").
### Step 2: In the Style Panel:
1. From the dropdown that says "Select element", choose **"Grid"**
2. You should see these options appear:
- Type: (select "Hex grid (pointy)")
- Scale
- Shift by axes
- **☑ Show grid numbers** ← CHECK THIS BOX!
- Number size
- Number color
### Step 3: If you DON'T see "Show grid numbers" checkbox:
The JavaScript didn't load. Open browser console (F12) and check for errors:
- Press F12
- Click "Console" tab
- Look for any red error messages
- Take a screenshot and share it
### Quick JavaScript Test
Open browser console (F12) and paste this:
```javascript
// Check if the function exists
console.log("drawGridNumbers function exists:", typeof drawGridNumbers === "function");
// Check grid overlay attributes
console.log("Grid data-show-numbers:", gridOverlay.attr("data-show-numbers"));
// Manually enable grid numbering
gridOverlay.attr("data-show-numbers", "1");
gridOverlay.attr("data-number-size", "12");
gridOverlay.attr("data-number-color", "#000000");
drawGrid();
```
If this makes numbers appear, the code works but the UI isn't connected properly.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -1,63 +0,0 @@
#!/bin/bash
# Quick test script to verify grid numbering works
echo "================================"
echo "Azgaar Grid Numbering - Quick Test"
echo "================================"
echo ""
echo "The changes have been successfully applied to:"
echo " ✓ /opt/games/azgaar/index.html"
echo " ✓ /opt/games/azgaar/modules/ui/layers.js"
echo " ✓ /opt/games/azgaar/modules/ui/style.js"
echo " ✓ /opt/games/azgaar/modules/markers-generator.js"
echo ""
echo "To see the grid numbering feature:"
echo ""
echo "1. HARD REFRESH your browser:"
echo " - Firefox/Chrome: Press Ctrl+Shift+R (or Ctrl+F5)"
echo " - This clears the cache and reloads JavaScript"
echo ""
echo "2. Or close and reopen your browser completely"
echo ""
echo "3. Navigate to: file:///opt/games/azgaar/index.html"
echo ""
echo "4. Enable the Grid:"
echo " - Press 'G' key OR click 'Grid' in the layers menu"
echo ""
echo "5. Open Style Panel (right sidebar) and:"
echo " - Select 'Grid' from the dropdown"
echo " - Set Type to 'Hex grid (pointy)'"
echo " - CHECK the 'Show grid numbers' checkbox"
echo ""
echo "6. You should see numbers (0001, 0002, etc.) in each hex cell!"
echo ""
echo "================================"
echo "Checking files are in place..."
echo "================================"
# Verify grid numbering UI exists
if grep -q "styleGridShowNumbers" /opt/games/azgaar/index.html; then
echo "✓ Grid numbering UI controls found in index.html"
else
echo "✗ ERROR: Grid numbering UI controls NOT found!"
fi
# Verify grid numbering function exists
if grep -q "function drawGridNumbers" /opt/games/azgaar/modules/ui/layers.js; then
echo "✓ Grid numbering function found in layers.js"
else
echo "✗ ERROR: Grid numbering function NOT found!"
fi
# Verify fantasy icons
if [ -d "/opt/games/azgaar/images/fantasy-icons" ]; then
icon_count=$(ls -1 /opt/games/azgaar/images/fantasy-icons/*.svg 2>/dev/null | wc -l)
echo "✓ Fantasy icons directory exists with $icon_count icons"
else
echo "✗ ERROR: Fantasy icons directory NOT found!"
fi
echo ""
echo "All checks passed! The features are installed."
echo "Just hard refresh your browser (Ctrl+Shift+R)"
echo ""