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"; text { "text";
scale: 1; scale: 1;
effect: FAR_SOFT_SHADOW; effect: SOFT_OUTLINE;
desc { "default"; desc { "default";
rel1.relative: 0.0 0.5; rel1.relative: 0.0 0.5;
rel2.relative: 0.5 1.0; rel2.relative: 0.5 1.0;
color: 0 136 170 255; color: 255 255 255 255;
color2: 0 136 170 50; color2: 0 136 170 100;
color3: 0 136 170 25;
text { text {
size: 25; size: 25;
font: "Sans"; font: "Sans";
text: "Enventor"; text: "enventor";
align: 0.5 0.5; align: 0.5 0.5;
} }
} }

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@ collections {
base_scale: 1.0; base_scale: 1.0;
styles { styles {
style { "text_style"; 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"; group { "main";

View File

@ -7,7 +7,7 @@ images {
styles { styles {
style { name: "default_style"; 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 { parts {
text { name: "text"; text { name: "text";
scale: 1; scale: 1;
effect: FAR_SOFT_SHADOW; effect: SOFT_OUTLINE;
desc { desc {
color: 0 136 170 255; color: 255 255 255 255;
color2: 0 136 170 50; color2: 0 136 170 100;
color3: 0 136 170 25;
text { text {
size: 50; size: 50;
font: FN; font: FN;

View File

@ -93,19 +93,18 @@ const char *TEMPLATE_PART_SPACER[TEMPLATE_PART_SPACER_LINE_CNT] =
" min: 0 0;<br/>" " 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] = const char *TEMPLATE_PART_TEXT[TEMPLATE_PART_TEXT_LINE_CNT] =
{ {
" scale: 1;<br/>", " scale: 1;<br/>",
" effect: FAR_SOFT_SHADOW;<br/>", " effect: SOFT_OUTLINE;<br/>",
" desc { \"default\";<br/>", " desc { \"default\";<br/>",
" align: 0.5 0.5;<br/>", " align: 0.5 0.5;<br/>",
" fixed: 0 0;<br/>", " fixed: 0 0;<br/>",
" min: 0 0;<br/>", " min: 0 0;<br/>",
" color: 0 136 170 255;<br/>", " color: 255 255 255 255;<br/>",
" color2: 0 136 170 50;<br/>", " color2: 0 136 170 100;<br/>",
" color3: 0 136 170 25;<br/>",
" visible: 1;<br/>", " visible: 1;<br/>",
" text {<br/>", " text {<br/>",
" size: 50;<br/>", " size: 50;<br/>",
@ -192,7 +191,7 @@ const char *TEMPLATE_TEXTBLOCK_STYLE_BLOCK[TEMPLATE_TEXTBLOCK_STYLE_LINE_CNT] =
{ {
"styles {<br/>", "styles {<br/>",
" style { \"%s\";<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/>",
"}<br/>" "}<br/>"
}; };