Thanks, Trevally!
Quote:
Originally Posted by Trevally
With the download, if I am using TDWs UI and install the .dll in Sh5 main dir and the .py script in the script/menu file - will i be able to control the RAOBF and attack disc as you did in the vid 
|
Not per se, no. This is not
that automated

The sample .py script is just that - sample (though the touchpad areas defined for the attack disc there are for the attack disc from TDW's UI). I've extracted it from my UI test page script. You'll need to actually add some code to TDW's scripts to use the functionality. One way is to copy/paste that code into TDW's Page TDC.py (IIRC the Attack Disc in TDW's UI is located at TDC page) and add proper initialization/cleanup to InitializeScript()/UnloadScript() functions.
For example, here's how I do it in my test page (simplified code off the top of my head):
Code:
# File scripts/menu/pages/Page_Test1.py
# The following is the contents of the sample script
import clr
clr.AddReference("RadCapTools")
from RadCapTools import InputCanvas
class AttackDisc( object ):
# The definition of the attack disc from the sample script follows
# ...
# The contents of sample script end here
# global variable to store the attack disc input handler
g_AttackDisc = None
def InitializeScript():
compassRose = Page_Test1_AttackDisc_Front_CompassRose
bearingLead = Page_Test1_AttackDisc_Front_BearingLeadAngle
targetDisc = Page_Test1_AttackDisc_Front_TargetDisc
attackCourse = Page_Test1_AttackDisc_Front_AttackCourse
# Create the attack disc input handler
global g_AttackDisc
g_AttackDisc = AttackDisc(compassRose, bearingLead, targetDisc, attackCourse)
# Some more code skipped...
def UnloadScript():
# Destroy the attack disc input handler
global g_AttackDisc
if g_AttackDisc:
g_AttackDisc.dispose()
g_AttackDisc = None
That'd roughly be the modification to TDW's scripts/menu/pages/Page TDC.py.
Now, those Page_Test1_AttackDisc_Front_* names are for my UI page. For TDW's, you'll have to look at data/menu/pages/Page TDC.ini to figure out proper names.
I think I may have to write a more detailed instructions on what to do, but that'll be later once I'm at my SH5 rig and have an actual UI mod files to use for illustration.
Oh, yeah, and a follow-up:
In the first post, I mentioned the issues with rotation if the textures are not square. Some original attack disc textures from TDW's UI are not square so I had to edit them accordingly (this required resizing them in GIMP and making changes in SH5 Menu Editor). Anyway, excpect an update with proper instructions in an hour or so.