geoidesic
TTyphonJS
•Created by geoidesic on 10/15/2024 in #typhonjs-runtime
Is there any way to avoid 'game' is not defined lint error for vite build?
I can confirm that
globalThis.game
does indeed work. I won't pretend to know why 🙂8 replies
TTyphonJS
•Created by geoidesic on 10/15/2024 in #typhonjs-runtime
Is there any way to avoid 'game' is not defined lint error for vite build?
I suppose I could also move it out of the template
8 replies
TTyphonJS
•Created by geoidesic on 9/26/2024 in #typhonjs-runtime
TJSGameSettings doesn't respect `onChange` option?
doh!
3 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Brilliant! Tx. I hadn't quite grokked that context was bi-directional, even though I'd sorta been implicitly using it that way without thinking about it in other contexts.
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
afaict
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Because the dyanmic component doesn't let you bind a reference to it.
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Well I tried the latter... but can't get that to work with a dynamic component
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
I mean, I know what that is. I'm just not quite seeing how it applies here.
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
that.. parent must direct child, because children are idiots.
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
yes!
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Why... because with great power comes great irresponsibility
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
It's a dynamic import and a dynamic child element.
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Oh.. that's just an example
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
remote component?
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
The dlop handler is on the parent. So when that runs, I want to trigger a value to reset in the child
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
E.g.
Neither
remoteComponent
nor childRef
provide a reference, just a proxy object which has none of the child's properties.30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
So the problem I'm having is that it doesn't seem to be possible to access properties on the child from the parent if the child is a dynamic
svelete:component
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Ah.. nvm, I'm being an idiot. There's a drop handler in the shell 🤦🏻♂️
30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
const application = getContext("#external").application;
has these properties...
but if I try define my own __dragDrop function on the ItemSheet it doesn't get run30 replies
TTyphonJS
•Created by geoidesic on 8/10/2024 in #typhonjs-runtime
How can I respond to the _onDrop event in the shell?
Actually I'm a bit confused now about what's handling the drop. I don't have any drop handlers so it must be native for foundry Item?
30 replies