![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
|
![]()
Ya
![]() I really don't want to distribute a new Page Default Hud.py file for just one new line, when all of my code is in a seperate .py file and a DLL ![]() Currently I hooked via Page Background.py which is empty. But still, others may want to do so too, and then there's the drama of merging scripts. Being able to just dump a file in a folder and have it's initializer called would be alot easier for us... [edit] Oh and import doesn't do the same thing as my little script above, I also need to invoke the script to run (at least, it doesn't work without it). Yea, I want an autoload folder of some sorts... Currently my Page background.py file only does this... note, this is only to run the entire script in another file 'MyModule.py'. The target script does nothing UI related... Code:
from MyModule import MyModule def InitializeScript(): MyModule.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now ) def StartGame(): pass def EndGame(): pass def UnloadScript(): pass
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO Last edited by skwasjer; 03-13-10 at 08:00 PM. |
![]() |
![]() |
![]() |
|
|