cce40ef1-b430-1381-1f68-c45456d9c3c0_script.lsl 836 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // The line above should be left blank to avoid script errors in OpenSim.
  3. integer toggle;
  4. default
  5. {
  6. state_entry() {
  7. llSetTexture("hidehud", ALL_SIDES);
  8. toggle=-1;
  9. }
  10. touch_start(integer total_number)
  11. {
  12. if (toggle==-1){
  13. llMessageLinked(LINK_SET,0,"hide",NULL_KEY);
  14. llSetTexture("showhud", ALL_SIDES);
  15. llSetObjectName("show");
  16. }else
  17. if (toggle==1){
  18. llMessageLinked(LINK_SET,0,"show",NULL_KEY);
  19. llSetTexture("hidehud", ALL_SIDES);
  20. llSetObjectName("hide");
  21. }
  22. toggle*=-1;
  23. }
  24. }
  25. // Please leave the following line intact to show where the script lives in Git:
  26. // SLOODLE LSL Script Git Location: mod/scoreboard-1.0/objects/default/assets/sloodle_admin_hud_show_hide_button.lslp