Cap - VictorWesterlund/labylib GitHub Wiki
from labylib import Cap
What you can change:
Class | Function |
---|---|
Cap.Multi |
Custom properties |
Cap.Visibility |
Cosmetic visibility |
Manipulate cosmetic metadata.
What you can change:
Function | Description |
---|---|
color() |
Custom colors |
direction() |
Cap direction |
template() |
Template texture |
Call subfunctions and submit changes by calling update()
cap = Cap.Multi(PHPSESSID)
# ...
cap.update()
Takes a HEX-color string
mask.color("1655ff")
Takes a string "front"
or "back"
cap.direction("front")
an int
can also be passed as direction: front = 1, back = 0
Takes a string with syntax from LabyMod Dashboard
cap.template(":P")
Templates |
---|
default |
2021 |
Will raise a ValueError
if an invalid template is specified.
cap_vis = Cap.Visibility(PHPSESSID)
cap_vis.update("<VALUE>")
Hide or show the cosmetic.
Action | Value |
---|---|
Show | "show" |
Hide | "hide" |
an int
can also be passed as Visibile = True/False