-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More customization options? #10
Comments
sounds interesting! Though i need more info on this about what exactly you are looking for with examples. |
In simple words: I want to have some variables to set the size and coordinates of each element. So I can make the user image a little smaller and move it to another place or just move the text a bit. Also the possibility to set the size of the background image and the "black frame" would be great. |
ahhh not bad of an idea! PS. if you like the library then staring the repo really keeps me motivated. ❤ |
Thanks, I will give you feedback once you are done PS. you have now another star 😉 |
good evening SpaceLuc, I added Current sandbox only has one method which helps with customizing card1 only.
examples. example code should look something like: from DiscordLevelingCard import Sandbox, Settings, Tester
import asyncio
from PIL import Image
setting = Settings(
background="./bg.jpg",
bar_color="white",
text_color="white")
async def main():
rank = Sandbox(
username="resetxd",
level=10,
current_exp=100,
max_exp=400,
settings=setting,
avatar=Image.open("./avatarimg.png")
)
await rank.custom_card1(card_colour="blue") # "blue" or "#0000FF" both should work
Image.open(result).save("result.png", "PNG")
asyncio.run(main()) Do you like this feature? |
Why is there a black line on the red card? It came at first on mine as well but then i recreated the asset to fix it. I think your system is cacheing the old asset instead of download the new one |
idk ... but it seems that the image somehow shows through from below? |
What? I didn't understand |
If you fine with it, we should continue this on discord. |
yeah, sure i send you a fa |
Hey, would it be possible to make the individual cards customizable in size and position of the individual elements? Currently you have to stick to the default design and can only change the color of the text/bar.
I like the style of the third card (it's similar to mee6's), but it's way too big and takes up too much space in the chat.
Would love it if there was an option that you can set the positions and sizes of the individual elements. Kind of like a sandbox where you push everything to the right place yourself.
The text was updated successfully, but these errors were encountered: