Files
AIGame/Doc/Design/UI/Home/home_generation.json

92 lines
5.5 KiB
JSON

{
"date": "2026-10-14",
"method": "Built-in image_gen.imagegen; Unity Pipeline atlas extraction and Sprite import; JSON-to-Prefab; Unity isolated and Play Mode rendering",
"references": [
"https://play.google.com/store/apps/details?id=com.farlightgames.pgame.gp&hl=en",
"https://www.ldplayer.tw/blog/clash-of-critters-code.html",
"Doc/Design/ui_design.jpg",
"Doc/Design/UI_Design_Principles.md",
"Doc/Design/UI/UI_Themes.md"
],
"images": [
{
"source": "Doc/Design/UI/Home/home_camp_source.png",
"asset": "AIClient/Assets/Bundles/UI/Texture/Home/home_camp.png",
"transparent_background": false,
"prompt": "Use case: stylized-concept. Asset type: portrait mobile game main-home background illustration, 9:16, 1080x1920 composition. Create a polished cozy stylized 3D cartoon town camp in the casual candy-game style: rounded cream cottages with orange-red tiled roofs and tiny yellow-striped shop awnings, emerald rounded trees, warm stone paths, a small blue fountain at the center, a wooden bench and flower beds, a cute small white-and-orange cat and a tiny explorer with teal goggles interacting in the clearing. Charming miniature diorama, hand-painted toy-like materials, soft sunlight, outlined details, optimistic afternoon atmosphere. High oblique orthographic camera angle. Center the cottages at x50%, y35-50%, fountain and cat in the middle at y55-65%. Environment fills the whole frame with grass and garden paths towards all edges; no floating island. Keep the top 20% quiet pale blue sky with soft distant hills so resource UI can overlay; keep outer left and right 15% of frame low-detail so menu icons can overlay; keep bottom 25% quiet soft grass for large overlay action panel. Color palette sky #EAF3F8, warm cream #F6EBCF, leaf green #7ED321, water cyan #46C8E6, honey gold accents. A fully finished professional mobile game environment illustration with crisp readable volumes. NO UI elements, NO cards, NO borders, NO text, NO numbers, NO labels, NO watermarks, NO logos. Original scene, original characters."
},
{
"source": "Doc/Design/UI/Home/home_icons_source.png",
"assets": "AIClient/Assets/Bundles/UI/Texture/Home/home_ico_*.png",
"transparent_background": true,
"grid": [
4,
4
],
"order": [
"coin",
"diamond",
"energy",
"avatar",
"tasks",
"gift",
"mail",
"trophy",
"bag",
"home",
"battle",
"pets",
"chest",
"calendar",
"settings",
"pinball"
],
"prompt": "Use case: stylized-concept. Asset type: a single sprite sheet for a casual candy-style mobile game HUD, 4 by 4 grid of SIXTEEN isolated inventory icons on a genuinely transparent background. Exact grid order: first row gold coin with star embossing, cyan faceted diamond, green lightning energy bolt, cute orange-and-white cat explorer avatar wearing teal goggles; second row parchment checklist task scroll, wrapped pink-and-gold gift box, blue envelope letter, golden trophy cup; third row blue-purple adventure backpack, wooden cream-roof cottage with orange tiles, crossed silver sword and round blue shield, open leather illustrated pet collection book; fourth row golden treasure chest, calendar with green check, silver cog settings gear, glossy turquoise pinball glass orb with a gold star inside. Consistent polished 3D hand-painted cartoon inventory item rendering, rounded forms, thick colored outlines, cream highlights, gentle short soft shadows, matching a casual fantasy toy-town game UI. All icons single recognizable objects in same visual language, no UI buttons or frames. Straight-on / three-quarter views, centered in each equal cell with generous transparent margins. Each cell 256x256 in a 1024x1024 sheet; each object occupies about 170x170 with all edges fully contained, no overlap between cells. No text, no letters, no numbers, no words, no watermark, no logo. Transparent background, no white backing or checkerboard."
}
],
"ui": {
"json_generator": "Tools/generate_home_ui.py",
"unity_builder": "AIClient/AgentScripts/BuildHomeUi.cs",
"prefabs": [
"UI_MainHUD"
],
"referenceResolution": [
1080,
1920
],
"nodesPerTheme": 83,
"eventsPerTheme": 19,
"data": "Currency, level, task, chapter and rewards are design examples; feature buttons show existing dialog feedback until actual gameplay is connected. Network status and reconnection use the existing live implementation.",
"background": "Original static camp illustration; not a new interactive 3D scene."
},
"validation": {
"unityCompile": "completed",
"homeChecks": 310,
"existingThemeChecks": 52,
"resourceCollection": "6 UI prefab addresses and font/sprite dependencies verified",
"live": "8 feature entries and home tab passed EventSystem raycasts and Bootstrap dialog feedback at 1080x1920",
"previews": [
"UI_MainHUD.png",
"UI_MainHUD_tall.png",
"UI_MainHUD_reconnect.png"
],
"liveScreenshot": "AIClient/Assets/Screenshots/home_live.png",
"scene": "Boot restored in Edit Mode, clean; previous Game View size restored",
"notRun": [
"Player build",
"mobile device validation",
"CDN deployment"
]
},
"themeRemoval": {
"date": "2026-10-14",
"activeTheme": "candy",
"removed": [
"Studio",
"Mint",
"ThemeSwitcher"
],
"note": "Earlier multi-theme checks are historical; current builder only generates Candy."
}
}