mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
fix returning of text fields in twitch window
This commit is contained in:
parent
48711988c5
commit
b4d88e9d92
3 changed files with 11 additions and 9 deletions
|
@ -447,6 +447,9 @@ extern rct_window* g_window_list;
|
||||||
// rct2: 0x00F635EE
|
// rct2: 0x00F635EE
|
||||||
extern ride_list_item _window_track_list_item;
|
extern ride_list_item _window_track_list_item;
|
||||||
|
|
||||||
|
extern char multi_text_input[512];
|
||||||
|
extern char multi_text_input2[512];
|
||||||
|
|
||||||
void window_dispatch_update_all();
|
void window_dispatch_update_all();
|
||||||
void window_update_all();
|
void window_update_all();
|
||||||
rct_window *window_create(int x, int y, int width, int height, uint32 *event_handlers, rct_windowclass cls, uint16 flags);
|
rct_window *window_create(int x, int y, int width, int height, uint32 *event_handlers, rct_windowclass cls, uint16 flags);
|
||||||
|
|
|
@ -296,7 +296,7 @@ static void window_multi_text_input_mouseup(){
|
||||||
// Pass back the text that has been entered.
|
// Pass back the text that has been entered.
|
||||||
// ecx when zero means text input failed
|
// ecx when zero means text input failed
|
||||||
if (calling_w != NULL)
|
if (calling_w != NULL)
|
||||||
window_event_textinput_call(calling_w, multi_calling_widget, NULL, NULL);
|
window_event_textinput_call(calling_w, multi_calling_widget, NULL);
|
||||||
window_close(w);
|
window_close(w);
|
||||||
break;
|
break;
|
||||||
case WIDX_OKAY:
|
case WIDX_OKAY:
|
||||||
|
@ -304,7 +304,7 @@ static void window_multi_text_input_mouseup(){
|
||||||
// Pass back the text that has been entered.
|
// Pass back the text that has been entered.
|
||||||
// ecx when none zero means text input success
|
// ecx when none zero means text input success
|
||||||
if (calling_w != NULL)
|
if (calling_w != NULL)
|
||||||
window_event_textinput_call(calling_w, multi_calling_widget, multi_text_input, multi_text_input2);
|
window_event_textinput_call(calling_w, multi_calling_widget, multi_text_input);
|
||||||
window_close(w);
|
window_close(w);
|
||||||
break;
|
break;
|
||||||
case WIDX_USERNAME:
|
case WIDX_USERNAME:
|
||||||
|
@ -497,7 +497,7 @@ static void window_multi_text_input_text(int key, rct_window* w){
|
||||||
// Pass back the text that has been entered.
|
// Pass back the text that has been entered.
|
||||||
// ecx when none zero means text input success
|
// ecx when none zero means text input success
|
||||||
if (calling_w)
|
if (calling_w)
|
||||||
window_event_textinput_call(calling_w, multi_calling_widget, multi_text_input, multi_text_input2);
|
window_event_textinput_call(calling_w, multi_calling_widget, multi_text_input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,19 +159,18 @@ static void window_twitch_paint()
|
||||||
static void window_twitch_text_input(){
|
static void window_twitch_text_input(){
|
||||||
short widgetIndex;
|
short widgetIndex;
|
||||||
rct_window *w;
|
rct_window *w;
|
||||||
char _cl;
|
uint8 result;
|
||||||
char* text;
|
char* text;
|
||||||
|
|
||||||
//just a stub
|
window_textinput_get_registers(w, widgetIndex, result, text);
|
||||||
|
|
||||||
|
char *userName = multi_text_input;
|
||||||
|
char *password = multi_text_input2;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void window_twitch_invalidate()
|
static void window_twitch_invalidate()
|
||||||
{
|
{
|
||||||
rct_window *w;
|
rct_window *w;
|
||||||
int i;
|
|
||||||
sint32 currentSoundDevice;
|
|
||||||
|
|
||||||
//just a stub
|
|
||||||
|
|
||||||
window_get_register(w);
|
window_get_register(w);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue