-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1360 from Deledrius/pyLayer
Enable Python access to plLayer and ImageLibMod textures.
- Loading branch information
Showing
27 changed files
with
1,013 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "plAvatar/plSwimRegion.h" | ||
#include "plSurface/plGrassShaderMod.h" | ||
#include "plGrassComponent.h" | ||
#include "plSurface/plLayer.h" | ||
|
||
#include "plMessageBox/hsMessageBox.h" | ||
|
||
|
@@ -990,6 +991,21 @@ bool plPythonFileComponent::Convert(plMaxNode *node, plErrorMsg *pErrMsg) | |
} | ||
} | ||
break; | ||
case plAutoUIParam::kTypeLayer: | ||
{ | ||
int numKeys = param->GetCount(pb); | ||
for (int i = 0; i < numKeys; i++) | ||
{ | ||
plKey key = param->GetKey(pb, i); | ||
// make sure we got a key and that it is a plLayer | ||
if (key && plLayer::ConvertNoRef(key->GetObjectPtr())) | ||
{ | ||
pyParam.SetToLayer(key); | ||
mod->AddParameter(pyParam); | ||
} | ||
} | ||
} | ||
break; | ||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,8 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "pyJournalBook.h" | ||
|
||
#include "pyKeyMap.h" | ||
#include "pyImageLibMod.h" | ||
#include "pyLayer.h" | ||
#include "pyStream.h" | ||
|
||
#include "pyMoviePlayer.h" | ||
|
@@ -1037,6 +1039,7 @@ void PythonInterface::AddPlasmaMethods(PyObject* m) | |
pyGUIDialog::AddPlasmaMethods(m); | ||
pyImage::AddPlasmaMethods(m); | ||
pyJournalBook::AddPlasmaMethods(m); | ||
pyLayer::AddPlasmaMethods(m); | ||
pySDLModifier::AddPlasmaMethods(m); | ||
pySpawnPointInfo::AddPlasmaMethods(m); | ||
} | ||
|
@@ -1079,8 +1082,10 @@ void PythonInterface::AddPlasmaClasses(PyObject* plasmaMod) | |
pyDniInfoSource::AddPlasmaClasses(plasmaMod); | ||
pyDynamicText::AddPlasmaClasses(plasmaMod); | ||
pyImage::AddPlasmaClasses(plasmaMod); | ||
pyImageLibMod::AddPlasmaClasses(plasmaMod); | ||
pyJournalBook::AddPlasmaClasses(plasmaMod); | ||
pyKeyMap::AddPlasmaClasses(plasmaMod); | ||
pyLayer::AddPlasmaClasses(plasmaMod); | ||
pyMarkerMgr::AddPlasmaClasses(plasmaMod); | ||
pyMoviePlayer::AddPlasmaClasses(plasmaMod); | ||
pyNetLinkingMgr::AddPlasmaClasses(plasmaMod); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.