SE-ModScript-Examples icon indicating copy to clipboard operation
SE-ModScript-Examples copied to clipboard

Hidden Terminal Controls

Open Sikksens opened this issue 1 year ago • 1 comments

Hey there,

I am attempting to hide the Blueprints button on all projectors for a campaign I'm setting up on a server and when trying to hide the Blueprints button, nothing happens, so just wanted to check if c.Visible = false; is still valid.

I am however able to get c.Enabled = false; to work so that is also perfectly fine to use.

Sikksens avatar Oct 03 '24 01:10 Sikksens

Oof I did not see this one =) I'd recommend asking in the keen channel for help next time, it's many more people that can answer and also that's where I hang out xD

Visible and Enabled want delegates, and when it's time to check if the control it invokes those delegates and uses the result they give.

But for your case I think it'll be easier to use the event: https://github.com/THDigi/SE-ModScript-Examples/blob/master/Data/Scripts/Examples/TerminalControls/Events/TerminalEventsExamples.cs - the section with programmable block example there should do.

THDigi avatar Nov 02 '24 15:11 THDigi