Advertisement
Baoulettes

d_msn_btn_t

Feb 21st, 2020
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. void *(*ori__MypageMissionText)(void *, int) = nullptr;
  2. void *MypageMissionText(void *self, int set_label, int set_size) {
  3.     static auto I18n_getString = DokkanFunction<std::string (std::string const&, std::string const&)>("_ZN4I18n9getStringERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_");
  4.     static auto setString   = DokkanFunction<void *(void *, std::string)>("_ZN7cocos2d2ui4Text9setStringERKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE");
  5.     static auto setFontSize = DokkanFunction<void *(void *, float)>("_ZN7cocos2d2ui4Text11setFontSizeEf");
  6.     auto Text_Label = ori__MypageMissionText(self, set_label);                     
  7.     auto Text_Size  = ori__MypageMissionText(self, set_size);                      
  8.     setString(Text_Label, I18n_getString("mypage/ama/terasu", "mypage/ama/terasu"));
  9.     setFontSize(Text_Size, 0.8f);
  10.     return Text_Label,Text_Size;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement