WARNO
MOG++ Unlimited&More
Adonaiis  [开发者] 2023 年 10 月 12 日 下午 5:23
@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:
最后由 Adonaiis 编辑于; 2023 年 10 月 13 日 上午 8:09
< >
正在显示第 1 - 4 条,共 4 条留言
Ruman 2024 年 1 月 14 日 下午 1:46 
could you make it a bit more detailed?
Adonaiis  [开发者] 2024 年 1 月 21 日 上午 5:32 
Hi,

More detailed, I don't know. I have already explained step by step. What are you having difficulty with ?
最后由 Adonaiis 编辑于; 2024 年 1 月 21 日 上午 5:35
Ruman 2024 年 1 月 22 日 下午 11:17 
even if I replace, it doesn't work. so I would need to see if I have it correctly in the code block
Adonaiis  [开发者] 2024 年 1 月 24 日 下午 3:41 
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 ?
最后由 Adonaiis 编辑于; 2024 年 1 月 24 日 下午 3:56
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50