HIGH RESOLUTION SCUMMVM ICONS - CHECK EM OUT!
Moderator: ScummVM Team
Sorry for the long post...
Before I post the code I actually use, let me point out a couple of things:
1. I'm not sure how well moving the icons around would work from an interface perspective. Perhaps you'd have to put them in some kind of container; the whole point of how it works is to simply wrap the image into a link tag, the destination of that link is directly to a .bat file.
Currently IE processes the link once you click on it, much as if you clicked on any regular hyperlink (single click to activate)
Putting it in a container would be messy, I think, and would definitely detract from the iconic beauty we have so far.
2. Even if you solve that issue, the issue of actually saving the items must be maintained. Can you save what are, in effect, local cookies from JavaScript? (My JS doesn't extend that far, I'm afraid)
3. 140px just seemed to be a nice size and everything seemed to fit well enough. If I had really thought about it, I could have either used the 128x128 icons, or resized the images with GIMP. I was just too busy playing with proof-of-concept though. By using width="" rather than doing it in CSS forces IE to resize rather than crop, by the way.
4. In my case, I inherited many many files from my old Win98 PC, so everything of mine lives in C:\My Documents since I couldn't be bothered rewriting many paths in many different things to work.
So:
* The file concerned is C:\My Documents\Pete-desktop.html
* All icon PNGs live in C:\My Documents\mainscreen\scummvm
* Each of the ScummVM games I have is triggered through a batch file, which all live in C:\Games\scummbat
* They all call C:\Games\scummbat\scummvm.bat, which is simply a director to where the ScummVM exe lives, passing on the game target as an argument.
Example: C:\Games\scummbat\samnmax.bat
C:\Games\scummbat\scummvm.bat
This way I don't have to update each bat file if I install a new ScummVM, I only have to update the single bat loader.
Now for the main file. It really isn't pretty HTML, for which I apologise.
The stuff in the HEAD tag is taken directly from http://homepage.ntlworld.com/bobosola/ as mentioned before, to handle the PNG transparency.
1. I'm not sure how well moving the icons around would work from an interface perspective. Perhaps you'd have to put them in some kind of container; the whole point of how it works is to simply wrap the image into a link tag, the destination of that link is directly to a .bat file.
Currently IE processes the link once you click on it, much as if you clicked on any regular hyperlink (single click to activate)
Putting it in a container would be messy, I think, and would definitely detract from the iconic beauty we have so far.
2. Even if you solve that issue, the issue of actually saving the items must be maintained. Can you save what are, in effect, local cookies from JavaScript? (My JS doesn't extend that far, I'm afraid)
3. 140px just seemed to be a nice size and everything seemed to fit well enough. If I had really thought about it, I could have either used the 128x128 icons, or resized the images with GIMP. I was just too busy playing with proof-of-concept though. By using width="" rather than doing it in CSS forces IE to resize rather than crop, by the way.
4. In my case, I inherited many many files from my old Win98 PC, so everything of mine lives in C:\My Documents since I couldn't be bothered rewriting many paths in many different things to work.
So:
* The file concerned is C:\My Documents\Pete-desktop.html
* All icon PNGs live in C:\My Documents\mainscreen\scummvm
* Each of the ScummVM games I have is triggered through a batch file, which all live in C:\Games\scummbat
* They all call C:\Games\scummbat\scummvm.bat, which is simply a director to where the ScummVM exe lives, passing on the game target as an argument.
Example: C:\Games\scummbat\samnmax.bat
Code: Select all
@call c:\games\scummbat\scummvm.bat samnmax
Code: Select all
@echo off
cd C:\Games\scummvm-0.10.0
scummvm %1
Now for the main file. It really isn't pretty HTML, for which I apologise.
The stuff in the HEAD tag is taken directly from http://homepage.ntlworld.com/bobosola/ as mentioned before, to handle the PNG transparency.
Code: Select all
<html>
<head><title>Pete's Desktop</title>
<!--
Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.
-->
<!--[if lt IE 7]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->
<style>
body { margin:0; overflow:hidden; }
#bg { position:absolute; top:0px; left:0px; z-index:1; }
.icon { position:absolute; border:0; z-index:5; }
</style>
</head>
<body>
<a href="C:\Games\scummbat\simon1.bat"><img class="icon" src="mainscreen/scummvm/simon1-title.png" width="140" style="left:600px; top:10px;"></a>
<a href="C:\Games\scummbat\simon2.bat"><img class="icon" src="mainscreen/scummvm/simon2-title.png" width="140" style="left:600px; top:162px;"></a>
<a href="C:\Games\scummbat\sword1.bat"><img class="icon" src="mainscreen/scummvm/broken1-title.png" width="140" style="left:600px; top:392px;"></a>
<a href="C:\Games\scummbat\sword2.bat"><img class="icon" src="mainscreen/scummvm/broken2-title.png" width="140" style="left:600px; top:509px;"></a>
<a href="C:\Games\scummbat\maniac.bat"><img class="icon" src="mainscreen/scummvm/maniac1-title.png" width="140" style="left:765px; top:10px;"></a>
<a href="C:\Games\scummbat\dott.bat"><img class="icon" src="mainscreen/scummvm/maniac2-dott-title.png" width="140" style="left:765px; top:141px;"></a>
<a href="C:\Games\scummbat\steelsky.bat"><img class="icon" src="mainscreen/scummvm/bass-title.png" width="140" style="left:776px; top:360px;"></a>
<a href="C:\Games\scummbat\loom.bat"><img class="icon" src="mainscreen/scummvm/loom-title.png" width="140" style="left:930px; top:10px;"></a>
<a href="C:\Games\scummbat\indy3.bat"><img class="icon" src="mainscreen/scummvm/indy3-title.png" width="140" style="left:930px; top:127px;"></a>
<a href="C:\Games\scummbat\atlantis.bat"><img class="icon" src="mainscreen/scummvm/indy4-title.png" width="140" style="left:930px; top:290px;"></a>
<a href="C:\Games\scummbat\ft.bat"><img class="icon" src="mainscreen/scummvm/throttle-title.png" width="140" style="left:930px; top:448px;"></a>
<a href="C:\Games\scummbat\queen.bat"><img class="icon" src="mainscreen/scummvm/fotaq-title.png" width="140" style="left:930px; top:606px;"></a>
<a href="C:\Games\scummbat\monkey.bat"><img class="icon" src="mainscreen/scummvm/monkey1-title.png" width="140" style="left:1100px; top:10px;"></a>
<a href="C:\Games\scummbat\monkey2.bat"><img class="icon" src="mainscreen/scummvm/monkey2-title.png" width="140" style="left:1100px; top:189px;"></a>
<a href="C:\Games\scummbat\monkey3.bat"><img class="icon" src="mainscreen/scummvm/monkey3-title.png" width="140" style="left:1100px; top:344px;"></a>
<a href="C:\Games\scummbat\samnmax.bat"><img class="icon" src="mainscreen/scummvm/samnmax-title.png" width="180" style="left:1080px; top:513px;"></a>
<a href="C:\Games\scummbat\dig.bat"><img class="icon" src="mainscreen/scummvm/dig-title.png" widht="140" style="left:1100px; top:700px;"></a>
<img id="bg" src="scaled_backintohell.jpg" width="100%" height="100%"></body></html>
MERINGUES
Great, just say the word (through e-mail) and I'll put them up on the site.Meringues wrote:I'll convert the rest of the images into icons tomorrow, also, thanius, I could make a few icons for you to take some of the stress off if you like? lol
About helping out, would be great! Just be sure to pick out the artwork with highest resolution since they'll be kinda blurry when resampled. Also, remember the alpha transparency - and to be creative!
I'm currently working on some non-SCUMM games, if you'd like you could start poking at some AGI-games?
Re: HIGH RESOLUTION SCUMMVM ICONS - CHECK EM OUT!
[quote=" [/quote]
I would have checked the scummvm readme but it seems to be down at the moment.
Thanks in advance.
PS Cheers for the icons they are excellent
Can some one explain to me how i go about doing this. What is the file i need to create to allow scummvm to be loaded with a game already in place. I am using ubuntu 7.04.2. Enter name and command, i.e. "Monkey Island" and "/usr/bin/scummvm -game monkey1" and choose the icon
I would have checked the scummvm readme but it seems to be down at the moment.
Thanks in advance.
PS Cheers for the icons they are excellent
Re: HIGH RESOLUTION SCUMMVM ICONS - CHECK EM OUT!
Well, you don't need any file to start the game; just a command. scummvm [GAMETAG] should do it. I.e., Indiana Jones and The Fate of Atlantis would start with:clarkey wrote:Can some one explain to me how i go about doing this. What is the file i need to create to allow scummvm to be loaded with a game already in place. I am using ubuntu 7.04.
Code: Select all
/PATH/TO/scummvm atlantis
Code: Select all
/PATH/TO/scummvm -z
HEY, SPACETROLL (Roger Wilco?)
Spacetroll, I've made the Black Cauldron icon you wanted. As we say in Sweden, hope it tastes good for ya!spacetroll wrote:Terrific icons! The only game in my ScummVM collection missing from the pack is The Black Cauldron... consider this a humble request! Again, great work.
-
- Posts: 53
- Joined: Tue Jul 10, 2007 6:15 pm
To boldly go where no cleaner gone before
Anyone fancy Space Quest 1 and 2? There's some icons for ya!
Who dah man?
Just whipped up an alternative icon for Space Quest, from the Atari version. Nice.
Monkey 4 on Linux
Well, I think there's a way; it's called Cedega - a Direct3D-fork of Wine. Seems to work fine in Linux. I'll see what I can do.
Perhaps I'll do a Grim Fandango icon for when GrimE is stable? Perhaps Monkey 4 will be supported later on as well.
Perhaps I'll do a Grim Fandango icon for when GrimE is stable? Perhaps Monkey 4 will be supported later on as well.
Re: Monkey 4 on Linux
escape from monkey island works *fine* in WINE (http://appdb.winehq.org/appview.php?iVersionId=289) please don't use cedega if possible, they essentially stole the wine source code for their own profit before it got licenced under the gplthanius wrote:Well, I think there's a way; it's called Cedega - a Direct3D-fork of Wine. Seems to work fine in Linux. I'll see what I can do.
Perhaps I'll do a Grim Fandango icon for when GrimE is stable? Perhaps Monkey 4 will be supported later on as well.
ESCAPE FROM MONKEY ISLAND WORKS FINE IN WINE
Grab Wine instead - it's free (in both terms)!
In other news, as requested; an Escape From Monkey Island icon as well as Grim Fandango - so now I'm complete with one interprenter at least!
In other news, as requested; an Escape From Monkey Island icon as well as Grim Fandango - so now I'm complete with one interprenter at least!