fix little issue DR game 0.3.2.1
This commit is contained in:
parent
47d2629610
commit
a2f12c2e77
@ -2,9 +2,17 @@
|
|||||||
# DR game/DR rs 更新日志
|
# DR game/DR rs 更新日志
|
||||||
|
|
||||||
- 最新版本号
|
- 最新版本号
|
||||||
- DR game: 0.3.2.0
|
- DR game: 0.3.2.1
|
||||||
- DR rs: 0.2.21.0
|
- DR rs: 0.2.21.0
|
||||||
|
|
||||||
|
## 20230809 DR game 0.3.2.1
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- 因为把部件加载图片的数据源改成从 `SR1PartType_rs` 里取
|
||||||
|
- 所以修改了 `SR1Textures` 的加载逻辑
|
||||||
|
- 可以自动忽略文件名最后的 `.png`
|
||||||
|
|
||||||
## 20230808 DR rs 0.2.21.0
|
## 20230808 DR rs 0.2.21.0
|
||||||
|
|
||||||
### Add
|
### Add
|
||||||
|
@ -53,7 +53,7 @@ DR_mod_runtime = _DR_mod_runtime()
|
|||||||
class DR_mod(ModInfo): # NOQA
|
class DR_mod(ModInfo): # NOQA
|
||||||
mod_id = "difficult_rocket_mod"
|
mod_id = "difficult_rocket_mod"
|
||||||
name = "Difficult Rocket mod"
|
name = "Difficult Rocket mod"
|
||||||
version = Version("0.3.2.0")
|
version = Version("0.3.2.1")
|
||||||
|
|
||||||
writer = "shenjackyuanjie"
|
writer = "shenjackyuanjie"
|
||||||
link = "shenjack.top"
|
link = "shenjack.top"
|
||||||
|
@ -33,8 +33,10 @@ class SR1Textures(Options):
|
|||||||
"""
|
"""
|
||||||
if name in self.cached_options:
|
if name in self.cached_options:
|
||||||
return self.cached_options.get(name)
|
return self.cached_options.get(name)
|
||||||
|
elif name.split('.')[0] in self.cached_options:
|
||||||
|
return self.cached_options.get(name.split('.')[0])
|
||||||
else:
|
else:
|
||||||
img = load(f'assets/textures/parts/{name}.png')
|
img = load(f'assets/textures/parts/{name}')
|
||||||
img.anchor_x = img.width // 2
|
img.anchor_x = img.width // 2
|
||||||
img.anchor_y = img.height // 2
|
img.anchor_y = img.height // 2
|
||||||
setattr(self, name, img)
|
setattr(self, name, img)
|
||||||
|
Loading…
Reference in New Issue
Block a user