From: <ult...@us...> - 2006-10-27 22:06:38
|
Revision: 197 http://svn.sourceforge.net/opengate/?rev=197&view=rev Author: ultrasick Date: 2006-10-27 15:06:28 -0700 (Fri, 27 Oct 2006) Log Message: ----------- removed some unnecessary code from the categories section + changed texts from images to ttf (without antialiasing). Antialiasing must be turned on in c++. I can't do that in html will delete all caption images Modified Paths: -------------- data/GUI/docked/screen - market/show (translate and then kill me).htm Modified: data/GUI/docked/screen - market/show (translate and then kill me).htm =================================================================== --- data/GUI/docked/screen - market/show (translate and then kill me).htm 2006-10-27 22:04:20 UTC (rev 196) +++ data/GUI/docked/screen - market/show (translate and then kill me).htm 2006-10-27 22:06:28 UTC (rev 197) @@ -1,9 +1,16 @@ <html> <head> +<style> + div{ + font-family:Impact; + color:#88D997; + } +</style> + <script language="JavaScript" type="text/javascript"><!-- // General preferences - var Language = 'german'; // Currently possible: "german", "english" + var Language = 'english'; // Currently possible: "german", "english" function Scrollbar_Show(Object_ID){ Object = document.getElementById(Object_ID); @@ -59,7 +66,7 @@ }else if(ID==7){ Caption = 'Schilde'; }else if(ID==8){ - Caption = 'Geschuetze'; + Caption = 'Gesch\xFCtze'; }else if(ID==9){ Caption = 'Raketen'; }else if(ID==10){ @@ -73,19 +80,11 @@ } function Categorie_MouseOver(ID){ - Object = document.getElementById('Categorie_' + ID); - - Caption = Categorie_Fetch_Caption(ID); - - Object.src = 'captions/' + Language + '/12/' + Caption + ' - selected.png'; + document.getElementById('Categorie_' + ID).style.color = '#BAEAC3'; } function Categorie_MouseOut(ID){ - Object = document.getElementById('Categorie_' + ID); - - Caption = Categorie_Fetch_Caption(ID); - - Object.src = 'captions/' + Language + '/12/' + Caption + ' - normal.png'; + document.getElementById('Categorie_' + ID).style.color = '#88D997'; } function Categorie_Click(ID){ @@ -104,22 +103,21 @@ Object_Border.style.opacity = 1; Object_Filling.style.opacity = 0.5; - // Caption von "Public market" \xE4ndern - if(ID==11){ - if(Language=='english'){ - document.getElementById('Market_Caption').src = 'captions/' + Language + '/10/Private storage room.png'; - }else if(Language=='german'){ - document.getElementById('Market_Caption').src = 'captions/' + Language + '/10/Privater Lagerraum.png'; - document.getElementById('Market_Caption').style.top = 133; + // Change caption of "Public market" [start] + if(ID==11){ + if(Language=='english'){ + document.getElementById('Market_Caption').innerHTML = 'Private storage room'; + }else if(Language=='german'){ + document.getElementById('Market_Caption').innerHTML = 'Privater Lagerraum'; + } + }else{ + if(Language=='english'){ + document.getElementById('Market_Caption').innerHTML = 'Public market'; + }else if(Language=='german'){ + document.getElementById('Market_Caption').innerHTML = '\xD6ffentlicher Markt'; + } } - }else{ - if(Language=='english'){ - document.getElementById('Market_Caption').src = 'captions/' + Language + '/10/Public market.png'; - }else if(Language=='german'){ - document.getElementById('Market_Caption').src = 'captions/' + Language + '/10/Oeffentlicher Markt.png'; - document.getElementById('Market_Caption').style.top = 130; - } - } + // Change caption of "Public market" [end] } // Categorie stuff [end] @@ -209,18 +207,16 @@ // Embracing borders [start] if(Language=='english'){ // Market - document.getElementById('Market_Caption').src = 'captions/' + Language + '/10/Public market.png'; - document.getElementById('Market_Caption').style.top = 133; + document.getElementById('Market_Caption').innerHTML = 'Public market'; // Cargo hold - document.getElementById('Cargo_hold_Caption').src = 'captions/' + Language + '/10/Private cargo hold.png'; + document.getElementById('Cargo_hold_Caption').innerHTML = 'Private cargo hold'; }else if(Language=='german'){ // Market - document.getElementById('Market_Caption').src = 'captions/' + Language + '/10/Oeffentlicher Markt.png'; - document.getElementById('Market_Caption').style.top = 130; + document.getElementById('Market_Caption').innerHTML = '\xD6ffentlicher Markt'; // Cargo hold - document.getElementById('Cargo_hold_Caption').src = 'captions/' + Language + '/10/Privater Frachtraum.png'; + document.getElementById('Cargo_hold_Caption').innerHTML = 'Privater Frachtraum'; } // Embracing borders [end] @@ -235,8 +231,8 @@ Caption = Categorie_Fetch_Caption(i); - Object.src = 'captions/' + Language + '/12/' + Caption + ' - normal.png'; - Object.style.top = eval(125 + 30 * i); + Object.innerHTML = Caption; + Object.style.top = eval(121 + 30 * i); } // Captions [end] @@ -338,7 +334,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; " onMouseOver="Categorie_MouseOver('1')" @@ -365,7 +361,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -394,7 +390,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -423,7 +419,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -452,7 +448,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -481,7 +477,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -510,7 +506,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -539,7 +535,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -568,7 +564,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -597,7 +593,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -626,7 +622,7 @@ style=" position:absolute; left:121; - z-index:14; + z-index:15; opacity:0 " @@ -1390,163 +1386,158 @@ <!-- Buttons [end] --> <!-- Content fillings and borders [end] --> - <!-- Caption [start] --> + <!-- Captions [start] --> <!-- Embracing borders [start] --> - <img + <div id=Market_Caption style=" position:absolute; left:376; + top:129; z-index:14; + + font-size:10pt; " > + </div> - <img + <div id=Cargo_hold_Caption style=" position:absolute; left:736; - top:133; + top:129; z-index:14; + + font-size:10pt; " > + </div> <!-- Embracing borders [end] --> <!-- Categories [start] --> - <img + <div id=Categorie_1 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('1')" - onMouseOut="Categorie_MouseOut('1')" - onClick="Categorie_Click('1')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_2 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('2')" - onMouseOut="Categorie_MouseOut('2')" - onClick="Categorie_Click('2')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_3 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('3')" - onMouseOut="Categorie_MouseOut('3')" - onClick="Categorie_Click('3')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_4 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('4')" - onMouseOut="Categorie_MouseOut('4')" - onClick="Categorie_Click('4')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_5 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('5')" - onMouseOut="Categorie_MouseOut('5')" - onClick="Categorie_Click('5')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_6 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('6')" - onMouseOut="Categorie_MouseOut('6')" - onClick="Categorie_Click('6')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_7 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('7')" - onMouseOut="Categorie_MouseOut('7')" - onClick="Categorie_Click('7')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_8 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('8')" - onMouseOut="Categorie_MouseOut('8')" - onClick="Categorie_Click('8')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_9 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('9')" - onMouseOut="Categorie_MouseOut('9')" - onClick="Categorie_Click('9')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_10 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('10')" - onMouseOut="Categorie_MouseOut('10')" - onClick="Categorie_Click('10')" + font-size:12pt; + " > - <img + </div> + <div id=Categorie_11 style=" position:absolute; left:160; - z-index:15; - " + z-index:14; - onMouseOver="Categorie_MouseOver('11')" - onMouseOut="Categorie_MouseOut('11')" - onClick="Categorie_Click('11')" + font-size:12pt; + " > <!-- Categories [end] --> - <!-- Caption [end] --> + <!-- Captions [end] --> <!-- Absolut positionierte Objekte [end] --> </body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |