Skip to content

Commit

Permalink
- add menu options, more fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jul 3, 2022
1 parent 71a9938 commit ae9584a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cvarinfo.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
server bool smpb_enable = false;
server bool smpb_enable = true;
server float smpb_range = 3000;
server int smpb_tics = 8;
5 changes: 5 additions & 0 deletions language.enu
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[enu default]
SMPBOptions = "Slaughter Map Performance Booster Options";
SMPBEnabled = "Enable SMPB";
SMPBTicRate = "SMPB Slowdown Rate (Tics) (longer - slower, more performance boost)";
SMPBRange = "SMPB Range Check (lower = more strict, more performance boost)";
25 changes: 25 additions & 0 deletions menudef.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
OptionValue "YesNo"
{
0, "$TXT_NO"
1, "$TXT_YES"
}

AddOptionMenu "OptionsMenuSimple"
{
StaticText " "
Submenu "$SMPBOptions", "SMPBOptions"
}

AddOptionMenu "OptionsMenu"
{
StaticText " "
Submenu "$SMPBOptions", "SMPBOptions"
}

OptionMenu "SMPBOptions"
{
Title "$SMPBOptions"
Option "$SMPBEnabled", "smpb_enable", "YesNo"
Slider "$SMPBTicRate", "smpb_tics", 3, 15, 1
Slider "$SMPBRange", "smpb_range", 1500, 5000, 250
}

0 comments on commit ae9584a

Please sign in to comment.