mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
Move StartGameDirect from PlayerMenu to Menu
This commit is contained in:
parent
133fbf1390
commit
9f24d8babc
2 changed files with 6 additions and 3 deletions
|
@ -135,7 +135,7 @@ void StartGameDirect(bool hasPlayerClass, bool randomPlayerClass, PClassActor *
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION_NATIVE(DPlayerMenu, StartGameDirect, StartGameDirect)
|
DEFINE_ACTION_FUNCTION_NATIVE(DMenu, StartGameDirect, StartGameDirect)
|
||||||
{
|
{
|
||||||
PARAM_PROLOGUE;
|
PARAM_PROLOGUE;
|
||||||
PARAM_BOOL(hasPlayerClass);
|
PARAM_BOOL(hasPlayerClass);
|
||||||
|
|
|
@ -33,6 +33,11 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
extend class Menu
|
||||||
|
{
|
||||||
|
static native void StartGameDirect(bool hasPlayerClass, bool randomPlayerClass, Class<PlayerPawn> playerClass, int Episode, int Skill);
|
||||||
|
}
|
||||||
|
|
||||||
class PlayerMenu : ListMenu
|
class PlayerMenu : ListMenu
|
||||||
{
|
{
|
||||||
int mRotation;
|
int mRotation;
|
||||||
|
@ -41,8 +46,6 @@ class PlayerMenu : ListMenu
|
||||||
Array<int> PlayerColorSets;
|
Array<int> PlayerColorSets;
|
||||||
Array<int> mPlayerSkins;
|
Array<int> mPlayerSkins;
|
||||||
|
|
||||||
static native void StartGameDirect(bool hasPlayerClass, bool randomPlayerClass, Class<PlayerPawn> playerClass, int Episode, int Skill);
|
|
||||||
|
|
||||||
// All write function for the player config are native to prevent abuse.
|
// All write function for the player config are native to prevent abuse.
|
||||||
static native void AutoaimChanged(float val);
|
static native void AutoaimChanged(float val);
|
||||||
static native void TeamChanged(int val);
|
static native void TeamChanged(int val);
|
||||||
|
|
Loading…
Reference in a new issue