aquarium_content
Allows movables to be inserted/displayed in aquariums.
Vars | |
animation_getter | Proc used to retrieve current animation state from the parent, optional |
---|---|
animation_update_signals | Signals of the parent that will trigger animation update |
aquarium_vc_color | Applied to vc object only for use with greyscaled icons. |
base_px | Base px offset of the visual object in current aquarium aka current base position |
base_py | Base px offset of the visual object in current aquarium aka current base position |
base_transform | Transformation applied to the visual holder - used when scaled down sprites are used as in aquarium visual |
beauty | The current beauty this component gives to the aquarium it's in |
current_animation | Currently playing animation |
current_aquarium | Keeps track of our current aquarium. |
icon | Fish sprite how to: The aquarium icon state needs to be centered on 16,16 in the dmi and facing left by default. sprite_width/sprite_height are the sizes it will have in aquarium and used to control animation boundaries. Ideally these two vars represent the size of the aquarium icon state, but they can be one or two units shorter to give more room for the visual to float around inside the aquarium, since the aquarium tank frame overlay will likely cover the extra pixels anyway. Icon used for in aquarium sprite |
icon_state | If this is set this icon state will be used for the holder while icon_state will only be used for item/catalog. Transformation from source_width/height WON'T be applied. |
layer_mode | How the thing will be layered |
original_beauty | The original value of the beauty this component had when initialized |
processing | Does this behviour need additional processing in aquarium, will be added to SSobj processing on insertion |
randomize_position | If the starting position is randomised within bounds when inserted into aquarium. |
unique | TODO: Change this into trait checked on aquarium insertion |
Procs | |
InitializeFromFish | Sets visuals properties for fish |
InitializeFromProp | Sets visuals properties for fish |
InitializeOther | Mostly for admin abuse |
apply_appearance | Applies icon,color and base scaling to our visual holder |
change_aquarium_beauty | Modifies the beauty of the aquarium when content is added or removed, or when fishes die or live again somehow. |
generate_animation | Actually animates the vc holder |
generate_base_vc | Generates common visual object, propeties that don't depend on aquarium surface |
on_surface_changed | Aquarium surface changed in some way, we need to recalculate base position and aninmation |
swim_animation | Create looping random path animation, pixel offsets parameters include offsets already |
Var Details
animation_getter
Proc used to retrieve current animation state from the parent, optional
animation_update_signals
Signals of the parent that will trigger animation update
aquarium_vc_color
Applied to vc object only for use with greyscaled icons.
base_px
Base px offset of the visual object in current aquarium aka current base position
base_py
Base px offset of the visual object in current aquarium aka current base position
base_transform
Transformation applied to the visual holder - used when scaled down sprites are used as in aquarium visual
beauty
The current beauty this component gives to the aquarium it's in
current_animation
Currently playing animation
current_aquarium
Keeps track of our current aquarium.
icon
Fish sprite how to: The aquarium icon state needs to be centered on 16,16 in the dmi and facing left by default. sprite_width/sprite_height are the sizes it will have in aquarium and used to control animation boundaries. Ideally these two vars represent the size of the aquarium icon state, but they can be one or two units shorter to give more room for the visual to float around inside the aquarium, since the aquarium tank frame overlay will likely cover the extra pixels anyway. Icon used for in aquarium sprite
icon_state
If this is set this icon state will be used for the holder while icon_state will only be used for item/catalog. Transformation from source_width/height WON'T be applied.
layer_mode
How the thing will be layered
original_beauty
The original value of the beauty this component had when initialized
processing
Does this behviour need additional processing in aquarium, will be added to SSobj processing on insertion
randomize_position
If the starting position is randomised within bounds when inserted into aquarium.
unique
TODO: Change this into trait checked on aquarium insertion
Proc Details
InitializeFromFish
Sets visuals properties for fish
InitializeFromProp
Sets visuals properties for fish
InitializeOther
Mostly for admin abuse
apply_appearance
Applies icon,color and base scaling to our visual holder
change_aquarium_beauty
Modifies the beauty of the aquarium when content is added or removed, or when fishes die or live again somehow.
generate_animation
Actually animates the vc holder
generate_base_vc
Generates common visual object, propeties that don't depend on aquarium surface
on_surface_changed
Aquarium surface changed in some way, we need to recalculate base position and aninmation
swim_animation
Create looping random path animation, pixel offsets parameters include offsets already