RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Fix checking wrong property in `TryGetVariableType()`

Open amylizzle opened this issue 9 months ago • 2 comments

I guess I only tested the case where the tag and variable name happened to match. Whoops.

BackingField.Name is the var name ie BackgroundColor Attribute.Tag is the DataField tag name ie background-color

amylizzle avatar May 10 '24 10:05 amylizzle

Does this work if the data field name is inferred automatically? i.e.

[DataField]
public int Foobar { get; set; }

PJB3005 avatar May 10 '24 11:05 PJB3005

It does! For some reason it automatically applied camelCase in my test, but the inferred name worked as a query.

amylizzle avatar May 10 '24 11:05 amylizzle