update text & textblock template code

This commit is contained in:
Hermet Park 2016-04-15 16:37:25 +09:00
parent 8b28c062d9
commit e94c7bdc12
7 changed files with 24 additions and 30 deletions

View File

@ -30,17 +30,16 @@ collections {
}
text { "text";
scale: 1;
effect: FAR_SOFT_SHADOW;
effect: SOFT_OUTLINE;
desc { "default";
rel1.relative: 0.0 0.5;
rel2.relative: 0.5 1.0;
color: 0 136 170 255;
color2: 0 136 170 50;
color3: 0 136 170 25;
color: 255 255 255 255;
color2: 0 136 170 100;
text {
size: 25;
font: "Sans";
text: "Enventor";
text: "enventor";
align: 0.5 0.5;
}
}

View File

@ -22,11 +22,10 @@ collections {
parts {
text { "text";
scale: 1;
effect: FAR_SOFT_SHADOW;
effect: SOFT_OUTLINE;
desc { "default";
color: 0 136 170 255;
color2: 0 136 170 50;
color3: 0 136 170 25;
color: 255 255 255 255;
color2: 0 136 170 100;
text {
size: 30;
font: "Sans";

View File

@ -42,17 +42,16 @@ collections {
}
text { "text";
scale: 1;
effect: FAR_SOFT_SHADOW;
effect: SOFT_OUTLINE;
desc { "default";
rel1.relative: 0.0 0.5;
rel2.relative: 0.5 1.0;
color: 0 136 170 255;
color2: 0 136 170 50;
color3: 0 136 170 25;
color: 255 255 255 255;
color2: 0 136 170 100;
text {
size: 25;
font: "Sans";
text: "Enventor";
text: "enventor";
align: 0.5 0.5;
}
map {

View File

@ -4,13 +4,12 @@ collections {
parts {
text { "text";
scale: 1;
effect: FAR_SOFT_SHADOW;
effect: SOFT_OUTLINE;
desc { "default";
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
color: 0 136 170 255;
color2: 0 136 170 50;
color3: 0 136 170 25;
color: 255 255 255 255;
color2: 0 136 170 100;
text {
size: 50;
font: "Sans";

View File

@ -2,7 +2,7 @@ collections {
base_scale: 1.0;
styles {
style { "text_style";
base: "font="Sans" font_size=30 text_class=entry color=#0088AA style=shadow,bottom shadow_color=#00000080 valign=0.5 ellipsis=1.0 wrap=none align=center";
base: "font="Sans" font_size=30 text_class=entry color=#FFFFFF style=soft_outline outline_color=#0088AA64 valign=0.5 ellipsis=1.0 wrap=none align=center";
}
}
group { "main";

View File

@ -7,7 +7,7 @@ images {
styles {
style { name: "default_style";
base: "font="Sans" font_size=30 text_class=entry color=#0088AA style=shadow,bottom shadow_color=#00000080 valign=0.5 ellipsis=1.0 wrap=none align=center";
base: "font="Sans" font_size=30 text_class=entry color=#FFFFFF style=soft_outline outline_color=#0088AA64 valign=0.5 ellipsis=1.0 wrap=none align=center";
}
}
@ -33,11 +33,10 @@ group { "Text_bg";
parts {
text { name: "text";
scale: 1;
effect: FAR_SOFT_SHADOW;
effect: SOFT_OUTLINE;
desc {
color: 0 136 170 255;
color2: 0 136 170 50;
color3: 0 136 170 25;
color: 255 255 255 255;
color2: 0 136 170 100;
text {
size: 50;
font: FN;

View File

@ -93,19 +93,18 @@ const char *TEMPLATE_PART_SPACER[TEMPLATE_PART_SPACER_LINE_CNT] =
" min: 0 0;<br/>"
};
#define TEMPLATE_PART_TEXT_LINE_CNT 17
#define TEMPLATE_PART_TEXT_LINE_CNT 16
const char *TEMPLATE_PART_TEXT[TEMPLATE_PART_TEXT_LINE_CNT] =
{
" scale: 1;<br/>",
" effect: FAR_SOFT_SHADOW;<br/>",
" effect: SOFT_OUTLINE;<br/>",
" desc { \"default\";<br/>",
" align: 0.5 0.5;<br/>",
" fixed: 0 0;<br/>",
" min: 0 0;<br/>",
" color: 0 136 170 255;<br/>",
" color2: 0 136 170 50;<br/>",
" color3: 0 136 170 25;<br/>",
" color: 255 255 255 255;<br/>",
" color2: 0 136 170 100;<br/>",
" visible: 1;<br/>",
" text {<br/>",
" size: 50;<br/>",
@ -192,7 +191,7 @@ const char *TEMPLATE_TEXTBLOCK_STYLE_BLOCK[TEMPLATE_TEXTBLOCK_STYLE_LINE_CNT] =
{
"styles {<br/>",
" style { \"%s\";<br/>",
" base: \"font=\"Sans\" font_size=30 text_class=entry color=#0088AA style=shadow,bottom shadow_color=#00000080 valign=0.5 ellipsis=1.0 wrap=none align=center\";<br/>",
" base: \"font=\"Sans\" font_size=30 text_class=entry color=#FFFFFF style=soft_outline outline_color=#0088AA64 valign=0.5 ellipsis=1.0 wrap=none align=center\";<br/>",
" }<br/>",
"}<br/>"
};