chore: 修复 R.py 构建工具的两个问题
1. 结果里的类属性没有正确转换为大驼峰 2. 移除 tip 属性
This commit is contained in:
parent
5fad34bd6f
commit
3b225994d8
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
|
@ -0,0 +1 @@
|
|||
{"definitions":{"e88c9ad1-ec37-4fcd-b086-862e1e7ce8fd":{"name":"Produce.ButtonPIdolOverview","displayName":"Pアイドルー覧 P偶像列表展示","type":"template","annotationId":"e88c9ad1-ec37-4fcd-b086-862e1e7ce8fd","useHintRect":false}},"annotations":[{"id":"e88c9ad1-ec37-4fcd-b086-862e1e7ce8fd","type":"rect","data":{"x1":49,"y1":736,"x2":185,"y2":759},"tip":"Pアイドルー覧 P偶像列表展示"}]}
|
Binary file not shown.
After Width: | Height: | Size: 855 KiB |
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"definitions": {
|
||||
"30a6f399-6999-4f04-bb77-651e0214112f": {
|
||||
"name": "Produce.IconPIdolLevel",
|
||||
"displayName": "P偶像卡上的等级图标",
|
||||
"type": "template",
|
||||
"annotationId": "30a6f399-6999-4f04-bb77-651e0214112f",
|
||||
"useHintRect": false
|
||||
}
|
||||
},
|
||||
"annotations": [
|
||||
{
|
||||
"id": "30a6f399-6999-4f04-bb77-651e0214112f",
|
||||
"type": "rect",
|
||||
"data": {
|
||||
"x1": 238,
|
||||
"y1": 742,
|
||||
"x2": 248,
|
||||
"y2": 753
|
||||
},
|
||||
"_tip": "P偶像卡上的等级图标"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -60,7 +60,6 @@ class Annotation(DataClassJsonMixin):
|
|||
id: str
|
||||
type: Literal['rect']
|
||||
data: RectPoints
|
||||
tip: Union[str, None]
|
||||
|
||||
@dataclass
|
||||
class Definition(DataClassJsonMixin):
|
||||
|
@ -154,7 +153,7 @@ def load_and_copy_meta_data_sprite(root_path: str, png_file: str) -> list[Sprite
|
|||
sprites.append(Sprite(
|
||||
type='metadata',
|
||||
uuid=definition.annotationId,
|
||||
name=to_camel_case(definition.name.split('.')[-1]),
|
||||
name=definition.name.split('.')[-1],
|
||||
display_name=definition.displayName,
|
||||
class_path=to_camel_cases(definition.name.split('.')[:-1]),
|
||||
rel_path=png_file,
|
||||
|
|
Loading…
Reference in New Issue