datiswous Posted April 6 Report Share Posted April 6 (edited) I modified the standard mainmenu_briefing.gui file to add an extra button in the center that directs to another page: Then If you click on button StartLocation, you get to another page, where I still have to add the starter locations and you have a Briefing button, to get back to the briefingtext: Code for only this part (might still have some unneeded code) : Spoiler // Mission location windowDef Startlocation { //rect 60, 70, 530, 300 -- Old Values rect 90, 75, 458, 150 bordercolor 1,1,1,1 text "Select a location to start the mission" // font BRIEFING_TEXT_FONT // textscale BRIEFING_TEXT_SCALE forecolor 0, 0, 0, 1 visible 0 } windowDef BriefingButton { rect 270, 445, 100, 100 // textalign 1 MM_BUTTON_HUGE forecolor GLOW_WHITE_COLOR text "Briefing" visible 0 onAction { set "BriefingText::visible" "1"; set "StartLocationButton::visible" "1"; set "Startlocation::visible" "0"; set "BriefingButton::visible" "0"; } } windowDef StartLocationButton { rect 270, 445, 110, 100 // textalign 1 MM_BUTTON_HUGE forecolor GLOW_WHITE_COLOR text "StartLocation" visible 1 onAction { set "BriefingText::visible" "0"; set "StartLocationButton::visible" "0"; set "Startlocation::visible" "1"; set "BriefingButton::visible" "1"; } } Question: How do I remove the up and down navigation-buttons that are still present on this page? I already tried: set "scrollDown::visible" "0"; set "scrollUp::visible" "0"; Edited April 6 by datiswous Quote Link to comment Share on other sites More sharing options...
joebarnin Posted April 6 Report Share Posted April 6 mainmenu_briefing.gui has a windowDef called 'scrollDown'. It contains the following line: visible ("gui::ScrollDownVisible" == 1) ScrollDownVisible is set in C++ code, based on whether the briefing has more pages. Maybe you need to change this logic to be TRUE only if the briefing text is also visible. Something like: visible ("gui::ScrollDownVisible" == 1 && "BriefingText::visible" == 1) That way when your start location page is up, the arrow won't display. 1 Quote Link to comment Share on other sites More sharing options...
datiswous Posted April 6 Author Report Share Posted April 6 Thanks! This works. Quote Link to comment Share on other sites More sharing options...
datiswous Posted April 6 Author Report Share Posted April 6 It now looks like this and totally works: Quote Link to comment Share on other sites More sharing options...
datiswous Posted April 13 Author Report Share Posted April 13 I have now 2 possible screens in the briefing page: The Briefing text The Startlocation selection If I'm in the Startlocation screen, but click on Back and then in the mainmenu start the mission again, I see the Startlocation screen again, instead of the briefing text. How can I set it so that it will go back to the briefing text every time I start the mission in the main menu? Quote Link to comment Share on other sites More sharing options...
snatcher Posted April 13 Report Share Posted April 13 Difficult to guess with no access to the full code, me thinks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.