koishi-plugin-dew-bot 1.0.266 → 1.0.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/assets/character/README.md +17 -0
  2. package/assets/character/meadow-v1.webp +0 -0
  3. package/assets/character/platform-v1.webp +0 -0
  4. package/assets/item-card/list-artwork-placeholder.png +0 -0
  5. package/assets/item-card/list-artwork-placeholder.prompt.txt +3 -0
  6. package/assets/leaderboard/README.md +5 -9
  7. package/assets/pet/chibi-fox-v1.prompt.txt +1 -0
  8. package/assets/pet/chibi-fox-v1.webp +0 -0
  9. package/lib/index.js +1731 -676
  10. package/lib/plugin/cardEntryArtwork.d.ts +1 -1
  11. package/lib/plugin/characterCardAssets.d.ts +0 -2
  12. package/lib/plugin/characterCardStyles.d.ts +1 -1
  13. package/lib/plugin/characterCardTemplate.d.ts +1 -1
  14. package/lib/plugin/characterPlatformAsset.d.ts +2 -0
  15. package/lib/plugin/characterSceneAsset.d.ts +3 -0
  16. package/lib/plugin/companionCardAssets.d.ts +1 -1
  17. package/lib/plugin/companionCardTemplate.d.ts +1 -0
  18. package/lib/plugin/formatCombatPower.d.ts +1 -2
  19. package/lib/plugin/formatNumber.d.ts +4 -0
  20. package/lib/plugin/inlineArtwork.d.ts +2 -0
  21. package/lib/plugin/itemCardTemplate.d.ts +1 -1
  22. package/lib/plugin/leaderboardTemplate.d.ts +9 -2
  23. package/lib/plugin/paperDollPortrait.d.ts +25 -0
  24. package/lib/plugin/paperDollRenderer.d.ts +74 -0
  25. package/lib/plugin/petCardStyles.d.ts +2 -0
  26. package/lib/plugin/petPortraitAsset.d.ts +2 -0
  27. package/lib/plugin/serverHandel/qqImageMessage.d.ts +4 -0
  28. package/lib/plugin/serverHandel/qqPageMessage.d.ts +4 -3
  29. package/lib/plugin/skillCard.d.ts +1 -2
  30. package/lib/shared/bot/pageNavigation.d.ts +14 -0
  31. package/lib/shared/face/index.d.ts +63 -19
  32. package/package.json +2 -1
  33. package/src/index.ts +1 -1
  34. package/src/plugin/bloodlineCardTemplate.ts +2 -5
  35. package/src/plugin/cardEntryArtwork.ts +10 -6
  36. package/src/plugin/cardLayout.ts +272 -137
  37. package/src/plugin/characterCardAssets.ts +1 -12
  38. package/src/plugin/characterCardStyles.ts +14 -2
  39. package/src/plugin/characterCardTemplate.ts +35 -6
  40. package/src/plugin/characterPlatformAsset.ts +2 -0
  41. package/src/plugin/characterSceneAsset.ts +3 -0
  42. package/src/plugin/companionCardAssets.ts +2 -8
  43. package/src/plugin/companionCardTemplate.ts +29 -1
  44. package/src/plugin/detailCardTemplate.ts +2 -2
  45. package/src/plugin/formatCombatPower.ts +1 -12
  46. package/src/plugin/formatNumber.ts +27 -0
  47. package/src/plugin/inlineArtwork.ts +16 -0
  48. package/src/plugin/itemCardTemplate.ts +3 -5
  49. package/src/plugin/leaderboardTemplate.ts +80 -27
  50. package/src/plugin/paperDollPortrait.ts +167 -0
  51. package/src/plugin/paperDollRenderer.ts +329 -0
  52. package/src/plugin/petCardStyles.ts +39 -0
  53. package/src/plugin/petPortraitAsset.ts +2 -0
  54. package/src/plugin/serverHandel/handel_base.ts +3 -3
  55. package/src/plugin/serverHandel/image.ts +66 -53
  56. package/src/plugin/serverHandel/imageMessageFollowup.ts +4 -7
  57. package/src/plugin/serverHandel/qqCommandMessage.ts +46 -10
  58. package/src/plugin/serverHandel/qqImageMessage.ts +55 -0
  59. package/src/plugin/serverHandel/qqMessagePreview.ts +2 -1
  60. package/src/plugin/serverHandel/qqPageMessage.ts +58 -53
  61. package/src/plugin/serverHandel/qqStoryMessage.ts +6 -2
  62. package/src/plugin/serverHandel/qqTransactionMessage.ts +3 -3
  63. package/src/plugin/serverHandel/text.ts +29 -30
  64. package/src/plugin/skillCard.ts +272 -243
  65. package/src/shared/bot/analysisMsg.ts +74 -52
  66. package/src/shared/bot/pageNavigation.ts +56 -0
  67. package/src/shared/bot/serviceProto.ts +366 -93
  68. package/src/shared/face/index.ts +300 -269
  69. package/assets/leaderboard/header.svg +0 -1
  70. package/lib/plugin/appearanceCardTemplate.d.ts +0 -3
  71. package/src/plugin/appearanceCardTemplate.ts +0 -7
  72. package/src/plugin/serverHandel/titleCardMessage.ts +0 -25
  73. package/src/plugin/titleCardStyles.ts +0 -121
  74. package/src/plugin/titleCardTemplate.ts +0 -85
@@ -0,0 +1,17 @@
1
+ # 角色场景与站台
2
+
3
+ `meadow-v1.webp` 是纸娃娃竖版属性卡的自然场景,使用内置 Image Gen 生成,再等比缩小为 600×800 WebP。背景底部留有淡雾,由模板中的渐变衔接下方数据区。人物、装备圈、文字和进度条均由代码叠加。
4
+
5
+ 生成提示词:
6
+
7
+ > Use case: stylized-concept. Asset type: background artwork for a portrait 2D fantasy RPG character screen. Paint a peaceful natural adventure scene: soft blue sky with a few rounded white clouds, distant pale blue cliffs and rolling hills, and a sunlit green meadow with a broad empty clearing at the lower center where a small pixel character and its stone dais will be composited by code. Friendly classic RPG environment art, softly hand-painted, clean simplified shapes and restrained detail, gentle daylight. Portrait 3:4 composition. Center 65 percent of width must stay calm and uncluttered for the character and equipment UI; flowers and small foliage confined to far outer edges, no tall objects in the center. The bottom quarter gently becomes pale warm mist with very little detail to blend into a data panel below. Background only, edge-to-edge environment. No character, creature, weapon, platform, architecture, icons, panels, circles, UI frames, lettering, numbers, logo or watermark.
8
+
9
+ `src/plugin/characterSceneAsset.ts` 嵌入该背景及现有未知装备图标,使预览与机器人使用同一素材。替换背景时需同步嵌入常量。
10
+
11
+ `platform-v1.webp` 是透明纸娃娃属性卡的空站台。使用内置 Image Gen 生成,保留透明通道,随后仅做等比缩小和无损 WebP 编码,尺寸为 480×160。
12
+
13
+ 生成提示词:
14
+
15
+ > Use case: stylized-concept. Asset type: transparent game UI platform sprite for a paper-doll character attribute card. Create ONE empty low circular stone display dais, seen from a gentle front elevated 3/4 view, very wide and shallow, with a flat unobstructed pale cool-gray top and two shallow beveled steps, muted blue-gray sides and a very fine subdued brass rim. Crisp restrained pixel-art rendering suited to a classic 2D RPG paper doll, subtle natural stone texture, calm moon-white and slate palette. Transparent background with genuine alpha. Wide 3:1 composition, platform tightly fills the horizontal canvas while remaining fully inside all edges; object only, no scenery, no character, no pillar, no ornaments protruding upward, no glowing effects, no text, no logo, no watermark. The empty top surface is where a small character will stand; keep visual weight low so it does not compete with the character.
16
+
17
+ `src/plugin/characterPlatformAsset.ts` 内嵌同一文件的 Base64,使机器人截图和编辑器 iframe 无需额外的静态文件服务或外网请求。替换站台时需同步更新该常量;角色形象仍只使用服务器返回的 PNG。
Binary file
@@ -0,0 +1,3 @@
1
+ Generated using built-in ImageGen with transparent_background=true.
2
+
3
+ Use case: stylized-concept. Asset type: a single transparent PNG default item icon for a Chinese RPG inventory, displayed as a tiny 24x24 icon and published at 120x120. Primary request: a cosmic black hole on a genuinely transparent background. One centered black circular event horizon, surrounded by a bright elegant swirling accretion ring in warm ivory-gold with subtle violet-blue cosmic glow. Strong clear silhouette, bold simple forms that remain legible at 24 pixels. A slightly tilted elliptical accretion disk with gravitational lensing arc over the black center, occupying roughly 80% of a square canvas. The black center must remain opaque dark black; outside the accretion disk and glow is fully transparent alpha. Isolated icon only, no outer square, no colored backdrop, no starfield background, no frame, no text, no symbols, no watermark, no UI. Polished game inventory icon, restrained luminous detail, clean edges, enough contrast to read on both white and dark chat backgrounds. Do not include any checkerboard drawn into the image. Generate one icon.
@@ -1,9 +1,5 @@
1
- # 排行榜顶部素材
2
-
3
- 默认 `header.svg` 是项目自绘的山景背景,标题由程序实时叠加,不写在图片里。
4
-
5
- 替换方式:在此目录放入 `header.png`、`header.jpg` 或 `header.webp`。优先顺序为 PNG → JPG → WebP → SVG。建议 1000×400 或同等横向比例,使用无标题背景,中心区域留给榜单标题。
6
-
7
- 背景每次生成图片时读取,替换后下一张生效。部署需连同 `assets/` 一起复制。缺少素材时退回深色渐变背景。
8
-
9
- 中文标题使用楷体 KaiTi/STKaiti,正文微软雅黑,数值 Georgia。Linux 部署安装 Noto Serif CJK SC、Noto Sans CJK SC 和 Noto Color Emoji;字体安装完成后重启绘图浏览器。Emoji 的覆盖范围取决于系统字体版本。
1
+ # 排行榜通用模板
2
+
3
+ 排行榜由 `src/plugin/leaderboardTemplate.ts` 绘制统一的冒险主题 UI,草坪领奖台、边框与装饰都来自模板代码,无需背景图片。前三位形象使用纸娃娃渲染结果;旧的排行榜顶部背景素材已移除。
4
+
5
+ 中文使用微软雅黑或 Noto Sans CJK SC,Emoji 使用系统字体。部署时请同时更新机器人和编辑器模板。
@@ -0,0 +1 @@
1
+ Use case: stylized-concept. Asset type: production RPG companion cutout. Create ONE adorable chibi white arctic fox pet, oversized head, large sparkling blue eyes, tiny paws, fluffy curled tail, small pale blue ribbon with a gold bell. Polished hand-painted anime game illustration, clean delicate outlines and soft cel shading, cute friendly expression. Full body, front three-quarter standing pose, all paws on the same ground baseline, centered, generous transparent margin around ears and tail, square canvas. True transparent RGBA background. No scenery, ground, platform, cast shadow, frame, text, logo, checkerboard, or extra characters. Designed to stand on a separately rendered game UI pedestal.
Binary file