Band aid fix for log
This commit is contained in:
parent
090cac0587
commit
c5fc05df50
|
@ -48,7 +48,7 @@ REM call copy /Y "%~dp0\patches\images\story_ui_sprites00_patch.png" "%~dp0\buil
|
|||
call copy /Y "%~dp0\patches\koruri-semibold.ttf" "%~dp0\build\app\assets\fonts\koruri-semibold.ttf"
|
||||
|
||||
echo Updating sprites and AndroidManifest.xml...
|
||||
call python buildassets.py
|
||||
call python3 buildassets.py
|
||||
|
||||
:build
|
||||
echo Copying new smali files...
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
/**************************
|
||||
* Magia Translate Ver *
|
||||
**************************/
|
||||
#define MT_VERSION 116
|
||||
#define MT_VERSION 117
|
||||
|
||||
#endif
|
|
@ -317,24 +317,26 @@ void *setPositionNew(uintptr_t label, cocos2d::Vec2 const& position) {
|
|||
// History
|
||||
if (storyLogUnitAddMessageOffset != 0 && addr >= storyLogUnitAddMessageOffset) {
|
||||
uintptr_t difference = addr - storyLogUnitAddMessageOffset;
|
||||
//LOGI("LOG MESSAGE: %.2f %.2f", position.x, position.y);
|
||||
//LOGI("Difference: %p", (void *)difference);
|
||||
if (position.y >= 55.50 && position.y <= 56.50 && difference <= 0x800) {
|
||||
LOGD("LOG MESSAGE: %.2f %.2f", position.x, position.y);
|
||||
LOGD("Difference: %p", (void *)difference);
|
||||
//if (position.y >= 55.50 && position.y <= 56.50 && difference <= 0x1000) {
|
||||
if (position.y >= 37.5 && position.y <= 39.5 && difference <= 0x1000) {
|
||||
float newPosX = position.x + 125.0;
|
||||
//LOGD("Moved log text from %.2f to %.2f", position.x, newPosX);
|
||||
LOGD("Moved log text from %.2f to %.2f", position.x, newPosX);
|
||||
cocos2d::Vec2 newPosition = cocos2d::Vec2(newPosX, 66.50);
|
||||
return setPositionHooked(label, newPosition);
|
||||
}
|
||||
else if (difference <= 0x200 && position.x == 70.00) {
|
||||
LOGD("Moving left-aligned name down in the log.");
|
||||
auto newY = position.y - 15.0;
|
||||
auto newY = position.y;
|
||||
cocos2d::Vec2 newPosition = cocos2d::Vec2(position.x, newY);
|
||||
return setPositionHooked(label, newPosition);
|
||||
}
|
||||
else if (difference <= 0x200 && position.x == 500.00) { // Names on the right
|
||||
LOGD("Moving name further to the right in log.");
|
||||
auto newX = position.x + 200;
|
||||
auto newY = position.y - 15.0;
|
||||
//auto newY = position.y - 15.0;
|
||||
auto newY = position.y;
|
||||
cocos2d::Vec2 newPosition = cocos2d::Vec2(newX, newY);
|
||||
return setPositionHooked(label, newPosition);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue