Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Improved slate indentation (Unreal Engine)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
BoomRaccoon Posted - Apr 18 2023 : 04:47:02 AM
I don't know how you guys fixed the UPROPERTY indentation but it is great.
I started to do some stuff with slate and it does some weird stuff with the indentation. Is there some setting to improve the experience?

an example is

ChildSlot
[
	SNew(SHorizontalBox)
	+SHorizontalBox::Slot()
	.AutoWidth()
	[
		SNew(STextBlock)
		.Text(FText::FromString("SomeText"))
	]
	+SHorizontalBox::Slot()
	.AutoWidth()
	[
		SNew(SVerticalBox)
		+SVerticalBox::Slot()
		.AutoHeight()
		[
			SNew(STextBlock)
			.Text(FText::FromString("Icon Editor"))
			.Font(TitleTextFont)
			.Justification(ETextJustify::Center)
			.ColorAndOpacity(FColor::White)
		]
		+SVerticalBox::Slot()
		.VAlign(VAlign_Fill)
		[
			SNew(STextBlock)
			.Text(FText::FromString("More text"))
			.Font(TitleTextFont)
			.Justification(ETextJustify::Center)
			.ColorAndOpacity(FColor::White)
		]
	]
];

Not sure how hard it is to get some rules for this. It breaks when adding a new slot (square brackets)

+SVerticalBox::Slot()
[
    ...
]

and when adding arguments to the new widgets (.yyy .zzz)

SNew(xxx)
.yyy
.zzz
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 18 2023 : 06:57:33 AM
We are considering tackling slate formatting at some point:

case=141943

but I am not sure when we will try. Seeing it well formatted it is clear enough, but it is different enough to other code to require its own special handling.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000