APickledWalrus/skript-gui

What does (excluding buttons) mean?

Closed this issue · 1 comments

Description

I'm currently taking my time to learn most of everything within skript-gui to help me understand the addon's core better to help with pull request and I noticed that for boolean removableItems within GUI it's comment says (excluding buttons) what is this related to?

image
image

Within skript-gui's internals, a "button" is an item that also executes code. See:

make gui 5 with stealable dirt:
  broadcast "I was clicked"!

Even though the above item is marked as stealable, we ignore that because the item is a button (it executes code).

TLDR: Items that execute code can never be stolen, even if marked as stolen.