-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathTabQuestRecipes.cs
116 lines (89 loc) · 3.69 KB
/
TabQuestRecipes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
using System;
using Decal.Adapter;
using VirindiViewService.Controls;
namespace AceCreator
{
public partial class AceCreator : PluginBase
{
public HudCombo ChoiceQuestJSON { get; set; }
public HudButton ButtonImportQuestJSON { get; set; }
public HudButton ButtonEditQuestJSON { get; set; }
public HudCombo ChoiceQuestSQL { get; set; }
public HudButton ButtonImportQuestSQL { get; set; }
public HudButton ButtonEditQuestSQL { get; set; }
public HudCombo ChoiceRecipeJSON { get; set; }
public HudButton ButtonImportRecipeJSON { get; set; }
public HudButton ButtonEditRecipeJSON { get; set; }
public HudCombo ChoiceRecipeSQL { get; set; }
public HudButton ButtonImportRecipeSQL { get; set; }
public HudButton ButtonEditRecipeSQL { get; set; }
public void ButtonImportQuestJSON_Click(object sender, EventArgs e)
{
try
{
string wcid = ((HudStaticText)ChoiceQuestJSON[ChoiceQuestJSON.Current]).Text.Replace(".json", "");
Util.SendChatCommand(@"/import-json " + wcid + " quest");
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonEditQuestJSON_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start(Globals.PathQuestJSON + @"\" + ((HudStaticText)ChoiceQuestJSON[ChoiceQuestJSON.Current]).Text);
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonImportQuestSQL_Click(object sender, EventArgs e)
{
try
{
string wcid = ((HudStaticText)ChoiceQuestSQL[ChoiceQuestSQL.Current]).Text.Replace(".sql", "");
Util.SendChatCommand(@"/import-sql " + wcid + " quest");
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonEditQuestSQL_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start(Globals.PathQuestSQL + @"\" + ((HudStaticText)ChoiceQuestSQL[ChoiceQuestSQL.Current]).Text);
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonImportRecipeJSON_Click(object sender, EventArgs e)
{
try
{
string wcid = ((HudStaticText)ChoiceRecipeJSON[ChoiceRecipeJSON.Current]).Text.Replace(".json", "");
Util.SendChatCommand(@"/import-json " + wcid + " recipe");
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonEditRecipeJSON_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start(Globals.PathRecipeJSON + @"\" + ((HudStaticText)ChoiceRecipeJSON[ChoiceRecipeJSON.Current]).Text);
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonImportRecipeSQL_Click(object sender, EventArgs e)
{
try
{
string wcid = ((HudStaticText)ChoiceRecipeSQL[ChoiceRecipeSQL.Current]).Text.Replace(".sql", "");
Util.SendChatCommand(@"/import-sql " + wcid + " recipe");
}
catch (Exception ex) { Util.LogError(ex); }
}
public void ButtonEditRecipeSQL_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start(Globals.PathRecipeSQL + @"\" + ((HudStaticText)ChoiceRecipeSQL[ChoiceRecipeSQL.Current]).Text);
}
catch (Exception ex) { Util.LogError(ex); }
}
}
}