Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Improved slate indentation (Unreal Engine)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BoomRaccoon
New Member

7 Posts

Posted - Apr 18 2023 :  04:47:02 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 18 2023 :  06:57:33 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000