Add new userdef members gametext_tracking, mgametext_tracking, and menutext_tracking.

git-svn-id: https://svn.eduke32.com/eduke32@6213 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-06-20 09:28:59 +00:00
parent 4f5ea33917
commit 05945c920b
3 changed files with 12 additions and 0 deletions

View file

@ -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
};

View file

@ -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
};

View file

@ -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;
}
}