Rococo GreatSex Game Options Widget 1.0 Specification

Game Options Widget

This is part of the Rococo GreatSex specification. Click here to return to the main documentation. The directive GameOptions as a subdirective of any widget creates a game options meta widget - a set of suboptions that are generated procedurally by reflection. As with all widget directives it accepts any of the Panel attributes and any of the Colour attributes. The Panel and Colour tables are at the end of the GreatSex documentation. The Generate attribute acts a string key, tying the GameOptions widget to a GameOptions interface supplied to the GreatSex widget tree generator. If no such interface matches, the game option widget is populated by an error description that will list known option names and also point the developer to the C++ source line in which the error is raised.


		/* Example: 
		(GameOptions 
			(Panel.Description GameOptions.Gameplay)
			(Title.Style TitlesOnLeft)
			(Title.Alignment Left)
			(Title.Font SubOptionTitleFont)
			(SubscribeToCommitButtons) 
			
			// Multiplies the title font height to yield the title control height. (For TitleOnLeft this will define the row height)
			(Title.HeightMultiplier 1.75)
			
			// Multiplies the title font height to yield the title x spacing.
			(Title.XSpacingMultiplier 0.25)
			
			// Gives the padding of the carousel controls to their interior rectangle
			(#Recti Carousel.Padding 40 2 40 4)
			
			// Gives the padding of the carousel drop-down controls to their interior rectangle
			(#Recti Carousel.Button.Padding 4 4 4 4)
			
			// Determine which side of the control the numeric feedback is rendered at
			(Scalar.Guage.Alignment Centre)
			
			// Offset from alignment edge to guage
			(#Vec2i Scalar.Guage.Spacing 12 4)
			
			// Gives the padding of the slider control slot to the slider control edges
			(#Recti Scalar.Slot.Padding 40 4 40 4)
			
			// Gives the padding of the string control slot to the string control edges
			(#Recti String.Slot.Padding 40 4 40 4)
			
			
			(Carousel.Font CarouselFont)
			(Carousel.Button.Font CarouselFont)
			(Slider.Font SliderFont)
		
			// The Generate attribute determines which options are used to generate the children
			(Generate GameplayOptions)
		)
		

Attributes