Rev 5691 | Rev 5707 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5691 | Rev 5702 | ||
---|---|---|---|
Line 212... | Line 212... | ||
212 | } |
212 | } |
Line 213... | Line 213... | ||
213 | 213 | ||
214 | void properties_dialog() |
214 | void properties_dialog() |
215 | { |
215 | { |
216 | byte id; |
216 | byte id; |
217 | byte key; |
217 | byte key,key2; |
218 | dword file_name_off; |
218 | dword file_name_off; |
Line 219... | Line 219... | ||
219 | dword selected_offset2; |
219 | dword selected_offset2; |
220 | 220 | ||
Line 283... | Line 283... | ||
283 | edit_box_mouse stdcall (#file_name_ed); |
283 | edit_box_mouse stdcall (#file_name_ed); |
284 | edit_box_mouse stdcall (#path_to_file_ed); |
284 | edit_box_mouse stdcall (#path_to_file_ed); |
285 | break; |
285 | break; |
Line 286... | Line 286... | ||
286 | 286 | ||
287 | case evKey: |
287 | case evKey: |
- | 288 | GetFullKey(); |
|
- | 289 | key = AH; |
|
- | 290 | $shr eax,16 |
|
- | 291 | key2 = AL; |
|
288 | key = GetKey(); |
292 | |
289 | if (quest_active) |
293 | if (quest_active) |
290 | { |
294 | { |
291 | IF (key==013) SetProperties(2); |
295 | IF (key2==SCAN_CODE_ENTER) SetProperties(2); |
292 | IF (key==027) SetProperties(1); |
296 | IF (key2==SCAN_CODE_ESC) SetProperties(1); |
293 | break; |
297 | break; |
294 | } |
298 | } |
295 | if (key==27) |
299 | if (key2==SCAN_CODE_ESC) |
296 | { |
300 | { |
297 | cmd_free=3; |
301 | cmd_free=3; |
298 | ExitProcess(); |
302 | ExitProcess(); |
- | 303 | } |
|
- | 304 | if (key2==SCAN_CODE_ENTER) |
|
- | 305 | { |
|
- | 306 | if (selected_count) || (itdir) |
|
- | 307 | { |
|
- | 308 | quest_active = 1; |
|
- | 309 | Quest(); |
|
- | 310 | } |
|
- | 311 | else |
|
- | 312 | { |
|
- | 313 | SetProperties(0); |
|
- | 314 | } |
|
- | 315 | break; |
|
299 | } |
316 | } |
300 | EAX=key<<8; |
317 | EAX=key<<8; |
301 | edit_box_key stdcall(#file_name_ed); |
318 | edit_box_key stdcall(#file_name_ed); |
302 | edit_box_key stdcall(#path_to_file_ed); |
319 | edit_box_key stdcall(#path_to_file_ed); |