|
From: Tapio V. <aa...@us...> - 2009-12-11 12:44:49
|
Module: performous
Branch: dance
Commit: 1bf71b0052a62a75e7e158a343066427fea08c74
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Thu Dec 3 19:50:45 2009 +0100
Resizeable menu. Comments will also be displayed when the aspect ratio is changed.
---
game/screen_intro.cc | 4 ++--
themes/default/intro_configure.svg | 12 ++++++------
themes/default/menu_comment.svg | 12 ++++++------
themes/default/menu_comment_bg.svg | 35 +++++++++++++++++++++--------------
4 files changed, 35 insertions(+), 28 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index aa3edfe..d316c43 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -63,9 +63,9 @@ void ScreenIntro::draw_menu_options() {
void ScreenIntro::draw() {
theme->bg.draw();
m_menuOptions[selected].image.draw();
- theme->comment_bg.dimensions.center().center(0.336);
+ theme->comment_bg.dimensions.center().screenBottom(-0.01);
theme->comment_bg.draw();
- theme->comment.dimensions.left(-0.45).center(0.336);
+ theme->comment.dimensions.left(-0.45).screenBottom(-0.028);
theme->comment.draw(m_menuOptions[selected].comment);
draw_menu_options();
if (m_dialog) m_dialog->draw();
diff --git a/themes/default/intro_configure.svg b/themes/default/intro_configure.svg
index 3c863c7..62569ca 100644
--- a/themes/default/intro_configure.svg
+++ b/themes/default/intro_configure.svg
@@ -44,9 +44,9 @@
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
- inkscape:zoom="0.43503001"
- inkscape:cx="707.79902"
- inkscape:cy="400.43025"
+ inkscape:zoom="1.74012"
+ inkscape:cx="542.38104"
+ inkscape:cy="467.16116"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:current-layer="g2911-6"
@@ -316,11 +316,11 @@
sodipodi:type="inkscape:persp3d" />
<filter
inkscape:collect="always"
- id="filter3942">
+ id="filter3651">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="11.89846"
- id="feGaussianBlur3944" />
+ id="feGaussianBlur3653" />
</filter>
</defs>
<text
@@ -352,7 +352,7 @@
d="m -662.10043,-996.96443 c -26.42907,0.31062 -53.33604,14.71361 -64.00362,39.52245 -2.14098,2.63628 -2.12279,8.02891 -4.87138,9.28929 -109.93748,-0.0693 -219.875,-0.21667 -329.81247,-0.12424 -5.652,-18.87058 -17.5616,-39.21228 -38.3224,-43.5179 -28.099,-6.22446 -60.5886,-5.14908 -83.6463,13.9554 -14.2658,11.22274 -26.637,26.24038 -31.5938,44 -1.0239,8.44178 7.285,16.76924 15.8096,14.1108 20.8127,-1.60526 40.8516,-12.32826 61.9716,-9.07955 6.6538,2.97582 8.3757,11.85778 10.6563,18.28125 1.9507,8.20214 2.1408,19.02414 -4.8125,24.90625 -10.8912,5.83792 -23.8262,4.67796 -35.625,7.3125 -13.9259,1.79716 -27.984,4.81763 -40.1562,12 18.6914,33.54702 61.7596,47.58043 98.1606,39.14497 24.3587,-4.1628 43.9036,-23.73812 51.4956,-46.61372 110.23955,0.0599 220.47912,0.14396 330.71872,0.125 5.60381,19.42915 18.34673,40.23886 39.75,43.875 27.93378,5.99231 60.02369,4.31154 82.6875,-14.75 13.9785,-11.28851 26.41263,-26.03632 30.96875,-43.71875 1.0279,-8.42535 -7.17734,-16.6018 -15.625,-14.0625 -21.06347,1.75414 -41.30627,12.6513 -62.65625,9.03125 -5.11927,-1.97895 -6.1151,-8.58102 -8.53125,-12.96875 -3.1942,-9.20476 -4.62078,-21.41372 2.1875,-29.3125 9.43049,-6.52177 21.5301,-4.84768 32.2789,-7.51736 15.29568,-1.83888 31.12608,-4.57971 44.56485,-12.57639 -15.81941,-28.68423 -49.6161,-43.0859 -81.59375,-41.3125 z"
id="rect2874-8-7-5" />
<path
- style="fill:#ffffff;fill-opacity:1;display:inline;filter:url(#filter3942)"
+ style="fill:#ffffff;fill-opacity:1;display:inline;filter:url(#filter3651)"
d="m -661.88168,-997.08943 c -26.47854,-0.0438 -53.85737,14.22035 -64.71875,39.0625 -2.2217,2.82322 -2.26188,8.37645 -5.125,9.74924 -109.94789,-0.10763 -219.89581,-0.14691 -329.84377,-0.12424 -5.5038,-18.94926 -17.72,-39.50328 -38.5425,-43.54241 -27.492,-6.13598 -58.9908,-5.04917 -81.9575,12.85491 -14.775,11.07638 -27.2007,26.34402 -32.75,44.125 -1.8337,8.20257 5.3365,16.59682 13.8126,15.46875 9.275,-0.51659 18.0457,-3.83721 27.2277,-5.11555 12.6301,-3.0352 25.9112,-7.55634 38.8973,-3.50945 8.4529,11.40982 13.6565,28.87256 4.9374,41.3125 -10.0009,7.03993 -22.9617,5.23054 -34.3353,8.00434 -14.8962,1.85722 -29.9734,4.75354 -43.0709,12.30816 18.4898,33.05688 60.431,47.11661 96.5,39.65625 24.9401,-3.73652 45.5334,-23.41907 53.2812,-47.0625 110.25001,0.0599 220.5,0.14397 330.75002,0.125 5.59018,18.861 17.48225,39.44812 38.375,43.46875 28.85975,6.78689 62.1557,4.74796 85.375,-15.34375 13.4955,-11.21486 25.37132,-25.90713 29.75,-43.09375 0.91437,-8.73107 -7.83268,-15.93854 -16.34375,-13.84375 -15.50451,2.48183 -30.75207,7.0661 -46.125,9.6875 -6.0258,0.5723 -13.08596,1.2209 -18.21875,-1.8125 -8.13386,-11.32563 -12.82423,-28.26366 -4.59375,-40.5 9.90168,-7.25217 22.93195,-5.38236 34.27267,-8.16199 14.91391,-1.80662 30.04328,-4.68887 43.10233,-12.40051 -15.65471,-28.41088 -48.99752,-42.8563 -80.65625,-41.3125 z"
id="rect2874-8-7-9" />
<path
diff --git a/themes/default/menu_comment.svg b/themes/default/menu_comment.svg
index 23e3f70..836039d 100755
--- a/themes/default/menu_comment.svg
+++ b/themes/default/menu_comment.svg
@@ -12,8 +12,8 @@
version="1.0"
x="0"
y="0"
- width="106"
- height="23"
+ width="80"
+ height="20"
id="svg559"
sodipodi:version="0.32"
inkscape:version="0.47pre4 r22446"
@@ -63,14 +63,14 @@
inkscape:window-maximized="1" />
<text
x="1.8177605"
- y="20.087931"
- style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;display:inline;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS"
+ y="17.063263"
+ style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;display:inline;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS"
id="text10203"
xml:space="preserve"
sodipodi:linespacing="125%"
transform="scale(1.0082228,0.99184427)"><tspan
x="1.8177605"
- y="20.087931"
+ y="17.063263"
id="tspan10205"
- style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS">Comment</tspan></text>
+ style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS">Comment</tspan></text>
</svg>
diff --git a/themes/default/menu_comment_bg.svg b/themes/default/menu_comment_bg.svg
index 15f6303..e324e40 100644
--- a/themes/default/menu_comment_bg.svg
+++ b/themes/default/menu_comment_bg.svg
@@ -11,7 +11,7 @@
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1000"
- height="51"
+ height="35"
id="svg2919"
version="1.1"
inkscape:version="0.47pre4 r22446"
@@ -58,7 +58,7 @@
x2="0"
y1="768"
x1="0"
- gradientTransform="matrix(1,0,0,0.98,-3.1907349e-7,298.72223)"
+ gradientTransform="matrix(1.0001729,0,0,0.66978968,-0.08644188,537.20848)"
gradientUnits="userSpaceOnUse"
id="linearGradient2917"
xlink:href="#linearGradient5448"
@@ -70,6 +70,13 @@
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
+ <inkscape:perspective
+ id="perspective2821"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
</defs>
<sodipodi:namedview
id="base"
@@ -79,8 +86,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.70710678"
- inkscape:cx="472.87473"
- inkscape:cy="116.23028"
+ inkscape:cx="403.07156"
+ inkscape:cy="55.181507"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
@@ -105,20 +112,20 @@
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
- transform="translate(0,-1001.3622)">
+ transform="translate(0,-1017.3622)">
<rect
- style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.00187743;stroke-opacity:1"
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.82833934;stroke-opacity:1"
id="rect3982-4"
- width="1003.7961"
- height="49.998123"
- x="-1.8940613"
- y="1001.8631" />
+ width="1003.9697"
+ height="34.171661"
+ x="-1.9808303"
+ y="1017.7764" />
<rect
style="fill:url(#linearGradient2917);fill-opacity:1;stroke:none"
id="rect3982"
- width="1000"
- height="49"
- x="0"
- y="1002.3622" />
+ width="1000.1728"
+ height="33.489483"
+ x="-0.086441576"
+ y="1018.1177" />
</g>
</svg>
|