188 {
"fonts/A Damn Mess.ttf", Value(
"fonts/arial.ttf") },
189 {
"fonts/Abberancy.ttf", Value(
"fonts/arial.ttf") },
190 {
"fonts/Abduction.ttf", Value(
"fonts/arial.ttf") },
191 {
"fonts/Schwarzwald.ttf", Value(
"fonts/arial.ttf") }
194 FileUtils::getInstance()->setFilenameLookupDictionary(dict);
195 suffix =
" replaced by arial.ttf";
198 auto s = Director::getInstance()->getWinSize();
200 auto blockSize = Size(s.width / 3, 200);
211 auto top = Label::createWithTTF(
"fonts/A Damn Mess.ttf" + suffix,
"fonts/A Damn Mess.ttf", 24);
212 auto left = Label::createWithTTF(
"fonts/Abberancy.ttf" + suffix,
"fonts/Abberancy.ttf", fontSize,
214 auto center = Label::createWithTTF(
"fonts/Abduction.ttf" + suffix,
"fonts/Abduction.ttf", fontSize,
216 auto right = Label::createWithTTF(
"fonts/Schwarzwald.ttf" + suffix,
"fonts/Schwarzwald.ttf", fontSize,
219 auto leftColor = LayerColor::create(Color4B(100, 100, 100, 255), blockSize.width, blockSize.height);
220 auto centerColor = LayerColor::create(Color4B(200, 100, 100, 255), blockSize.width, blockSize.height);
221 auto rightColor = LayerColor::create(Color4B(100, 100, 200, 255), blockSize.width, blockSize.height);
223 leftColor->setIgnoreAnchorPointForPosition(
false);
224 centerColor->setIgnoreAnchorPointForPosition(
false);
225 rightColor->setIgnoreAnchorPointForPosition(
false);
227 top->setAnchorPoint(Vec2(0.5, 1));
228 left->setAnchorPoint(Vec2(0, 0.5));
229 leftColor->setAnchorPoint(Vec2(0, 0.5));
230 center->setAnchorPoint(Vec2(0, 0.5));
231 centerColor->setAnchorPoint(Vec2(0, 0.5));
232 right->setAnchorPoint(Vec2(0, 0.5));
233 rightColor->setAnchorPoint(Vec2(0, 0.5));
235 top->setPosition(s.width / 2, s.height - 20);
236 left->setPosition(0, s.height / 2);
237 leftColor->setPosition(left->getPosition());
238 center->setPosition(blockSize.width, s.height / 2);
239 centerColor->setPosition(center->getPosition());
240 right->setPosition(blockSize.width * 2, s.height / 2);
241 rightColor->setPosition(right->getPosition());
static TextVAlignment verticalAlignment[]
virtual void onEnter() override