feat: construct native visual subclasses from Endor source
Verify Tessera GUI / verify (push) Successful in 9m53s

This commit is contained in:
2026-10-21 02:06:25 +08:00
parent 0d5e4b318d
commit 6c42e5dde4
9 changed files with 259 additions and 22 deletions
+7 -4
View File
@@ -141,10 +141,13 @@ impl RenderCache {
let kind = match &data.kind {
Kind::Text { value, size, color } => {
let value = if let Some((source, field)) = &data.text_binding {
dependencies.push(Dependency {
object: *source,
property: Some(field.clone()),
});
let storage = store.attribute_path(*source)?;
for (index, object) in storage.iter().enumerate() {
dependencies.push(Dependency {
object: *object,
property: (index + 1 == storage.len()).then(|| field.clone()),
});
}
match store.get_attr(*source, field)? {
Value::Nil => "nil".into(),
Value::Bool(v) => v.to_string(),