Hello SD Community,
I have recreate some ui-menues but the last what comes at the end,- when you hit “you want Quit” “yes” opens the main_menu.
If you hit then the Exit game button is come the Main_menu again = you cant exit the Game on this way.
What i must do ?
Also i dont see the “Credits” at the end before the Game quits normally without to click “Exit Game”.
I know the quit.menu saysat the end :
// Subwindows //
#define SUBWINDOW_WIDTH 210
#define SUBWINDOW_HEIGHT 80
#define SUBWINDOW_X .5*(WINDOW_WIDTH-SUBWINDOW_WIDTH)
#define SUBWINDOW_Y .5*(WINDOW_HEIGHT-SUBWINDOW_HEIGHT)
SUBWINDOWBLACK( SUBWINDOW_X, SUBWINDOW_Y, SUBWINDOW_WIDTH, SUBWINDOW_HEIGHT, "^2Thanks for your Visit" )
LABEL( SUBWINDOW_X+2, SUBWINDOW_Y+16, (SUBWINDOW_WIDTH)-4, 10, "- ^2please visit our Community", .2, ITEM_ALIGN_CENTER, .5*((SUBWINDOW_WIDTH)-4), 8 )
LABEL( SUBWINDOW_X+2, SUBWINDOW_Y+28, (SUBWINDOW_WIDTH)-4, 10, "- ^swww.xyz.com", .2, ITEM_ALIGN_CENTER, .5*((SUBWINDOW_WIDTH)-4), 8 )
LABEL( SUBWINDOW_X+2, SUBWINDOW_Y+40, (SUBWINDOW_WIDTH)-4, 10, "^^1Wanna Quit ?", .2, ITEM_ALIGN_CENTER, .5*((SUBWINDOW_WIDTH)-4), 8 )
#ifdef FUI
BUTTON( SUBWINDOW_X+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^2YES”, .3, 14, close quit ; close main ; open credits_quit )
BUTTON( SUBWINDOW_X+6+.5*(SUBWINDOW_WIDTH-18)+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^1NO”, .3, 14, close quit ; open main )
#else
BUTTON( SUBWINDOW_X+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^2YES”, .3, 14, close quit ; close ingame_main ; open credits_quit )
BUTTON( SUBWINDOW_X+6+.5*(SUBWINDOW_WIDTH-18)+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^1NO”, .3, 14, close quit ; open ingame_main )
#endif // FUI
}
…then, if a player click “yes” it should open the credits_quit.menu…
here is at the end a little bit changed (copyright is in all other menus so i make a last greet sentence…):
LABEL( 6, CREDITS_Y+300, WINDOW_WIDTH-12, 10, “^4Have questions,Ideas, please go to the Forum and let us know. ^3Thanks for your visit here.”, .15, ITEM_ALIGN_LEFT, 0, 8 )
itemDef {
name "quitButton"
group GROUP_NAME
rect 0 0 WINDOW_WIDTH WINDOW_HEIGHT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
visible 1
action {
[B]uiScript quit[/B]
}
}
}
But this menu dont work (is into the menu.txt list to start),- here i need help (1)
After the credits of all Acteurs, Programmers etc of ET was scrolling up (if it works in future) the Game should quit all and exit game,- here i need the Help (2).
Where was my mistake of coding ? Take please passion with me, i am a newbie at coding and programming, but want learn it quick, if there one who can show me an example or the direct help for the future. Also sorry for my bad english, I am german who is atm on the way to learn english better as into our school at my school time 1970´s 



