#Drawing custom crosshairs ingame
56 messages ยท Page 1 of 1 (latest)
wow!
That is why I needed the right click & right mouse drag events ๐
this is insane lmao
also a bit hacky
i'd be interested in making it less hacky?
(the bottom one gets called in the outer yacl's save() function)
YACL isn't really good with nested options honestly Xander
yeah it's okay as long as there's not too many options
8 times out of 10 you have to make a custom GSON serializer
but it's still pretty good out of the box
i didn't really consider advanced uses of yacl when designing the api
the serialiser is regular for me btw, but that's why I have to do this weird plumbing
I'm probably gonna add a custom controller/widget to preview sound effects to Sounds in 0.9.0, this has motivated me lol
https://github.com/Crendgrim/DynamicCrosshair/tree/rewrite/common/src/main/java/mod/crend/dynamiccrosshair/config/gui feel free to have a poke around to inspire any changes to yacl itself
the next addition will probably be a record type
where there are multiple controllers inline
used for maps
that will also be very useful in many places
This is awesome!
Wow
thanks, this is now mine.
lol \s
what are you using it for?
I tried abstracting it today and it doesn't work and I'm confused
I cant for the love of god figure out how to add a secondary preview sound button to my controllers
Trying to add a button here
you'll have to create a custom boolean controller element
Yeah thats what im doing
but it'll break acessibility/controller support
ahh
The ControllerElement widget thing only has one focused thing
to be fair, I have not tested that yet
but you can probably override the navigation path stuff
so it acts as one big button
True i guess
its still whacky as fuck tho
I mean it can just be an AbstractWidget
There arent any container widgets tho
(that are on 1.20-1.20.6)
wait you made dynamic crosshairs? omg i love that mod