New
#21
any chance of adding every single one of these into 1 gadget? i like paulies borders as well as grims.
@pauliewog +rep to u on the OP
any chance of adding every single one of these into 1 gadget? i like paulies borders as well as grims.
@pauliewog +rep to u on the OP
pauliewog, if the following makes sense, copy it and save it. :)
Code:Howto add an extra clock ************************ In this howto I shall add a clock called 'HomePremium2' to the pack. To begin with rename 'SevenEditionsClock.Gadget' to 'SevenEditionsClock.Gadget.zip' and extract all the files to a new folder. IMAGE EDITS: ************************** ************************** Folder: "\Images\" ************************** ************************** Copy all the images relating to one of the existing clocks, for example copy all the files that start with 'HomePremium' and rename them so they begin with 'HomePremium2', there should be six files in total for each clock. Now edit these image files to your liking proceed onto the code edits below. CODE EDITS: ************************** ************************** Open: "\en-US\js\clock.js" ************************** ************************** On the very first line, You will find the array for the clock names simular to: var clockThemes = new Array("HomePremium", "Professional", "Ultimate"); add [, "HomePremium2"] without the [] to the end before the close-bracket like so: var clockThemes = new Array("HomePremium", "Professional", "Ultimate", "HomePremium2"); ************************** Now open find and search for "switch (curTheme)", you should see something like this below it: { case "HomePremium": clockFont = "Constantia, " + clockFont; clockFontColor = "#2F2E2E"; topPX += -3; leftPX += -1; maxClockNameWidth = 66; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = -1; clockPartsLeft = 57; break; case "Professional": clockFont = "Arial Narrow, " + clockFont; clockFontColor = "#666666"; topPX += 3; leftPX += 1; maxClockNameWidth = 72; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = 0; clockPartsLeft = 58; break; case "Ultimate": clockFont = "Arial Narrow, " + clockFont; clockFontColor = "#f6f4e2"; topPX += 6; maxClockNameWidth = 70; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = -1; clockPartsLeft = 57; break; } We need to copy a 'block' now and add it to the bottom below the 'Ultimate' block, Note each block starts with 'case' and ends with the 'break;' text. so adding a new block would look like this: case "HomePremium": clockFont = "Constantia, " + clockFont; clockFontColor = "#2F2E2E"; topPX += -3; leftPX += -1; maxClockNameWidth = 66; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = -1; clockPartsLeft = 57; break; case "Professional": clockFont = "Arial Narrow, " + clockFont; clockFontColor = "#666666"; topPX += 3; leftPX += 1; maxClockNameWidth = 72; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = 0; clockPartsLeft = 58; break; case "Ultimate": clockFont = "Arial Narrow, " + clockFont; clockFontColor = "#f6f4e2"; topPX += 6; maxClockNameWidth = 70; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = -1; clockPartsLeft = 57; break; case "HomePremium2": clockFont = "Constantia, " + clockFont; clockFontColor = "#2F2E2E"; topPX += -3; leftPX += -1; maxClockNameWidth = 66; clockPartsWidth = 13; clockPartsHeight = 129; clockPartsTop = -1; clockPartsLeft = 57; break; ************************** ************************** Open: "\en-US\js\settings.js" ************************** ************************** Open find and search for [var imagePath = "images/";] minnus the [], you should see something like this on the line below it: var imageArray = new Array("HomePremium_settings.png", "Professional_settings.png", "Ultimate_settings.png"); add [, "HomePremium2_settings.png"] without the [] to the end before the close-bracket like so: var imageArray = new Array("HomePremium_settings.png", "Professional_settings.png", "Ultimate_settings.png", "HomePremium2_settings.png"); ************************** ************************** END OF CODE EDITS ************************** ************************** Now zip up everything inside the new folder you created earlier and then rename it replacing '.zip' with '.gadget' Be sure not to include the new folder itself, just everything inside it. Hope this makes sense, Generator. :p
LOL!!!
Here's the next four:
(added to the other ones)
Download:
SevenEditionsClockGadget.zip
No worries mate. :)
I'll redo the howto at some point so it's easier to follow, maybe in html or something. It's all a bit clumped together with doing it in Notepad but it was just a quick effort whilst I was adding to it.
EDIT: I've started the coding for the other coloured one's btw.
For anyone who wants to do there own, here is the glass overlay for the clocks, generator is there a way you can make this image layer itself on top of the clocks so the hands are under it like with this Gadget.
sfClock.Gadget.zip