Allow poses to be passed to the constructor, and update test script
One problem : it still should not go into a defaulted object
This commit is contained in:
parent
ec27f91904
commit
314f971609
@ -4,7 +4,7 @@ init 5 python:
|
||||
# class attribute
|
||||
instances = {}
|
||||
|
||||
def __init__(self, name, layer="screens", zorder=12, zoom=0.28, doll=None, **properties):
|
||||
def __init__(self, name, layer="screens", zorder=12, zoom=0.28, doll=None, poses=None, **properties):
|
||||
|
||||
super().__init__(**properties)
|
||||
|
||||
@ -21,7 +21,7 @@ init 5 python:
|
||||
if doll is None:
|
||||
doll = states.dolls[name]
|
||||
self.char = doll
|
||||
self.poses = {}
|
||||
self.poses = poses or {}
|
||||
|
||||
# Animation
|
||||
self.anim_frames = None
|
||||
@ -368,11 +368,12 @@ init offset = 5
|
||||
|
||||
default hooch_chibi = DollChibi(name="hooch", doll=hooch)
|
||||
# default cho_chibi_new = DollChibi(name="cho", doll=cho)
|
||||
# default tonks_chibi_new = DollChibi(name="tonks", doll=tonks)
|
||||
# default tonks_chibi_new = DollChibi(name="tonks", doll=tonks, poses=dict(
|
||||
# stand=(1, (600, 800)),
|
||||
# walk=(8, (600, 800)),
|
||||
# ))
|
||||
|
||||
# label chibitest:
|
||||
# chibi tonks register ("stand", 1, (600, 800))
|
||||
# chibi tonks register ("walk", 8, (600, 800))
|
||||
# "Rollback block"
|
||||
# $ renpy.block_rollback()
|
||||
|
||||
@ -392,8 +393,6 @@ default hooch_chibi = DollChibi(name="hooch", doll=hooch)
|
||||
# jump main_room_menu
|
||||
|
||||
# label chibitest2:
|
||||
# chibi tonks register ("stand", 1, (600, 800))
|
||||
# chibi tonks register ("walk", 8, (600, 800))
|
||||
# "Rollback block"
|
||||
# $ renpy.block_rollback()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user