Add rentfree
parent
ee2c3c943a
commit
33a6cfda19
|
@ -8142,4 +8142,13 @@ body {
|
|||
0%, 100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.marseyfx-modifier-rentfree-wrapper {
|
||||
clip-path: polygon(32% 60%, 25% 52%, 22% 42%, 24% 31%, 29% 19%, 36% 14%, 48% 11%, 61% 11%, 72% 15%, 79% 20%, 86% 26%, 89% 35%, 91% 45%, 88% 54%, 81% 60%);
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.marseyfx-modifier-rentfree-self {
|
||||
transform: scale(0.5) translate(11%, -20%);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
|
@ -40,6 +40,7 @@ def heavy(fn):
|
|||
|
||||
class ModifierContextFrame:
|
||||
name: str
|
||||
wrap_depth: int = 0
|
||||
def __init__(self, name: str):
|
||||
self.name = name
|
||||
|
||||
|
@ -142,6 +143,16 @@ class Modified:
|
|||
other_emoji.is_primary = False
|
||||
|
||||
return other_emoji.create_el(self.tokenizer).wrap(wrapper)
|
||||
|
||||
def wrap_child(self, class_: str = ''):
|
||||
ctx = self.ctx()
|
||||
wrap_insert = ''
|
||||
if ctx.wrap_depth > 0:
|
||||
wrap_insert = f'-{ctx.wrap_depth + 1}'
|
||||
|
||||
self.child = self.child.wrap(self.soup.new_tag('div', attrs={'class': f'marseyfx-modifier-{self.ctx().name}-wrapper{wrap_insert} {class_}'}))
|
||||
|
||||
ctx.wrap_depth += 1
|
||||
|
||||
@modifier
|
||||
def pat(self):
|
||||
|
@ -326,4 +337,9 @@ class Modified:
|
|||
tag = copy.copy(self.child)
|
||||
tag.attrs['class'] = tag.attrs['class'].copy()
|
||||
tag.attrs['class'].append(f'marseyfx-modifier-transcendent-clone marseyfx-modifier-transcendent-clone-{i}')
|
||||
self.container.append(tag)
|
||||
self.container.append(tag)
|
||||
|
||||
@modifier
|
||||
def rentfree(self):
|
||||
self.wrap_child()
|
||||
self.overlay(self.image('rentfree.png'))
|
|
@ -106,7 +106,7 @@ class WordToken(Token):
|
|||
start = tokenizer.index
|
||||
value = ''
|
||||
while tokenizer.has_next():
|
||||
if WordToken.can_parse(tokenizer):
|
||||
if re.fullmatch(r'[!#@a-zA-Z\d]', tokenizer.peek()):
|
||||
value += tokenizer.eat()
|
||||
else:
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue