Add hex grid to lobby rules editor; fix hex model/texture CDN loading

- rules_editor_dialog: add "Hexagon" to Board Shape picker and a Hex Sides
  spinner (3–10, default 5) so custom lobbies can configure hex boards
- game_screen _add_tile: has_model check now looks for Hex-shape CDN models
  (falls back to Square), so hex tiles get height variance when a Hex model is
  registered on the CDN instead of always using the flat placeholder height
- game_screen _try_load_tile_model: texture fallback now checks shape_key
  ("Hex") first, then falls back to "Square" — consistent with model loading

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-04-01 17:16:22 -04:00
co-authored by Claude Happy
parent f85894bd81
commit 1bd26f11be
2 changed files with 8 additions and 3 deletions
@@ -116,7 +116,8 @@ func _build_fields(r: Dictionary) -> void:
add_int.call("Board Width", "boardWidth", 3, 12, 6, "")
add_int.call("Board Height", "boardHeight", 3, 12, 6, "")
add_int.call("Starting Tile Affinity %","startingRandomTilePct",0, 100, 0, "% of tiles with a random basic affinity")
add_option.call("Board Shape", "boardShape", ["Default", "Rectangle", "Cross", "Triangular", "RadialStar", "HexRing"], "Default")
add_option.call("Board Shape", "boardShape", ["Default", "Rectangle", "Cross", "Triangular", "RadialStar", "HexRing", "Hexagon"], "Default")
add_int.call("Hex Sides", "hexSides", 3, 10, 5, "Hexagon board only: number of tiles per side (3–10)")
# Board template picker — populate from BoardTemplateCache (GUID values, not labels).
var tmpl_key := "boardTemplateIdOverride"