InteractiveBoard Docs
  • GETTING STARTED
    • Installing InteractiveBoard
    • Commands & Permissions
    • Integrations
    • Creating a board
  • Objects
    • General Information
      • Enabled
      • Properties & Placeholders
      • Conditions
      • Layout
      • Click and Hover
      • Children
      • Cache Behavior
    • Background
    • Button
    • Gif
    • Image
    • Scroll Pane
    • Skin Objects
    • Text Objects
    • Static
      • Action Listener
      • Music Player
      • Delayed Function Timer
      • Repeat Function Timer
  • Functions
    • General Information
      • Conditions
      • Delay
      • Price
    • Switch Scene
    • Game
      • Command
      • Open Crafting Table
      • Play Sound
      • Send Message
      • Switch Server
    • State
      • Scroll Change
      • Enabled
        • Set Enabled State
        • Switch Enabled State
      • Playback
        • Set Playback State
        • Switch Playback State
    • Shop
  • Conditions
    • Has money
    • Permission
  • BOARD SETTINGS
    • General
    • Displays
    • View Grouping & Default Scenes
Powered by GitBook
On this page
  1. Objects
  2. General Information

Click and Hover

All objects capable of visibility (button, image, gif, skin_3d, text, etc.) can execute functions in on-click, on-hover, and off-hover triggers.

In addition, any properties of those objects can be changed when hovering, by adding on-hover- in front of the property name (on-hover-color: red).

hoverbutton1:
  type: button
  size: 256 128
  
  outline-width: 4
  outline-color: none
  
  ## button will have an outline when hovered
  on-hover-outline-color: white
  
  on-click:
    msg1:
      type: send_message
      message: 'On click'
  on-hover:
    msg2:
      type: send_message
      message: 'On hover'
  off-hover:
    msg3:
      type: send_message
      message: 'Off hover'        
hoverimage:
  type: image
  size: 256 256
  
  image:
    name: image.png
    ## image will change when hovered
    on-hover-name: hover-image.png
    
  ## functions to execute when image is clicked  
  on-click:
    msg1:
      type: send_message
      message: 'You clicked on this image!'  

Last updated 9 months ago