- add - provide CIG asset texts for actions and maps
(use Settings to choose - for now only French and German are in but have no translations
for English not all have a proper text - may not be used in the game ??)
- improvement - cache CIG assets into the app/Storage folder, reads from p4k file only if those are updated
- internal cleanup - to many to list
[DefaultSettingValueAttribute( "layout_joystick_spacesim" )] // from Game Bundle
[UserScopedSetting( )]
[DefaultSettingValue( "layout_joystick_spacesim" )] // from Game Bundle
publicstringDefMappingName
{
get{return(string)this["DefMappingName"];}
set{this["DefMappingName"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "layout_my_joystick" )] // just a default
[UserScopedSetting( )]
[DefaultSettingValue( "layout_my_joystick" )] // just a default
publicstringMyMappingName
{
get{return(string)this["MyMappingName"];}
set{this["MyMappingName"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "True" )]
[UserScopedSetting( )]
[DefaultSettingValue( "True" )]
publicboolShowJoystick
{
get{return(bool)this["ShowJoystick"];}
set{this["ShowJoystick"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "True" )]
[UserScopedSetting( )]
[DefaultSettingValue( "True" )]
publicboolShowGamepad
{
get{return(bool)this["ShowGamepad"];}
set{this["ShowGamepad"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "True" )]
[UserScopedSetting( )]
[DefaultSettingValue( "True" )]
publicboolShowKeyboard
{
get{return(bool)this["ShowKeyboard"];}
set{this["ShowKeyboard"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "True" )]
[UserScopedSetting( )]
[DefaultSettingValue( "True" )]
publicboolShowMouse// 20151220BM: add mouse device (from AC 2.0 defaultProfile usage)
{
get{return(bool)this["ShowMouse"];}
set{this["ShowMouse"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "False" )]
[UserScopedSetting( )]
[DefaultSettingValue( "False" )]
publicboolShowMapped
{
get{return(bool)this["ShowMapped"];}
@ -142,120 +151,120 @@ namespace SCJMapper_V2
// Seetings Window
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS1
{
get{return(string)this["IgnoreJS1"];}
set{this["IgnoreJS1"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS2
{
get{return(string)this["IgnoreJS2"];}
set{this["IgnoreJS2"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS3
{
get{return(string)this["IgnoreJS3"];}
set{this["IgnoreJS3"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS4
{
get{return(string)this["IgnoreJS4"];}
set{this["IgnoreJS4"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS5
{
get{return(string)this["IgnoreJS5"];}
set{this["IgnoreJS5"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS6
{
get{return(string)this["IgnoreJS6"];}
set{this["IgnoreJS6"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS7
{
get{return(string)this["IgnoreJS7"];}
set{this["IgnoreJS7"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS8
{
get{return(string)this["IgnoreJS8"];}
set{this["IgnoreJS8"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS9
{
get{return(string)this["IgnoreJS9"];}
set{this["IgnoreJS9"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS10
{
get{return(string)this["IgnoreJS10"];}
set{this["IgnoreJS10"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS11
{
get{return(string)this["IgnoreJS11"];}
set{this["IgnoreJS11"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringIgnoreJS12
{
get{return(string)this["IgnoreJS12"];}
set{this["IgnoreJS12"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "" )]
[UserScopedSetting( )]
[DefaultSettingValue( "" )]
publicstringUserSCPath
{
get{return(string)this["UserSCPath"];}
set{this["UserSCPath"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "False" )]
[UserScopedSetting( )]
[DefaultSettingValue( "False" )]
publicboolUserSCPathUsed
{
get{return(bool)this["UserSCPathUsed"];}
set{this["UserSCPathUsed"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( ",default,multiplayer,singleplayer,player,flycam,vehicle_driver," )] // empty Note: comma separated list, must have a comma at the begining and the end (to find 'player' on its own...)
[UserScopedSetting( )]
[DefaultSettingValue( ",default,multiplayer,singleplayer,player,flycam,vehicle_driver," )] // empty Note: comma separated list, must have a comma at the begining and the end (to find 'player' on its own...)
publicstringIgnoreActionmaps
{
get{return(string)this["IgnoreActionmaps"];}
@ -263,69 +272,77 @@ namespace SCJMapper_V2
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "False" )]
[UserScopedSetting( )]
[DefaultSettingValue( "False" )]
publicboolDetectGamepad
{
get{return(bool)this["DetectGamepad"];}
set{this["DetectGamepad"]=value;}
}
[UserScopedSettingAttribute( )]
[DefaultSettingValueAttribute( "False" )]
[UserScopedSetting( )]
[DefaultSettingValue( "False" )]
publicboolUsePTU
{
get{returnfalse;}// ( bool )this["UsePTU"]; } no longer used
MessageBox.Show("Changing the Gamepad option needs a restart of the application !!","Settings Notification",MessageBoxButtons.OK,MessageBoxIcon.Information);
// MessageBox.Show( "Changing to / from PTU folders needs a restart of the application !!", "Settings Notification", MessageBoxButtons.OK, MessageBoxIcon.Information );
//}
//m_owner.UsePTU = cbxPTU.Checked; // no longer used
//AppSettings.Instance.UsePTU = cbxPTU.Checked; // no longer used
/// Returns the collected actionmaps as CSV (same format as MappingVars)
/// i.e. one line per actionmap where the first element is the actionmap and following are actions;defaultBinding lead by the input Key in uppercase (JKXP)
buf+=a.KeyName+";"+a.DefBinding+";"+a.DefActivationMode.Name+";"+a.DefActivationMode.MultiTap.ToString()+";";// add default binding + activation mode to the CSV
buf+=a.KeyName+";"+a.UILabel+";"
+a.DefBinding+";"
+a.DefActivationMode.Name+";"+a.DefActivationMode.MultiTap.ToString()+";";// add default binding + activation mode to the CSV
acm=newActionMapCls{Name=elem[0]};// get actionmap name
for(intei =1;ei<elem.Length;ei+=4){// step 2 - action;defaultBinding;defaultActivationMode;defMultiTap come in as quadrupples
if(!string.IsNullOrEmpty(elem[ei])){
acm=newActionMapCls{Name=elem[iMap]};// get actionmap name
for(inteIndex =iAction;eIndex<elem.Length;eIndex+=5){// step 2 - action;actionlabel;defaultBinding;defaultActivationMode;defMultiTap come in as 5groups
if(!string.IsNullOrEmpty(elem[eIndex])){
// default assignments
stringaction=elem[ei].Substring(1);
stringdefBinding=elem[ei+1];
stringdefActivationModeName=elem[ei+2];
intdefMultiTap=int.Parse(elem[ei+3]);
stringaction=elem[eIndex].Substring(1);// has a device Tag as first char