-
Active Member
Extract data with plugin interface
The patchnote says following:
Code:
- removed: doc\sno_actors.txt is no longer generated (use the Plugin interfaces to extract data instead)
- removed: doc\sno_items.txt is no longer generated (use the Plugin interfaces to extract data instead)
- removed: doc\sno_powers_skills.txt is no longer generated (use the Plugin interfaces to extract data instead)
- removed: doc\sno_powers.txt is no longer generated (use the Plugin interfaces to extract data instead)
- removed: doc\sno_quests.txt is no longer generated (use the Plugin interfaces to extract data instead)
- removed: doc\ui_elements.txt is no longer generated (use the Plugin interfaces to extract data instead)
can someone give an example how to do it over the plugin interface? For example for sno_powers.txt
-
Contributor
What about this?
Easier than old method (config.xml) with strings you have to quess.
Code:
// Cooldown sounds.
Hud.RunOnPlugin<CooldownSoundPlayerPlugin>(plugin =>
{
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Vengeance, "notification_1.wav");
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Companion, "notification_2.wav");
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Preparation, "notification_3.wav");
plugin.AddRule(Hud.Sno.SnoPowers.Barbarian_WrathOfTheBerserker, "notification_1.wav");
plugin.AddRule(Hud.Sno.SnoPowers.Barbarian_CallOfTheAncients, "notification_2.wav");
};
Old way:
Code:
<sound_notification>
<entry_1 skill="X1_DemonHunter_Companion" sound="notification_1.wav" />
<entry_2 skill="X1_DemonHunter_Vengeance" sound="notification_2.wav" />
<entry_3 skill="DemonHunter_Preparation" sound="notification_3.wav" />
</sound_notification>
-
Active Member
Originally Posted by
JarJarD3
What about this?
Easier than old method (config.xml) with strings you have to quess.
Code:
// Cooldown sounds.
Hud.RunOnPlugin<CooldownSoundPlayerPlugin>(plugin =>
{
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Vengeance, "notification_1.wav");
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Companion, "notification_2.wav");
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Preparation, "notification_3.wav");
plugin.AddRule(Hud.Sno.SnoPowers.Barbarian_WrathOfTheBerserker, "notification_1.wav");
plugin.AddRule(Hud.Sno.SnoPowers.Barbarian_CallOfTheAncients, "notification_2.wav");
};
Old way:
Code:
<sound_notification>
<entry_1 skill="X1_DemonHunter_Companion" sound="notification_1.wav" />
<entry_2 skill="X1_DemonHunter_Vengeance" sound="notification_2.wav" />
<entry_3 skill="DemonHunter_Preparation" sound="notification_3.wav" />
</sound_notification>
i think you did not understand my question.
-
Active Member
TurboHUD\interfaces\controllers\sno\ISnoPowerList.cs
-
Post Thanks / Like - 1 Thanks
d2k2 (1 members gave Thanks to bm206 for this useful post)