SlayTheSpire2ModdingTutorials/docs/03-baselib/ #7
Replies: 13 comments 31 replies
-
|
按~打开控制台输入card TEST_CARD获得这张卡。 |
Beta Was this translation helpful? Give feedback.
-
|
大佬,原文中关于卡图图片任意尺寸都可以的地方有误,太小了不行,我尝试加载一个440*280的图片但是不显示,等比例放大之后就可以了 |
Beta Was this translation helpful? Give feedback.
-
|
大佬,输入DARKESTMOD-TEST_CARD指令,Darkestmod是我的命名空间,卡片添加成功了,但是卡片描述和卡片名字都是变量名:card.DARKESTMOD-TEST_CARD.title,而不是我json文件填的内容,是我的json填错了吗 |
Beta Was this translation helpful? Give feedback.
-
|
和楼上遇到了同样的问题。本地化文本无法套用到卡牌上,json文件已经放到zhs文件夹里了也不行 |
Beta Was this translation helpful? Give feedback.
-
|
PortraitPath方法可以写成卡牌名字对应类名,可以适配多种后缀,这样改图片名字照类名改就行了 |
Beta Was this translation helpful? Give feedback.
-
|
大佬,目前有办法自定义类似Osty的召唤物吗,我对着Osty的代码研究了半天只做出来了一个没有血条的召唤物,而且位置是叠在玩家身上的😂彻底没招了 |
Beta Was this translation helpful? Give feedback.
-
|
请教一下,如果想要给卡牌描述添加一个提示的悬浮框要怎么做,比如一张牌有奇巧或者中毒的属性,一般来说会在旁边显示一个悬浮框解释这个属性。我看原版的卡牌是用类似于protected override IEnumerable ExtraHoverTips => new global::_003C_003Ez__ReadOnlySingleElementList(HoverTipFactory.FromKeyword(CardKeyword.Sly));的方式添加的。但是_003C_003Ez__ReadOnlySingleElementList这部分让我感到困惑 |
Beta Was this translation helpful? Give feedback.
-
|
卡牌只正确显示了图片,费用和文本都是问号 用了完全一致的目录: TestCard.cs namespace Sts2Plus.Scripts; cards.json: |
Beta Was this translation helpful? Give feedback.
-
|
大佬请问怎么给升级后的卡牌添加描述啊 |
Beta Was this translation helpful? Give feedback.
-
|
大佬,为什么我的mod生效之后,我自己的卡牌都是中文,但本体的本地化都会失效,包括所有卡牌,遗物,先古对话等,只有keywords还是中文。 |
Beta Was this translation helpful? Give feedback.
-
|
本地化一直没用啊..... cards.json写的 namespace LeiHeng.Scripts; // 加入哪个卡池 } namespace LeiHeng.Scripts; [ModInitializer("Init")] } 使用的NET是10.0.201 |
Beta Was this translation helpful? Give feedback.
-
|
请问大佬 我cmd dotnet build后报错 error CS0103: 当前上下文中不存在名称“AddCardTag” |
Beta Was this translation helpful? Give feedback.
-
|
protected override async Task OnPlay(PlayerChoiceContext choiceContext, CardPlay cardPlay) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
SlayTheSpire2ModdingTutorials/docs/03-baselib/
https://glitchedreme.github.io/SlayTheSpire2ModdingTutorials/docs/03-baselib/
Beta Was this translation helpful? Give feedback.
All reactions