@@ -165,13 +165,10 @@ namespace Hooks {
165
165
reinterpret_cast <void (*)(string*, int )>(
166
166
dlsym (dlopen (" libcocos2dcpp.so" , RTLD_LAZY), " _ZN12GauntletNode11nameForTypeE12GauntletType" ))(&gauntletName, gauntletType);
167
167
168
- if (shouldReverseGauntlet (gauntletType)) {
169
- nameLabel->setString (string (" Остров " ).append (gauntletName).c_str ());
170
- shadowLabel->setString (string (" Остров " ).append (gauntletName).c_str ());
171
- } else {
172
- nameLabel->setString (gauntletName.append (" Остров" ).c_str ());
173
- shadowLabel->setString (gauntletName.c_str ());
174
- }
168
+ auto newName = fmt::format (shouldReverseGauntlet (gauntletType) ? " Остров {}" : " {} Остров" , gauntletName);
169
+
170
+ nameLabel->setString (newName.c_str ());
171
+ shadowLabel->setString (newName.c_str ());
175
172
176
173
return true ;
177
174
}
@@ -191,7 +188,7 @@ namespace Hooks {
191
188
lbl = node;
192
189
}
193
190
194
- lbl->setString (string (" Таблица Лидеров для " ). append ( MBO (string, lvl, 252 )).c_str ());
191
+ lbl->setString (fmt::format (" Таблица Лидеров для {} " , MBO (string, lvl, 252 )).c_str ());
195
192
196
193
return true ;
197
194
}
@@ -202,7 +199,7 @@ namespace Hooks {
202
199
auto spr = cocos2d::CCSprite::createWithSpriteFrameName (" gdl_icon.png" );
203
200
spr->setScale (1 .25f );
204
201
205
- auto btn = CCMenuItemSpriteExtra::create (spr, spr, self, (cocos2d::SEL_MenuHandler)& GDLMenu::openLayer);
202
+ auto btn = CCMenuItemSpriteExtra::create (spr, spr, self, menu_selector ( GDLMenu::openLayer) );
206
203
btn->setPosition ({0 , 0 });
207
204
208
205
auto menu = CCMenu::create ();
@@ -270,7 +267,7 @@ namespace Hooks {
270
267
271
268
auto winSize = CCDirector::sharedDirector ()->getWinSize ();
272
269
273
- auto lbl = CCLabelBMFont::create (" GDL 1.1.1 " , " goldFont.fnt" );
270
+ auto lbl = CCLabelBMFont::create (" GDL 1.1.2 " , " goldFont.fnt" );
274
271
lbl->setPosition ({winSize.width / 2 .f , winSize.height - 15 .f });
275
272
lbl->setScale (.8f );
276
273
self->addChild (lbl);
0 commit comments