SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-10-14, 07:57 PM   #1
Raven_2012
Commander
 
Join Date: Jan 2010
Location: Elmira, NY
Posts: 445
Downloads: 129
Uploads: 0
Default Combing Page background.py

I never messed with Page background.py before, but my question can two be merged into one.

The reason I ask, Realistic_Hydrophone_1_1 and Speech Recognition_MiTons_NewUI_Editon_v0.4.1_english both have Page background.py

I would like a to figure out a way to make them both compatible with each other.



Here is Realistic_Hydrophone_1_1 Page background.py
Code:
from menu import *
from RealisticHydrophone import RealisticHydrophone

def InitializeScript():
	ScriptManagerManaged.Trace( "Page background InitializeScript" )
	RealisticHydrophone.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )

def StartGame():
	ScriptManagerManaged.Trace( "Page background StartGame" )

def EndGame():
	ScriptManagerManaged.Trace( "Page background EndGame" )

def UnloadScript():
	ScriptManagerManaged.Trace( "Page background UnloadScript" )
And here is Speech Recognition_MiTons_NewUI_Editon_v0.4.1_english Page background.py
Code:
from SpeechRecognition import SpeechRecognition

def InitializeScript():
	SpeechRecognition.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )

def StartGame():
	pass

def EndGame():
	pass

def UnloadScript():
	pass
I like Speech Recognition mod and I want to try Realistic Hydrophone mod.
Raven_2012 is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.