Rev 7507 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7507 | Rev 7959 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | WIN_X = 320 |
5 | WIN_X = 320 |
6 | WIN_Y = 300 |
6 | WIN_Y = 300 |
7 | WIN_W = 390 |
7 | WIN_W = 390 |
8 | WIN_H = 230 |
8 | WIN_H = 230 |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 10... | Line 10... | ||
10 | pad = 28 ; padding between editboxes |
10 | PAD = 28 ; padding between editboxes |
11 | 11 | ||
12 | ;;================================================================================================;; |
12 | ;;================================================================================================;; |
13 | login_gui: ;//////////////////////////////////////////////////////////////////////////////////////;; |
13 | login_gui: ;//////////////////////////////////////////////////////////////////////////////////////;; |
Line 58... | Line 58... | ||
58 | 58 | ||
59 | ; draw strings |
59 | ; draw strings |
60 | mov ecx, 0x90000000 |
60 | mov ecx, 0x90000000 |
61 | or ecx, [sc.work_text] |
61 | or ecx, [sc.work_text] |
62 | mcall 4, <3, 8>, , gui_str_usr |
62 | mcall 4, <3, 8>, , gui_str_usr |
63 | mcall , <3,pad*1+8>, , gui_str_pass |
63 | mcall , <3,PAD*1+8>, , gui_str_pass |
64 | mcall , <3,pad*2+8>, , gui_str_server |
64 | mcall , <3,PAD*2+8>, , gui_str_server |
65 | mcall , <3,pad*3+8>, , gui_str_port |
65 | mcall , <3,PAD*3+8>, , gui_str_port |
Line 66... | Line 66... | ||
66 | mcall , <3,pad*4+8>, , gui_str_path |
66 | mcall , <3,PAD*4+8>, , gui_str_path |
67 | 67 | ||
68 | mov ecx, 0x90000000 |
68 | mov ecx, 0x90000000 |
Line 122... | Line 122... | ||
122 | stdcall [edit_box_key], edit_path |
122 | stdcall [edit_box_key], edit_path |
Line 123... | Line 123... | ||
123 | 123 | ||
Line 124... | Line 124... | ||
124 | jmp .still |
124 | jmp .still |
- | 125 | ||
125 | 126 | .connect: |
|
126 | .connect: |
127 | mcall 67, 35, 20, 830, 555 ; resize to main gui window's coordinates |
Line 127... | Line 128... | ||
127 | cmp [param_server_addr], 0 |
128 | cmp [param_server_addr], 0 |
128 | jne gui.main |
129 | jne gui.main |
Line 189... | Line 190... | ||
189 | gui_str_null db ' ',0 |
190 | gui_str_null db ' ',0 |
Line 190... | Line 191... | ||
190 | 191 | ||
Line 191... | Line 192... | ||
191 | str_error_addr dd gui_str_null |
192 | str_error_addr dd gui_str_null |
192 | 193 | ||
193 | ; login window components |
194 | ; login window components |
194 | edit_usr edit_box 300,75,5, 0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_user,mouse_dd,ed_focus |
195 | edit_usr edit_box 300,75,5, 0xffffff,0x94AECE,0,0xAABBCC,0x10000000,64,param_user,mouse_dd,ed_focus,9,9 |
195 | edit_pass edit_box 300,75,pad+5, 0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_password,mouse_dd,ed_pass |
196 | edit_pass edit_box 300,75,PAD+5, 0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_password,mouse_dd,ed_pass |
196 | edit_server edit_box 300,75,pad*2+5,0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_server_addr,mouse_dd,0 |
197 | edit_server edit_box 300,75,PAD*2+5,0xffffff,0x94AECE,0,0xAABBCC,0x10000000,1024,param_server_addr,mouse_dd,0,13,13 |
197 | edit_port edit_box 50, 75,pad*3+5,0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_port,mouse_dd,ed_figure_only |
198 | edit_port edit_box 50, 75,PAD*3+5,0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_port,mouse_dd,ed_figure_only |
Line 198... | Line 199... | ||
198 | edit_path edit_box 300,75,pad*4+5,0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_path,mouse_dd,0 |
199 | edit_path edit_box 300,75,PAD*4+5,0xffffff,0x94AECE,0,0xAABBCC,0x10000000,99,param_path,mouse_dd,0 |