-
Notifications
You must be signed in to change notification settings - Fork 1
Mask
Victor Westerlund edited this page Dec 27, 2020
·
1 revision
from labylib import Mask
What you can change:
Class | Function |
---|---|
Mask.Multi |
Custom properties |
Mask.Visibility |
Cosmetic visibility |
Manipulate cosmetic metadata.
What you can change:
Function | Description |
---|---|
color() |
Custom colors |
size() |
Mask size |
template() |
Template texture |
Call subfunctions and submit changes by calling update()
mask = Mask.Multi(PHPSESSID)
# ...
mask.update()
Takes a tuple of two HEX-colors
colors = ("1655ff","12ff16")
mask.color(colors)
# or
mask.color(colors[0],colors[1])
Takes a string "big"
or "small"
mask.size("big")
an int
can also be passed as size: big = 1, small = 0
Takes a string with syntax from LabyMod Dashboard
mask.template(":P")
Templates |
---|
None (no texture) |
3 |
:3 |
:*) |
:#) |
:'3 |
:) |
:p |
:P |
:') |
::) |
X |
;p |
:~) |
Will raise a ValueError
if an invalid template is specified.
mask_vis = Mask.Visibility(PHPSESSID)
mask_vis.update("<VALUE>")
Hide or show the cosmetic.
Action | Value |
---|---|
Show | "show" |
Hide | "hide" |
an int
can also be passed as Visibile = True/False