vscode-pets icon indicating copy to clipboard operation
vscode-pets copied to clipboard

Farm theme?

Open salarconb opened this issue 1 year ago • 1 comments

Please describe your idea. Add a farm theme.

Describe how the idea would be helpful My chickens feel out of place in the available locations. They would love a farm to feel more at home.

Additional context I'm thinking of something like Harvest Moon

salarconb avatar Dec 20 '23 00:12 salarconb

I made some pixel art farm pictures using DALL-E 3. They could be used as background images or inspiration.

farm 1 farm 2 farm 3 .

secondtruth avatar Jan 04 '24 16:01 secondtruth

what i did to get custom themes: go to your extensions folder C:\Users\Your User\ .vscode\extensions\tonybaloney.vscode-pets

Modify the file /media/main-bundle.js and /out/panel/main.js

add this in function calculateFloor(size, theme) {

                          case "farm" /* Theme.farm */:
                            switch (size) {
                                case "small" /* PetSize.small */:
                                    return 60;
                                case "medium" /* PetSize.medium */:
                                    return 80;
                                case "large" /* PetSize.large */:
                                    return 120;
                                case "nano" /* PetSize.nano */:
                                default:
                                    return 45;
                            }
                            

in /out/common/types.js and /dist/web/extension-web.js add this inside exports.ALL_THEMES = [

"farm" like this: exports.ALL_THEMES = ["none" /* Theme.none */, "forest" /* Theme.forest */, "castle" /* Theme.castle */, "beach" /* Theme.beach */, "farm" /* Theme.farm */, "graveyard" /* Theme.graveyard */];

in package.json add the option

"vscode-pets.theme": {
						"type": "string",
						"enum": [
							"none",
							"forest",
							"castle",
							"beach",
							"farm"

							
						],

finnaly add a folder in /media/backrounds/ named the same as the theme and add the files named: i copied the beach images and edited them using the same canvas size (replace dark with light or add another set if you are using another theme)

background-dark-large.png background-dark-medium.png background-dark-nano.png background-dark-small.png background-dark.png

result: image

MrGeorgeK55 avatar Oct 06 '24 06:10 MrGeorgeK55