Inspector now just takes a name
This commit is contained in:
parent
22c74bac85
commit
a88a4fb764
2 changed files with 15 additions and 19 deletions
|
|
@ -1,19 +0,0 @@
|
||||||
inspector = config \
|
|
||||||
{
|
|
||||||
width = 600,
|
|
||||||
view = ctx \
|
|
||||||
val = eval! config.name;
|
|
||||||
|
|
||||||
reflected = val
|
|
||||||
| Value v \ reflect v
|
|
||||||
| _ \ reflect 0;
|
|
||||||
|
|
||||||
textInputHeight = 40;
|
|
||||||
|
|
||||||
tree {
|
|
||||||
value = reflected,
|
|
||||||
path = [config.name],
|
|
||||||
w = ctx.w,
|
|
||||||
h = ctx.h - textInputHeight
|
|
||||||
}
|
|
||||||
};
|
|
||||||
15
src/cg/inspector.cg
Normal file
15
src/cg/inspector.cg
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
inspector = name \ {
|
||||||
|
width = 600,
|
||||||
|
view = ctx \
|
||||||
|
val = eval! name;
|
||||||
|
reflected = val
|
||||||
|
| (Value v) \ reflect v
|
||||||
|
| _ \ reflect 0;
|
||||||
|
textInputHeight = 40;
|
||||||
|
tree {
|
||||||
|
value = reflected,
|
||||||
|
path = [name],
|
||||||
|
w = ctx.w,
|
||||||
|
h = ctx.h - textInputHeight
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue