1
- using System ;
1
+ using System ;
2
2
using System . Windows . Forms ;
3
3
4
4
using Intersect . Editor . Localization ;
@@ -24,6 +24,7 @@ public EventCommandOpenCraftingTable(OpenCraftingTableCommand refCommand, FrmEve
24
24
cmbTable . Items . Clear ( ) ;
25
25
cmbTable . Items . AddRange ( CraftingTableBase . Names ) ;
26
26
cmbTable . SelectedIndex = CraftingTableBase . ListIndex ( mMyCommand . CraftingTableId ) ;
27
+ chkJournalMode . Checked = mMyCommand . JournalMode ;
27
28
}
28
29
29
30
private void InitLocalization ( )
@@ -32,6 +33,16 @@ private void InitLocalization()
32
33
lblTable . Text = Strings . EventOpenCrafting . label ;
33
34
btnSave . Text = Strings . EventOpenCrafting . okay ;
34
35
btnCancel . Text = Strings . EventOpenCrafting . cancel ;
36
+ chkJournalMode . Text = Strings . EventOpenCrafting . JournalMode ;
37
+
38
+ ToolTip toolTip1 = new ToolTip ( ) ;
39
+
40
+ toolTip1 . AutoPopDelay = 5000 ;
41
+ toolTip1 . InitialDelay = 1000 ;
42
+ toolTip1 . ReshowDelay = 500 ;
43
+ toolTip1 . ShowAlways = true ;
44
+
45
+ toolTip1 . SetToolTip ( chkJournalMode , Strings . EventOpenCrafting . JournalModeTooltip ) ;
35
46
}
36
47
37
48
private void btnSave_Click ( object sender , EventArgs e )
@@ -41,6 +52,8 @@ private void btnSave_Click(object sender, EventArgs e)
41
52
mMyCommand . CraftingTableId = CraftingTableBase . IdFromList ( cmbTable . SelectedIndex ) ;
42
53
}
43
54
55
+ mMyCommand . JournalMode = chkJournalMode . Checked ;
56
+
44
57
mEventEditor . FinishCommandEdit ( ) ;
45
58
}
46
59
0 commit comments