diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 62378a6a4..3ceb2c093 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -1184,6 +1184,9 @@ const memberlabel_t UserdefsLabels[]= { "vm_sprite", USERDEFS_VM_SPRITE, 0, 0 }, { "vm_distance", USERDEFS_VM_DISTANCE, 0, 0 }, { "soundtoggle", USERDEFS_SOUNDTOGGLE, 0, 0 }, + { "gametext_tracking", USERDEFS_GAMETEXT_TRACKING, 0, 0 }, + { "mgametext_tracking", USERDEFS_MGAMETEXT_TRACKING, 0, 0 }, + { "menutext_tracking", USERDEFS_MENUTEXT_TRACKING, 0, 0 }, { "", -1, 0, 0 } // END OF LIST }; diff --git a/source/duke3d/src/gamedef.h b/source/duke3d/src/gamedef.h index 97c07d3cb..55342656c 100644 --- a/source/duke3d/src/gamedef.h +++ b/source/duke3d/src/gamedef.h @@ -519,6 +519,9 @@ enum UserdefsLabel_t USERDEFS_VM_SPRITE, USERDEFS_VM_DISTANCE, USERDEFS_SOUNDTOGGLE, + USERDEFS_GAMETEXT_TRACKING, + USERDEFS_MGAMETEXT_TRACKING, + USERDEFS_MENUTEXT_TRACKING, USERDEFS_END }; diff --git a/source/duke3d/src/gamestructures.cpp b/source/duke3d/src/gamestructures.cpp index bf215e7f4..abbdf516d 100644 --- a/source/duke3d/src/gamestructures.cpp +++ b/source/duke3d/src/gamestructures.cpp @@ -169,6 +169,9 @@ int32_t __fastcall VM_GetUserdef(int32_t labelNum) case USERDEFS_VM_SPRITE: labelNum = vm.spriteNum; break; case USERDEFS_VM_DISTANCE: labelNum = vm.playerDist; break; case USERDEFS_SOUNDTOGGLE: labelNum = ud.config.SoundToggle; break; + case USERDEFS_GAMETEXT_TRACKING: labelNum = MF_BluefontGame.between.x; break; + case USERDEFS_MGAMETEXT_TRACKING: labelNum = MF_Bluefont.between.x; break; + case USERDEFS_MENUTEXT_TRACKING: labelNum = MF_Redfont.between.x; break; default: labelNum = -1; break; } @@ -288,6 +291,9 @@ void __fastcall VM_SetUserdef(int32_t const labelNum, int32_t const iSet) case USERDEFS_VM_PLAYER: vm.playerNum = iSet; vm.pPlayer = g_player[iSet].ps; break; case USERDEFS_VM_SPRITE: vm.spriteNum = iSet; vm.pSprite = &sprite[iSet]; vm.pData = &actor[iSet].t_data[0]; break; case USERDEFS_VM_DISTANCE: vm.playerDist = iSet; break; + case USERDEFS_GAMETEXT_TRACKING: MF_BluefontGame.between.x = iSet; break; + case USERDEFS_MGAMETEXT_TRACKING: MF_BluefontRed.between.x = MF_Bluefont.between.x = iSet; break; + case USERDEFS_MENUTEXT_TRACKING: MF_Redfont.between.x = iSet; break; default: break; } }