windowDef Desktop { comment "Euro Door Handle GUI" rect 0,0,640,480 visible 1 windowDef doorHandle { rect 0,0,640,480 noevents 0 visible 1 text "" onEvent { // disable clicks so player can't rotate door again before // it closes if ("gui::guilock" == 1) { set "doorHandle::noevents" "1"; } else { set "doorHandle::noevents" "0"; } } onMouseEnter { localSound "empty"; // script handles sound } onMouseExit { localSound "empty"; // script handles sound } onAction { localSound "empty"; // script handles sound set "cmd" "activate"; } } }