Jump to content

[LE] Two MCM problems.


irswat

Recommended Posts

I mean on the "" landing page before you select a menu page. Is it possible to center the logo do you think? There is a line down the middle, so there must be a way.

Is it possible to get rid of the line in the middle of the page?

Link to comment
Share on other sites

The custom content layer hides the menu layer. So the line will be gone. Instructions on how to use custom content are in the advanced features page linked on the MCM quickstart guide. There is even an example showing a basic calculation to determine how to center an image.

Link to comment
Share on other sites

thanks.

It was so late last night and my brain is still not working.

Last night everything worked except there were no default values in MCM menu, so I made an initialization script, and created a global variable to track whether the script is primed with default values:

 

 

 

scriptname SVCE_GV_Manager extends Quest

SVCE_ParserEngine Property ParserEngineScriptObject Auto

GlobalVariable property SVCE_Initialized Auto

Event OnInit()
	Initialize_SVCE()
endEvent

bool function Initialize_SVCE()
	float fSVCE_Initialized=SVCE_Initialized.GetValue()
	bool bInitStatus
	
	if fSVCE_Initialized==0.0
		ParserEngineScriptObject.GOkey=29
		ParserEngineScriptObject.GOphrase="Quick"
		SVCE_Initialized.SetValue(1.0)
		debug.notification("SVCE initialized.")
		bInitStatus=true
	elseif fSVCE_Initialized==1.0
		bInitStatus=false
	endif
	
	return bInitStatus
endFunction

 



here is the main script:

 

Scriptname SVCE_ParserEngine extends quest

GlobalVariable property SVCE_Initialized Auto

int Property GOkey Auto
string Property GOphrase Auto

GlobalVariable property SVCE_Initialized Auto

SVCE_GV_Manager Property SVCEInitObject Auto

Event OnInit()
	bool bSVCE_Initialized
	bSVCE_Initialized=SVCEInitObject.Initialize_SVCE()
	
	float fSKSE_version=SKSE.GetVersion() + SKSE.GetVersionMinor() * 0.01 + SKSE.GetVersionBeta() * 0.0001
	int iSKSE_version=SKSE.GetVersionRelease()
	
	debug.trace(fSKSE_version + " : " + iSKSE_version)

	if (iSKSE_version==0)
		 debug.notification("SKSE is not installed. Skyrim Voice Command Engine not initializing." + iSKSE_version)
	elseif (fSKSE_version != 1.070300)
		 debug.notification("SKSE version 1.7.3 needed. Skyrim Voice Command Engine not initializing." + fSKSE_version)
	else
		if bSVCE_Initialized==true
			InitializeVariables()
			InitializeFormlists()
			Dump_PO(true)
					
			RegisterForKey(GoKey)	;left control triggers the script to run again
		else
			RegisterForSingleUpdate(1.2)
		endif
			
	endif
endEvent
		
Event OnUpdate()
	bool bSVCE_Initialized
	bSVCE_Initialized=SVCEInitObject.Initialize_SVCE()
	
	if bSVCE_Initialized
		InitializeFormlists()	;may be better to initialize formlists as items are added and removed from player inventory using alias ref filter
		RegisterForKey(GoKey)	;left control triggers the script to run again
		Main()
	else
		RegisterForSingleUpdate(1.2)
	endif
endEvent

 

 

int Property GOkey Auto

string Property GOphrase Auto

is giving me an error in the tracelog:

Error: Cannot call Initialize_SVCE() on a None object, aborting function call

any idea why?

Edited by irswat
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...