Skip to content

Commit

Permalink
updated manifest and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
f00d4tehg0dz committed Mar 4, 2022
1 parent d126e6a commit ff7495c
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 49 deletions.
Binary file modified Release/com.f00d4tehg0dz.cookieclicker.streamDeckPlugin
Binary file not shown.
2 changes: 1 addition & 1 deletion com.f00d4tehg0dz.cookieclicker.sdPlugin/cookieclicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
});
function openGithub() {
$SD.api.openUrl($SD.actionInfo.context, "https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker")
$SD.api.openUrl($SD.actionInfo.context, "https://github.com/f00d4tehg0dz/Doge-Coin-Plugin-for-Eglato-Streamdeck")
}
});

Expand Down
46 changes: 46 additions & 0 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* body {
padding-top: 5px;
font-family: Arial;
background-color: bisque;
margin: auto;
text-align: center;
}
p {
font-size: 10px;
color: black;
display: block;
margin: 5px;
text-align: left;
}
h2 {
font-size: 15px;
color: black;
display: block;
margin: 5px;
}
#cookieNumbers {
margin: auto;
text-align:center;
padding-top: 10px;
margin-bottom: 5px;
font-size: 10px;
border:2px solid;
border-radius:5px;
background-color:white;
height:15px;
}
#cookieTitle {
margin: auto;
text-align:center;
padding-top: 10px;
margin-bottom: 5px;
font-size: 10px;
border:2px solid;
border-radius:5px;
background-color:lightpink;
height:20px;
} */
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified com.f00d4tehg0dz.cookieclicker.sdPlugin/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified com.f00d4tehg0dz.cookieclicker.sdPlugin/icon.psd
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<head>
<title>com.f00d4tehg0dz.cookieclicker</title>
<meta charset="utf-8"/>

</head>

<body>
Expand Down
52 changes: 6 additions & 46 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ if ($SD) {
ctx.textAlign = 'left';
ctx.fillStyle = "#deff00";
return resultString
// ctx.fill();
// ctx.fillText(resultString , (canvas.width/2) - (textWidth / 2), 80);
}

function titleBoard(result) {
Expand All @@ -64,6 +66,9 @@ if ($SD) {
ctx.textAlign = 'left';
ctx.fillStyle = "#deff00";
return resultString

// ctx.fill();
// ctx.fillText(resultString , (canvas.width/2) - (textWidth / 2), 120);
}

function resultCallback(result, context) {
Expand Down Expand Up @@ -133,15 +138,6 @@ if ($SD) {
})));
}

// 5x
if (num >= 250) {
num += 5;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Mine",
})));
}

// 10x
if (num >= 500) {
num += 10;
Expand All @@ -151,15 +147,6 @@ if ($SD) {
})));
}

// 20x
if (num >= 750) {
num += 20;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Bank",
})));
}

// 30x
if (num >= 1000) {
num += 30;
Expand All @@ -169,39 +156,12 @@ if ($SD) {
})));
}

// 40x
if (num >= 1400) {
num += 40;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Plant",
})));
}

// 50x
if (num >= 2500) {
num += 50;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Shipment",
})));
}

// 100x
if (num >= 10000) {
num += 100;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Fractal",
})));
}

// 1000x
if (num >= 100000) {
num += 1000;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Portal",
"title": "S. Plant",
})));
}

Expand Down
6 changes: 4 additions & 2 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
],
"SDKVersion": 2,
"Author": "Adrian Chrysanthou",
"Category": "Cookie Clicker [f00d4tehg0dz]",
"CategoryIcon": "icons/category-icon",
"CodePath": "index.html",
"Description": "A CookieClicker Status plugin developed by Adrian Chrysanthou. You can find more information about this plugin at https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker. Please report any issues you see on the project's Github page. I welcome any feedback.",
"Description": "A CookieClicker Status plugin developed by Adrian Chrysanthou. You can find more information about this plugin at https://github.com/f00d4tehg0dz/Doge-Coin-Plugin-for-Eglato-Streamdeck. Please report any issues you see on the project's Github page. I welcome any feedback.",
"Name": "CookieClicker Status",
"Icon": "icon",
"URL": "https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker",
"URL": "https://github.com/f00d4tehg0dz/Cookie-Clicker-Plugin-for-Eglato-Streamdeck",
"PropertyInspectorPath": "cookieclicker.html",
"Version": "2.3",
"OS": [
Expand Down

0 comments on commit ff7495c

Please sign in to comment.