Just to be clear, my objective to use the API to open and close a door (and chests) that is are locked, not remove the lock.
Posts by yahwho
A new update is now available, introducing "Points of interest" and many more changes!
Latest hotfix: 0.9 (2025-11-04)
Latest hotfix: 0.9 (2025-11-04)
-
-
Argh, looks like even if you set a status of a door to open via the API, if it's locked you still can't open it.

Console states "Door <long id> is locked..."EDIT: Wait a minute... not 1 its 100
let me try that...
EDIT2: Nope, setting to 100 still doesn't override the lock. -
Hi Red,
Is there a way with the API to get whether a door/chest is locked or not?
-
There's one dubbed the hole to hell
Sounds like my bank balance..
-
Blame that on lack of caffeine
-
-
-
That should do the job nicely 👌
-
-
-
Hi red51
One last question (or two) here regarding modals...
Is it possible to override the text that is displayed on the buttons?
And, is it possible to change the alignment of text so it's, for example, aligned to the left? -
But we could add a method to the Internals class which enables you to apply custom StyleSheets to any UI element (this way you would be able to override the hover style of built-in elements)
That would be awesome Red

As a result, you can only load custom StyleSheets from AssetBundles atm
Annoyance yes I agree, but If I wrapped it in a loader this would hopefully only be an annoyanceonce

-
So is it possible override the hover background colour on modal windows like the Accept_Decline one?
I see that the Style is based on IStyle in Unity, and that uses USS for this, I am assuming USS is Unity's version of CSS?
-
I'm almost certain I did mention this a while back... but now you have me thinking 🤔😅
If I understand correctly you want to be able to change the default cursor as well as set custom cursors when hovering API-created UI elements?
Exactly this.
I think this could be done by a new onMouseMove method and moving a image x y pos, but then again, this may trigger too many events and may not be feasible and may end up being clunky.
It's more a "would be nice" API access, it's certainly not a show stopper

-
Hi Red,
I know I've asked this before, and maybe this is now doable via the Internals class, if you know how?
I would like to use a cusom cursor and have cursor affordance
-
Lovely bridge @AlphaGodith
Might I suggest you make it modular?
-
Hi red51
Sorry to be a pain, but can you show an example for the MessageBoxLayer?
I've been trying to hack it for a few hours but I think just asking you may be easier
Display MoreCode -
Thanks mate, that makes sense!
I'll have a mess with the Internals class.

-
Ideally the accent colour on all menus, built in and API loaded ones.
But if we could set individual colours for each item that would be a bonus.

-
Hi Red,
It would be awesome if we could change the colour of the outside of the radial menu from the default blue