This repository was archived by the owner on Dec 15, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 38
Creating new assets for bot
hjk22 edited this page Dec 31, 2019
·
1 revision
- An emulator/phone with a screen resolution of 1920x1080 with adb enabled (of course you've got this, since you bot).
- An image editor tool like Photoshop or GIMP (Paint should also be fine).
- Take a screenshot of the screen where your desired asset is contained with this command
adb exec-out screencap -p > screenshot.png. - Open screenshot.png with your image editor of choice.
- Select the image portion you want to use and crop it.
- Proceed to save/export the cropped image as a .png file, without resizing it or editing it any other way.
- Paste your newly created asset in the right subfolder of the
assetsbot's directory (C:\path_to_bot\ALAuto\assets). - To use your asset in the code use this string:
subfolder_name/asset_name, asset_name must not contain the file extension (.pngis added by the variousfindmethods contained inutils.py).
If you are replacing an existing asset, make sure that the name is correct.