Topic: [Updated for 1.5] Live Combo Update display
Hi,
** This is updated to work with 1.5 **
I wanted to have my combo count display as it's being done rather than after the combo is finished, so I created a bool in Combo Options that allows it to be switched between a live update mode or the current default mode after the combo finished. Live combo display would be better for MvC3 style game, where combos are common place or you want more instant feedback for combos connecting.
Here's the code I changed to implement it:
In GlobalInfo.cs,
change:
public class ComboOptions {
public Sizes hitStunDeterioration;
to:
public class ComboOptions {
public bool displayLive;
public Sizes hitStunDeterioration;
In GlobalEditorWindow.cs (search for // Combo Options),
change:
EditorGUIUtility.labelWidth = 200;
globalInfo.comboOptions.maxCombo = EditorGUILayout.IntField("Maximum Hits:", globalInfo.comboOptions.maxCombo);
to:
EditorGUIUtility.labelWidth = 200;
globalInfo.comboOptions.displayLive = EditorGUILayout.Toggle("Display Live Combo", globalInfo.comboOptions.displayLive);
globalInfo.comboOptions.maxCombo = EditorGUILayout.IntField("Maximum Hits:", globalInfo.comboOptions.maxCombo);
In ControlsScript.cs, look for:
combohits ++;
and below add:
if (comboHits > 1 && UFE.config.comboOptions.displayLive ) {
UFE.FireAlert(SetStringValues(UFE.config.selectedLanguage.combo, opInfo), opInfo);
}
look for // Release character to be playable again,
change:
UFE.FireAlert(SetStringValues(UFE.config.selectedLanguage.combo, opInfo), opInfo);
to:
if (!UFE.config.comboOptions.displayLive) {
UFE.FireAlert(SetStringValues(UFE.config.selectedLanguage.combo, opInfo), opInfo);
}
P.S. The anti spam captcha is annoying when you're editing code snippets