- scriptified the CVar printers for the gameplay and compatibility menus.
This commit is contained in:
parent
2b977f70e6
commit
12db190f41
3 changed files with 32 additions and 46 deletions
|
|
@ -510,49 +510,3 @@ DMenuItemBase *DOptionMenuDescriptor::GetItem(FName name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class DGameplayMenu : public DOptionMenu
|
||||
{
|
||||
DECLARE_CLASS(DGameplayMenu, DOptionMenu)
|
||||
|
||||
public:
|
||||
DGameplayMenu()
|
||||
{}
|
||||
|
||||
void Drawer ()
|
||||
{
|
||||
Super::Drawer();
|
||||
|
||||
char text[64];
|
||||
mysnprintf(text, 64, "dmflags = %d dmflags2 = %d", *dmflags, *dmflags2);
|
||||
screen->DrawText (SmallFont, OptionSettings.mFontColorValue,
|
||||
(screen->GetWidth() - SmallFont->StringWidth (text) * CleanXfac_1) / 2, 0, text,
|
||||
DTA_CleanNoMove_1, true, TAG_DONE);
|
||||
}
|
||||
};
|
||||
|
||||
IMPLEMENT_CLASS(DGameplayMenu, false, false)
|
||||
|
||||
class DCompatibilityMenu : public DOptionMenu
|
||||
{
|
||||
DECLARE_CLASS(DCompatibilityMenu, DOptionMenu)
|
||||
|
||||
public:
|
||||
DCompatibilityMenu()
|
||||
{}
|
||||
|
||||
void Drawer ()
|
||||
{
|
||||
Super::Drawer();
|
||||
|
||||
char text[64];
|
||||
mysnprintf(text, 64, "compatflags = %d compatflags2 = %d", *compatflags, *compatflags2);
|
||||
screen->DrawText (SmallFont, OptionSettings.mFontColorValue,
|
||||
(screen->GetWidth() - SmallFont->StringWidth (text) * CleanXfac_1) / 2, 0, text,
|
||||
DTA_CleanNoMove_1, true, TAG_DONE);
|
||||
}
|
||||
};
|
||||
|
||||
IMPLEMENT_CLASS(DCompatibilityMenu, false, false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue