Community
SCI Programming => SCI Syntax Help => Topic started by: MusicallyInspired on June 17, 2015, 12:37:29 AM
-
1) I'm trying to get rid of the Command verb icon. I'm commenting it out everywhere I see it in the scripts but it still exists as a global verb in Messages that I can't get rid of. How can you delete global verbs?
2) Also, even though I've removed all references to V_COMMAND and icon4 from the scripts, when cycling through icons with rightclick it gets to the arrow for some reason and then when I go to click something with it I get an Oops! error message crash.
3) Also after removing V_COMMAND and icon4 everywhere I could find, when I hover over the iconbar the icons all line up properly nicely but the inventory bag button is masked/greyed out, even though I have an inventory object. Clicking on it does nothing. Looking through the icon verb mask codes but not making sense of it yet...
-
1) I'm trying to get rid of the Command verb icon. I'm commenting it out everywhere I see it in the scripts but it still exists as a global verb in Messages that I can't get rid of. How can you delete global verbs?
Surprise! That functionality doesn't exist yet! You can just delete it directly from the Verbs.sh file for now.
2) Also, even though I've removed all references to V_COMMAND and icon4 from the scripts, when cycling through icons with rightclick it gets to the arrow for some reason and then when I go to click something with it I get an Oops! error message crash.
I suspect there are some places where I didn't replace 24 with V_COMMAND maybe? Let me see what happens if I try to remove it.
-
3) Also after removing V_COMMAND and icon4 everywhere I could find, when I hover over the iconbar the icons all line up properly nicely but the inventory bag button is masked/greyed out, even though I have an inventory object. Clicking on it does nothing. Looking through the icon verb mask codes but not making sense of it yet...
Clearly some code expects 9 icons across the top, and assumes that at a certain index is the current inventory item (which will be greyed out)... but you removed icon4, so now it's the briefcase.
From looking at iconi.sc, it looks like if the signal property on the icon has $0004, then it will be disabled. Look at the disable method.
Also, looking in main.sc, there are places that assume things about the index of items in the icon bar. Look at the handsoff method. Actually, look at handsOn. It enables/disables icons in the icon bar based on their index. And if there's no "curInvIcon", then it disables the icon at position 5. So there's your answer.
I think the easiest thing for now is to keep a "blank" icon4 there, and ensure it's disable on handson, and also where the sq5IconBar is set up (currently it just disables index 5, you would add 4 here too). That will solve the right-click cycling issue too. Apparently right-click just cycles through enabled icons.