WARNO
MOG++ Unlimited&More
Adonaiis  [developer] Oct 12, 2023 @ 5:23pm
@SMRK : how did you add a horizontal scrollbar to the deck?
Hi,

I was looking for a solution to allow the display of all the units that I was adding with the mod and eMeM found this option and kindly shared it with me (and probably other modders). So, if you are using this, please credit him.


To do that, you need to add a few lines in the file
UISpecificShowRoomDeckCreatorScreenComponent.ndf
You'll find it in :
GameData > UserInterface > Use > ShowRoom > Views > …

Once opened, look for “ListeDesUnitesDuDeck (around line 1040). In the latest game update (106789), the code block is commented out. In my case, I simply uncommented the entire block and added my lines.

In my case, I had
Components = [ ListeDesUnitesDuDeck // BUCKListDescriptor // ( // ComponentFrame = TUIFramePropertyRTTI // ( // RelativeWidthHeight = [1.0, 0.0] // MagnifiableWidthHeight = [-1*MargePanneaux, 0.0] // AlignementToAnchor = [0.0, 0.5] // AlignementToFather = [0.0, 0.5] // ) // Axis = ~/ListAxis/Vertical // BreadthComputationMode = ~/BreadthComputationMode/ComputeBreadthFromFrameProperty // FirstMargin = TRTTILength(Magnifiable = 10.0) // Elements = // [ // BUCKListElementDescriptor // ( // ComponentDescriptor = BUCKTextDescriptor // ( // ComponentFrame = TUIFramePropertyRTTI // ( // MagnifiableWidthHeight = [137.0, 0.0] // ) // ParagraphStyle = TParagraphStyleRTTI // ( // Alignment = UIText_Center // VerticalAlignment = UIText_VerticalCenter // ) // TextStyle = "Default" // HorizontalFitStyle = ~/FitStyle/UserDefined // VerticalFitStyle = ~/FitStyle/FitToContent // TypefaceToken = "Liberator" // BigLineAction = ~/BigLineAction/MultiLine // TextToken = "deck_pa" // TextDico = ~/LocalisationConstantes/dico_interface_outgame // TextColor = "Gris_unitConfig_Experience" // TextSize = "10" // ) // ), // BUCKListElementDescriptor // ( // ExtendWeight = 1.0 // ComponentDescriptor = ~/ListeDesUnitesDuDeck // ) // ] // ), ]

In the previous code block, look for the following element :
BUCKListElementDescriptor ( ExtendWeight = 1.0 ComponentDescriptor = ~/ListeDesUnitesDuDeck )

and replace it by this :
BUCKListElementDescriptor ( ExtendWeight = 1.0 ComponentDescriptor = BUCKSpecificScrollingContainerDescriptor ( ComponentFrame = TUIFramePropertyRTTI ( RelativeWidthHeight = [1.1, 1.1] AlignementToAnchor = [0.5, 0.5] AlignementToFather = [0.5, 0.5] ) CanScrollVertically = False CanScrollHorizontally = True HasHorizontalScrollbar = True Components = [ ~/ListeDesUnitesDuDeck ] ) )

I hope I've answered your question as best as possible. Enjoy your game. :2017stickydrink:
Last edited by Adonaiis; Oct 13, 2023 @ 8:09am
< >
Showing 1-4 of 4 comments
Ruman Jan 14, 2024 @ 1:46pm 
could you make it a bit more detailed?
Adonaiis  [developer] Jan 21, 2024 @ 5:32am 
Hi,

More detailed, I don't know. I have already explained step by step. What are you having difficulty with ?
Last edited by Adonaiis; Jan 21, 2024 @ 5:35am
Ruman Jan 22, 2024 @ 11:17pm 
even if I replace, it doesn't work. so I would need to see if I have it correctly in the code block
Adonaiis  [developer] Jan 24, 2024 @ 3:41pm 
Oh... I see I did indeed forget to mention one thing in my explanation. You probably kept the "ListeDesUnitesDuDeck" variable at the begin of your code. When you uncomment the block, you must also remove this variable (or comment it out) as in the following code :

Components = [ BUCKListDescriptor ( ComponentFrame = TUIFramePropertyRTTI ( RelativeWidthHeight = [1.0, 0.0] MagnifiableWidthHeight = [-1*MargePanneaux, 0.0] AlignementToAnchor = [0.0, 0.5] AlignementToFather = [0.0, 0.5] ) Axis = ~/ListAxis/Vertical BreadthComputationMode = ~/BreadthComputationMode/ComputeBreadthFromFrameProperty FirstMargin = TRTTILength(Magnifiable = 10.0) Elements = [ BUCKListElementDescriptor ( ComponentDescriptor = BUCKTextDescriptor ( ComponentFrame = TUIFramePropertyRTTI ( MagnifiableWidthHeight = [137.0, 0.0] ) ParagraphStyle = TParagraphStyleRTTI ( Alignment = UIText_Center VerticalAlignment = UIText_VerticalCenter ) TextStyle = "Default" HorizontalFitStyle = ~/FitStyle/UserDefined VerticalFitStyle = ~/FitStyle/FitToContent TypefaceToken = "Liberator" BigLineAction = ~/BigLineAction/MultiLine TextToken = "deck_pa" TextDico = ~/LocalisationConstantes/dico_interface_outgame TextColor = "Gris_unitConfig_Experience" TextSize = "10" ) ), BUCKListElementDescriptor ( ExtendWeight = 1.0 ComponentDescriptor = BUCKSpecificScrollingContainerDescriptor ( ComponentFrame = TUIFramePropertyRTTI ( RelativeWidthHeight = [1.1, 1.1] AlignementToAnchor = [0.5, 0.5] AlignementToFather = [0.5, 0.5] ) CanScrollVertically = False CanScrollHorizontally = True HasHorizontalScrollbar = True Components = [ ~/ListeDesUnitesDuDeck ] ) ) ]


If not, could you post your code ?
Last edited by Adonaiis; Jan 24, 2024 @ 3:56pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50