koishi-plugin-dew-bot 1.0.265 → 1.0.267

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 (57) 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/lib/index.js +617 -510
  5. package/lib/plugin/cardEntryArtwork.d.ts +1 -1
  6. package/lib/plugin/characterCardAssets.d.ts +0 -2
  7. package/lib/plugin/characterCardStyles.d.ts +1 -1
  8. package/lib/plugin/characterCardTemplate.d.ts +1 -1
  9. package/lib/plugin/characterPlatformAsset.d.ts +2 -0
  10. package/lib/plugin/characterSceneAsset.d.ts +3 -0
  11. package/lib/plugin/companionCardTemplate.d.ts +1 -0
  12. package/lib/plugin/inlineArtwork.d.ts +2 -0
  13. package/lib/plugin/itemCardTemplate.d.ts +1 -1
  14. package/lib/plugin/qualityCardStyles.d.ts +1 -1
  15. package/lib/plugin/serverHandel/qqCommandMessage.d.ts +0 -3
  16. package/lib/plugin/serverHandel/qqImageMessage.d.ts +4 -0
  17. package/lib/plugin/serverHandel/qqPageMessage.d.ts +2 -4
  18. package/lib/plugin/serverHandel/qqRewardMessage.d.ts +2 -2
  19. package/lib/plugin/serverHandel/qqStoryMessage.d.ts +0 -3
  20. package/lib/plugin/serverHandel/qqTransactionMessage.d.ts +0 -3
  21. package/lib/plugin/signinCardTemplate.d.ts +0 -1
  22. package/lib/plugin/skillCard.d.ts +1 -2
  23. package/lib/shared/face/index.d.ts +26 -19
  24. package/package.json +1 -1
  25. package/src/index.ts +1 -1
  26. package/src/plugin/cardEntryArtwork.ts +10 -6
  27. package/src/plugin/cardLayout.ts +272 -137
  28. package/src/plugin/characterCardAssets.ts +1 -12
  29. package/src/plugin/characterCardStyles.ts +14 -2
  30. package/src/plugin/characterCardTemplate.ts +33 -5
  31. package/src/plugin/characterPlatformAsset.ts +2 -0
  32. package/src/plugin/characterSceneAsset.ts +3 -0
  33. package/src/plugin/companionCardTemplate.ts +1 -0
  34. package/src/plugin/detailCardTemplate.ts +0 -1
  35. package/src/plugin/equipmentCardTemplate.ts +5 -2
  36. package/src/plugin/inlineArtwork.ts +16 -0
  37. package/src/plugin/itemCardTemplate.ts +3 -5
  38. package/src/plugin/qualityCardStyles.ts +6 -0
  39. package/src/plugin/serverHandel/image.ts +66 -53
  40. package/src/plugin/serverHandel/imageMessageFollowup.ts +4 -7
  41. package/src/plugin/serverHandel/qqCommandMessage.ts +2 -9
  42. package/src/plugin/serverHandel/qqImageMessage.ts +55 -0
  43. package/src/plugin/serverHandel/qqMessagePreview.ts +1 -0
  44. package/src/plugin/serverHandel/qqPageMessage.ts +26 -22
  45. package/src/plugin/serverHandel/qqRewardMessage.ts +12 -7
  46. package/src/plugin/serverHandel/qqStoryMessage.ts +3 -9
  47. package/src/plugin/serverHandel/qqTransactionMessage.ts +1 -8
  48. package/src/plugin/signinCardTemplate.ts +0 -1
  49. package/src/plugin/skillCard.ts +248 -243
  50. package/src/plugin/skillCardTemplate.ts +21 -2
  51. package/src/shared/bot/serviceProto.ts +133 -93
  52. package/src/shared/face/index.ts +15 -16
  53. package/lib/plugin/appearanceCardTemplate.d.ts +0 -3
  54. package/src/plugin/appearanceCardTemplate.ts +0 -7
  55. package/src/plugin/serverHandel/titleCardMessage.ts +0 -25
  56. package/src/plugin/titleCardStyles.ts +0 -121
  57. 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