@@ -37,6 +37,7 @@ public partial class HexEditor : Form
37
37
38
38
private HexEditor ( Main mainForm )
39
39
{
40
+ this . Font = mainForm . Font ;
40
41
this . mainForm = mainForm ;
41
42
changedPosDic = new Dictionary < long , long > ( ) ;
42
43
@@ -46,7 +47,10 @@ private HexEditor(Main mainForm)
46
47
mutex = new Mutex ( false , "HexEditor" , out _ , mSec ) ;
47
48
48
49
InitializeComponent ( ) ;
49
- ApplyUI ( ) ;
50
+ InfoBox0 . Font = new System . Drawing . Font ( mainForm . UIFont , 8.25F ) ;
51
+ AsmBox1 . Font = new System . Drawing . Font ( mainForm . UIFont , 8.25F ) ;
52
+
53
+ ApplyUI ( mainForm . langJson ) ;
50
54
51
55
delimitedDash = Properties . Settings . Default . HexInfoDash . Value ;
52
56
if ( ! Properties . Settings . Default . CollapsibleContainer . Value )
@@ -125,8 +129,37 @@ private void InitPageData(Section section, int baseAddr)
125
129
PageBox . SelectedIndex = PageBox . Items . Count > Page ? Page : PageBox . Items . Count - 1 ;
126
130
}
127
131
128
- public void ApplyUI ( )
132
+ public void ApplyUI ( LanguageJson langJson )
129
133
{
134
+ try
135
+ {
136
+ if ( langJson != null )
137
+ {
138
+ PreviousBtn . Text = langJson . HexEditorForm . PreviousBtn ;
139
+ NextBtn . Text = langJson . HexEditorForm . NextBtn ;
140
+ AutoRefreshBox . Text = langJson . HexEditorForm . AutoRefreshBox ;
141
+ RefreshBtn . Text = langJson . HexEditorForm . RefreshBtn ;
142
+ CommitBtn . Text = langJson . HexEditorForm . CommitBtn ;
143
+ AddToCheatGridBtn . Text = langJson . HexEditorForm . AddToCheatGridBtn ;
144
+ HexBox . Text = langJson . HexEditorForm . HexBox ;
145
+ LittleEndianBox . Text = langJson . HexEditorForm . LittleEndianBox ;
146
+ ForwardBox . Text = langJson . HexEditorForm . ForwardBox ;
147
+ FindBtn . Text = langJson . HexEditorForm . FindBtn ;
148
+ SwapBytesBox . Text = langJson . HexEditorForm . SwapBytesBox ;
149
+ AssemblerBtn . Text = langJson . HexEditorForm . AssemblerBtn ;
150
+ GroupBoxAsm . Text = langJson . HexEditorForm . GroupBoxAsm ;
151
+
152
+ HexViewMenuByteGroup . Text = langJson . HexEditorForm . HexViewMenuByteGroup ;
153
+ HexViewMenuGroupSize . Text = langJson . HexEditorForm . HexViewMenuGroupSize ;
154
+ HexViewMenuCopyAddress . Text = langJson . HexEditorForm . HexViewMenuCopyAddress ;
155
+ HexViewMenuJumpToAddress . Text = langJson . HexEditorForm . HexViewMenuJumpToAddress ;
156
+ HexViewMenuJumpToOffset . Text = langJson . HexEditorForm . HexViewMenuJumpToOffset ;
157
+ }
158
+ }
159
+ catch ( Exception ex )
160
+ {
161
+ PS4CheaterNeo . InputBox . MsgBox ( "Apply UI language Exception" , "" , ex . Message , 100 ) ;
162
+ }
130
163
try
131
164
{
132
165
Opacity = Properties . Settings . Default . UIOpacity . Value ;
0 commit comments